This repository was archived by the owner on Apr 17, 2025. It is now read-only.
File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 2
2
repository : gcr.io/k8s-staging-multitenancy/hnc-manager
3
3
tag : v1.1.0
4
4
imagePullPolicy : {}
5
+ # Regex of namespaces for HNC to manage
6
+ # example include everything except openshift.*
7
+ # hncIncludeNamespacesRegex: ([^o].*|o([^p].*)|op([^e].*)|ope([^n].*)|open([^s].*)|opens([^h].*)|opensh([^i].*)|openshi([^f].*)|openshif([^t].*))
8
+ hncIncludeNamespacesRegex : " "
5
9
# A list of namespaces to add the HNC exclude label to
6
10
hncExcludeNamespaces :
7
11
- hnc-system
Original file line number Diff line number Diff line change @@ -176,6 +176,9 @@ for output_file in ${TEMPLATESDIR}/*.yaml; do
176
176
# Add placeholder for --excluded-namespace arg
177
177
sed -i -e ' /args:/a \ {{- range $hncExcludeNamespace := .Values.hncExcludeNamespaces}}\n \ - --excluded-namespace={{ $hncExcludeNamespace }}\n \ {{- end }}' $output_file
178
178
179
+ # Add placeholder for --included-namespace-regex arg
180
+ sed -i -e ' /args:/a \ {{- if $hncIncludeNamespacesRegex}}\n \ - --included-namespace-regex={{ $hncIncludeNamespacesRegex }}\n \ {{- end }}' $output_file
181
+
179
182
# [HRQ] Add conditional blocks for --enable-hrq arg
180
183
sed -i -e ' /args:/a \ {{- if .Values.hrq.enabled }}\n \ - --enable-hrq\n \ {{- end }}' $output_file
181
184
You can’t perform that action at this time.
0 commit comments