Skip to content

Commit

Permalink
Merge pull request #136 from charmed-kubernetes/gkk/restart-on-ca-cha…
Browse files Browse the repository at this point in the history
…nge-1.13

[1.13] Add cdk-restart-on-ca-change label to addons
  • Loading branch information
hyperbolic2346 committed Jul 15, 2019
2 parents 53b9e84 + 63a73bf commit 4fb2b2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cdk-addons/apply
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ def render_template(file, context, required=True, render_filename=None):
for part in data:
part["metadata"].setdefault("labels", {})
part["metadata"]["labels"]["cdk-addons"] = "true"
if part["kind"] in ["Deployment", "DaemonSet", "StatefulSet"]:
part["metadata"]["labels"]["cdk-restart-on-ca-change"] = "true"
content = yaml.dump_all(data)

with open(dest, "w") as f:
Expand Down

0 comments on commit 4fb2b2a

Please sign in to comment.