File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed
Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ kubectl delete ns signadot
6666| ` serviceLabels ` | Labels to add to all deployed ` Service ` objects | ` {} ` |
6767| ` serviceAnnotations ` | Annotations to add to all deployed ` Service ` objects | ` {} ` |
6868
69+ ### Controller Manager parameters
70+
71+ | Name | Description | Default |
72+ | ------------------------------- | --------------------------------------------------------------------------- | ------- |
73+ | ` allowedNamespaces ` | Restrict the namespaces in which ` signadot-controller-manager ` will operate | ` [] ` |
74+ | ` sandboxTrafficManager.enabled ` | Whether to enable the sandbox traffic manager sidecar on forked workloads | ` true ` |
75+
76+
6977### Image customization parameters
7078
7179The parameters in the table below allow one to specify image names for the
@@ -120,7 +128,6 @@ style resources and are not needed in an installation which uses the new
120128| ` jobExecutorProxy.image ` | Job Executor Proxy container image override | ` signadot/job-executor-proxy:vX.Y.Z ` |
121129| ` jobExecutorProxy.imagePullPolicy ` | Job Executor Proxy container image pull policy | ` IfNotPresent ` |
122130| ` jobExecutorProxy.imagePullSecret ` | Job Executor Proxy container image pull secret | ` "" ` |
123- | ` sandboxTrafficManager.enabled ` | Whether to enable the sandbox traffic manager sidecar on forked workloads | ` true ` |
124131| ` sandboxTrafficManager.init.Image ` | Sandbox traffic manager sidecar image override | ` signadot/sandbox-traffic-manager:vX.Y.Z ` |
125132| ` sandboxTrafficManager.init.ImagePullPolicy ` | Sandbox traffic manager sidecar image pull policy | ` IfNotPresent ` |
126133| ` sandboxTrafficManager.init.ImagePullSecret ` | Sandbox traffic manager sidecar image pull secret | ` "" ` |
Original file line number Diff line number Diff line change 1+
12{{/*
23cluster config template
34*/ }}
45{{- define " compileClusterConfig" -}}
6+ {{- $allowedNamespaces := (include " getAllowedNamespaces" . | fromJsonArray) -}}
7+ allowedNamespaces: {{ if gt (len $allowedNamespaces ) 0 }}{{ printf " \n " }}{{ toYaml $allowedNamespaces | indent 2}}{{- else -}}[]{{- end }}
58routing:
69 istio:
710 enabled: {{ if and (hasKey .Values " istio" ) (hasKey .Values.istio " enabled" ) -}}{{ toString .Values.istio.enabled }}{{- else -}}false{{- end }}
@@ -15,4 +18,20 @@ trafficCapture:
1518 enabled: {{ if and (hasKey .Values " trafficCapture" ) (hasKey .Values.trafficCapture " enabled" ) -}}{{ toString .Values.trafficCapture.enabled }}{{- else -}}true{{- end }}
1619 requestHeadersElide: {{ with .Values }}{{ with .trafficCapture }}{{ with .requestHeadersElide }}{{ printf " \n " }}{{ toYaml . | indent 4}}{{- else -}}[]{{- end }}{{- else -}}[]{{- end }}{{- else -}}[]{{- end }}
1720 responseHeadersElide: {{ with .Values }}{{ with .trafficCapture }}{{ with .responseHeadersElide }}{{ printf " \n " }}{{ toYaml . | indent 4}}{{- else -}}[]{{- end }}{{- else -}}[]{{- end }}{{- else -}}[]{{- end }}
18- {{- end -}}
21+ {{- end -}}
22+
23+
24+ {{/*
25+ get allowed namespaces
26+ */ }}
27+ {{- define " getAllowedNamespaces" -}}
28+ {{- if .Values.allowedNamespaces }}
29+ {{- $userNamespaces := .Values.allowedNamespaces -}}
30+ {{- if not (has " signadot" $userNamespaces ) }}
31+ {{- $userNamespaces = append $userNamespaces " signadot" -}}
32+ {{- end }}
33+ {{- $userNamespaces | toJson -}}
34+ {{- else -}}
35+ []
36+ {{- end }}
37+ {{- end }}
You can’t perform that action at this time.
0 commit comments