Skip to content

Commit

Permalink
feat: label kratix resources
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kirederik committed Jun 7, 2024
1 parent b6b2125 commit bf17b24
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 bf17b24

Please sign in to comment.