Skip to content

Commit

Permalink
remove cdk-restart-on-ca-change label as well
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Jun 24, 2024
1 parent d6be0af commit 8ea6a3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cdk-addons/apply
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ def prune_addons():
"""Deletes addons that have the cdk-addons=true label, but do not exist in
the template dir.
Ignores the addons that are in the ignored_resources list by removing the
cdk-addons- label.
Ignores addons that are in the ignored_addons set by removing the
labels cdk-addons and cdk-restart-on-ca-change.
We used to use kubectl apply --prune for this. Now we don't, because
kubectl apply --prune is very, very disappointing.
Expand Down Expand Up @@ -381,7 +381,7 @@ def prune_addons():
if resource in ignored_addons:
# either actively ignore it
print("Ignoring %s %s/%s" % resource)
args = ["label", kind, name, "-n", namespace, "cdk-addons-"]
args = ["label", kind, name, "-n", namespace, "cdk-addons-", "cdk-restart-on-ca-change-"]
else:
# or delete it!
print("Deleting %s %s/%s" % resource)
Expand Down

0 comments on commit 8ea6a3c

Please sign in to comment.