Skip to content

Commit

Permalink
Merge pull request #158 from syntasso/add-recommended-labels
Browse files Browse the repository at this point in the history
feat: label kratix resources
  • Loading branch information
ChunyiLyu authored Jun 10, 2024
2 parents b3b89a7 + bf17b24 commit 1186982
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1186982

Please sign in to comment.