Skip to content

Commit e0fac2b

Browse files
fix: namespace generation from operator (opendatahub-io#132)
1 parent 4810b59 commit e0fac2b

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

charts/rhai-on-xks-chart/scripts/helmtemplate-config-cloudmanager.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ rules:
2323
changes:
2424
- path: .metadata.name
2525
value: '{{ .Values.CLOUD_NAME.cloudManager.namespace }}'
26+
- action: delete
27+
path: .metadata.labels
28+
- path: .metadata.labels
29+
replaceWith: |
30+
labels:
31+
{{- include "rhai-on-xks-chart.labels" . | nindent 4 }}
32+
- path: .metadata.annotations["helm.sh/resource-policy"]
33+
value: keep
2634

2735
# Replace namespace in RoleBinding/ClusterRoleBinding subjects
2836
- match:

charts/rhai-on-xks-chart/scripts/helmtemplate-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ rules:
2424
value: '{{ .Values.rhaiOperator.namespace }}'
2525
- action: delete
2626
path: .metadata.labels
27+
- path: .metadata.labels
28+
replaceWith: |
29+
labels:
30+
{{- include "rhai-on-xks-chart.labels" . | nindent 4 }}
31+
- path: .metadata.annotations["helm.sh/resource-policy"]
32+
value: keep
2733

2834
- match:
2935
kinds:
@@ -34,6 +40,14 @@ rules:
3440
changes:
3541
- path: .metadata.name
3642
value: '{{ .Values.rhaiOperator.applicationsNamespace }}'
43+
- action: delete
44+
path: .metadata.labels
45+
- path: .metadata.labels
46+
replaceWith: |
47+
labels:
48+
{{- include "rhai-on-xks-chart.labels" . | nindent 4 }}
49+
- path: .metadata.annotations["helm.sh/resource-policy"]
50+
value: keep
3751

3852
# Replace namespace in RoleBinding/ClusterRoleBinding subjects
3953
- match:

0 commit comments

Comments
 (0)