diff --git a/CHANGELOG-nightly.md b/CHANGELOG-nightly.md index 16bb0ff..dc3af97 100644 --- a/CHANGELOG-nightly.md +++ b/CHANGELOG-nightly.md @@ -2,6 +2,7 @@ Note: Breaking changes between versions are indicated by "💥". +- 💥[Bugfix] No longer track the Tutor version number in resource labels (and label selectors, which breaks the update of Deployment resources), but instead do so in resource annotations. - [Bugfix] Make it possible for plugins to implement the "caddyfile" patch without relying on the "port" local variable. - 💥[Improvement] Move the Open edX forum to a [dedicated plugin](https://github.com/overhangio/tutor-forum/) (#450). - 💥[Improvement] Get rid of the "tutor-openedx" package, which is no longer supported. diff --git a/tutor/templates/kustomization.yml b/tutor/templates/kustomization.yml index e34666c..df7367d 100644 --- a/tutor/templates/kustomization.yml +++ b/tutor/templates/kustomization.yml @@ -12,11 +12,16 @@ resources: # namespace to deploy all Resources to namespace: {{ K8S_NAMESPACE }} -# labels added to all Resources +# annotations added to all Resources +# https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/commonannotations/ +commonAnnotations: + app.kubernetes.io/version: {{ TUTOR_VERSION }} + +# labels (and label selectors) added to all Resources # https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/ +# https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/commonlabels/ commonLabels: app.kubernetes.io/instance: openedx-{{ ID }} - app.kubernetes.io/version: {{ TUTOR_VERSION }} app.kubernetes.io/part-of: openedx app.kubernetes.io/managed-by: tutor {{ patch("kustomization-commonlabels")|indent(2) }}