Skip to content

Commit

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

[1.14] Add cdk-restart-on-ca-change label to addons
  • Loading branch information
hyperbolic2346 committed Jul 15, 2019
2 parents cfccc91 + ace6435 commit 016d7bb
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 @@ -191,6 +191,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 016d7bb

Please sign in to comment.