Skip to content

Commit

Permalink
feat: ns labels (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo authored Dec 5, 2023
1 parent ce7bb77 commit b4b7f4e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions plugins/contrib/charts/namespace/templates/namespace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ metadata:
kontinuous/mainNamespace: "true"
labels:
application: {{ .Values.global.repositoryName }}
{{ if gt (len .Values.labels) 0 }}
{{- .Values.labels | toYaml | nindent 4 }}
{{ end }}
{{ if and .Values.global.namespaceLabels (gt (len .Values.global.namespaceLabels) 0) }}
{{- .Values.global.namespaceLabels | toYaml | nindent 4 }}
{{ end }}
name: {{ or .Values.namespace .Values.global.namespace }}
1 change: 1 addition & 0 deletions plugins/contrib/charts/namespace/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ ttl:
limitMax:
cpu: 3
memory: 8Gi
labels: {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ metadata:
kapp.k14s.io/exists: ""
labels:
application: {{ .Values.global.repositoryName }}
{{ if gt (len .Values.labels) 0 }}
{{- .Values.labels | toYaml | nindent 4 }}
{{ end }}
{{ if and .Values.global.namespaceLabels (gt (len .Values.global.namespaceLabels) 0) }}
{{- .Values.global.namespaceLabels | toYaml | nindent 4 }}
{{ end }}
name: {{ or .Values.namespace .Values.global.namespace }}
3 changes: 2 additions & 1 deletion plugins/contrib/charts/rancher-namespace/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ ttl:
limitMax:
cpu: 3
memory: 8Gi
kapp: false
kapp: false
labels: {}

0 comments on commit b4b7f4e

Please sign in to comment.