mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-21 10:39:26 +08:00
Make annotating resources optional (#287)
* Make annotating resources optional * Clarify descriptions * Update README * Refactor retrieving pods * Remove annotating resources check in deploy.ts * Add resource annotation integration test * Move resource annotation integration test to seperate file * Lint code * Remove temporary debugging statements * Fix integration test name * Fix test * Abstracting out repeated logic between verifyDeployment and verifyService * Fix formattin * Fix reference * Fix test * Refactor test * Update ubuntu version to latest on canary SMI test * Update ubuntu version to latest on canary SMI test * Make annotating resources optional Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Clarify descriptions Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Update README Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Refactor retrieving pods Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Remove annotating resources check in deploy.ts Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Add resource annotation integration test Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Move resource annotation integration test to seperate file Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Lint code Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Remove temporary debugging statements Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Fix integration test name Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Fix test Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Abstracting out repeated logic between verifyDeployment and verifyService Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Fix formattin Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Fix reference Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Fix test Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Refactor test Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> * Update ubuntu version to latest on canary SMI test Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl> --------- Signed-off-by: Bram de Hart <bram.dehart@nsgo.nl>
This commit is contained in:
@@ -7,7 +7,7 @@ def delete(kind, name, namespace):
|
||||
if (name == "all"):
|
||||
print('kubectl delete --all' + kind + ' -n ' + namespace)
|
||||
deletion = subprocess.Popen(
|
||||
['kubectl', 'delete', kind, name, '--namespace', namespace])
|
||||
['kubectl', 'delete', kind, '--all', '--namespace', namespace])
|
||||
result, err = deletion.communicate()
|
||||
else:
|
||||
print('kubectl delete ' + kind + ' ' + name + ' -n ' + namespace)
|
||||
@@ -21,7 +21,7 @@ def delete(kind, name, namespace):
|
||||
def main():
|
||||
kind = sys.argv[1]
|
||||
name = sys.argv[2]
|
||||
namespace = 'test-' + sys.argv[3]
|
||||
namespace = sys.argv[3]
|
||||
delete(kind, name, namespace)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user