From bf17b243cd7a279f467dc3e35a7d9044bea1b3c9 Mon Sep 17 00:00:00 2001 From: Derik Evangelista Date: Fri, 7 Jun 2024 16:06:29 +0100 Subject: [PATCH] feat: label kratix resources this commit applies some of the [recommended labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/) to the kratix objects and crds --- config/crd/kustomization.yaml | 5 +++++ config/manager/kustomization.yaml | 5 +++++ config/rbac/kustomization.yaml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index 528f1d79..f477da03 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -11,6 +11,11 @@ resources: - bases/platform.kratix.io_promisereleases.yaml #+kubebuilder:scaffold:crdkustomizeresource +commonLabels: + app.kubernetes.io/instance: kratix-platform + app.kubernetes.io/component: kratix-manager + app.kubernetes.io/part-of: kratix + patchesStrategicMerge: # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix. # patches here are for enabling the conversion webhook for each CRD diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index 11e1dba0..8d95248b 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -7,6 +7,11 @@ resources: generatorOptions: disableNameSuffixHash: true +commonLabels: + app.kubernetes.io/component: kratix-manager + app.kubernetes.io/instance: kratix-platform + app.kubernetes.io/part-of: kratix + # The wc-img-config config map drives the WC_IMG env var, which is used by the promise # controller as the last container in the workflow Pipeline pod spec. configMapGenerator: diff --git a/config/rbac/kustomization.yaml b/config/rbac/kustomization.yaml index 731832a6..09b01ba6 100644 --- a/config/rbac/kustomization.yaml +++ b/config/rbac/kustomization.yaml @@ -1,3 +1,8 @@ +commonLabels: + app.kubernetes.io/instance: kratix-platform + app.kubernetes.io/component: kratix-manager + app.kubernetes.io/part-of: kratix + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource