mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-14 10:32:22 +08:00
Clean code
This commit is contained in:
parent
d784fb6c4d
commit
8e795671c2
@ -77,10 +77,9 @@ export function getNewCanaryResource(
|
|||||||
export async function fetchResource(
|
export async function fetchResource(
|
||||||
kubectl: Kubectl,
|
kubectl: Kubectl,
|
||||||
kind: string,
|
kind: string,
|
||||||
name: string,
|
name: string
|
||||||
annotations: {[key: string]: string} = {}
|
|
||||||
) {
|
) {
|
||||||
const result = await kubectl.getResource(kind, name, annotations)
|
const result = await kubectl.getResource(kind, name)
|
||||||
|
|
||||||
if (!result || result?.stderr) {
|
if (!result || result?.stderr) {
|
||||||
return null
|
return null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user