Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit bfc1c00

Browse files
committed
exclude openshift namespaces via regex
1 parent a0351d2 commit bfc1c00

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

charts/hnc/templates/hnc-controller-manager-ha.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ spec:
2323
{{- if .Values.hrq.enabled }}
2424
- --enable-hrq
2525
{{- end }}
26+
{{- if $hncIncludeNamespacesRegex}}
27+
- --included-namespace-regex={{ $hncIncludeNamespacesRegex }}
28+
{{- end }}
2629
{{- range $hncExcludeNamespace := .Values.hncExcludeNamespaces}}
2730
- --excluded-namespace={{ $hncExcludeNamespace }}
2831
{{- end }}

charts/hnc/templates/hnc-controller-manager.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
{{- if .Values.hrq.enabled }}
2323
- --enable-hrq
2424
{{- end }}
25+
{{- if $hncIncludeNamespacesRegex}}
26+
- --included-namespace-regex={{ $hncIncludeNamespacesRegex }}
27+
{{- end }}
2528
{{- range $hncExcludeNamespace := .Values.hncExcludeNamespaces}}
2629
- --excluded-namespace={{ $hncExcludeNamespace }}
2730
{{- end }}

charts/hnc/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ image:
22
repository: gcr.io/k8s-staging-multitenancy/hnc-manager
33
tag: v1.1.0
44
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: ""
59
# A list of namespaces to add the HNC exclude label to
610
hncExcludeNamespaces:
711
- hnc-system

0 commit comments

Comments
 (0)