Add namespaceSelector for spire-controller-manager (#112)
Co-authored-by: Marco Franssen <[email protected]> Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
co-authored by
Marco Franssen
parent
bba395b015
commit
3448897316
@@ -21,6 +21,7 @@ A Helm chart to install the SPIRE server.
|
|||||||
| controllerManager.enabled | bool | `false` | |
|
| controllerManager.enabled | bool | `false` | |
|
||||||
| controllerManager.identities.dnsNameTemplates | list | `[]` | |
|
| controllerManager.identities.dnsNameTemplates | list | `[]` | |
|
||||||
| controllerManager.identities.enabled | bool | `true` | |
|
| controllerManager.identities.enabled | bool | `true` | |
|
||||||
|
| controllerManager.identities.namespaceSelector | object | `{}` | |
|
||||||
| controllerManager.identities.podSelector | object | `{}` | |
|
| controllerManager.identities.podSelector | object | `{}` | |
|
||||||
| controllerManager.identities.spiffeIDTemplate | string | `"spiffe://{{ .TrustDomain }}/ns/{{ .PodMeta.Namespace }}/sa/{{ .PodSpec.ServiceAccountName }}"` | |
|
| controllerManager.identities.spiffeIDTemplate | string | `"spiffe://{{ .TrustDomain }}/ns/{{ .PodMeta.Namespace }}/sa/{{ .PodSpec.ServiceAccountName }}"` | |
|
||||||
| controllerManager.ignoreNamespaces[0] | string | `"kube-system"` | |
|
| controllerManager.ignoreNamespaces[0] | string | `"kube-system"` | |
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ spec:
|
|||||||
podSelector:
|
podSelector:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .identities.namespaceSelector }}
|
||||||
|
namespaceSelector:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .identities.dnsNameTemplates }}
|
{{- with .identities.dnsNameTemplates }}
|
||||||
dnsNameTemplates:
|
dnsNameTemplates:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
|||||||
@@ -154,6 +154,9 @@ controllerManager:
|
|||||||
podSelector: {}
|
podSelector: {}
|
||||||
# matchLabels:
|
# matchLabels:
|
||||||
# spiffe.io/spiffe-id: "true"
|
# spiffe.io/spiffe-id: "true"
|
||||||
|
namespaceSelector: {}
|
||||||
|
# matchLabels:
|
||||||
|
# spiffe.io/spiffe-id: "true"
|
||||||
dnsNameTemplates: []
|
dnsNameTemplates: []
|
||||||
# - '{{ index .PodMeta.Labels "app.kubernetes.io/name" }}.{{ .PodMeta.Namespace }}.svc.cluster.local'
|
# - '{{ index .PodMeta.Labels "app.kubernetes.io/name" }}.{{ .PodMeta.Namespace }}.svc.cluster.local'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user