2023-10-16 13:14:53 -04:00
{{- if and .Values.agent (not .Values.preflight.enabled) }}
---
apiVersion : rbac.authorization.k8s.io/v1
kind : Role
metadata :
name : cilium-config-agent
namespace : {{ .Release.Namespace }}
{{- with .Values.annotations }}
annotations :
{{- toYaml . | nindent 4 }}
{{- end }}
labels :
app.kubernetes.io/part-of : cilium
rules :
- apiGroups :
- ""
resources :
- configmaps
verbs :
- get
- list
- watch
{{- end }}
2022-08-12 04:20:19 -04:00
{{- if and .Values.agent (not .Values.preflight.enabled) .Values.serviceAccounts.cilium.create .Values.ingressController.enabled .Values.ingressController.secretsNamespace.name }}
2023-10-16 13:14:53 -04:00
---
2022-08-12 04:20:19 -04:00
apiVersion : rbac.authorization.k8s.io/v1
kind : Role
metadata :
2023-10-16 13:14:53 -04:00
name : cilium-ingress-secrets
2022-08-12 04:20:19 -04:00
namespace : {{ .Values.ingressController.secretsNamespace.name | quote }}
2023-10-16 13:14:53 -04:00
{{- with .Values.annotations }}
annotations :
{{- toYaml . | nindent 4 }}
{{- end }}
labels :
app.kubernetes.io/part-of : cilium
2022-08-12 04:20:19 -04:00
rules :
- apiGroups :
- ""
resources :
- secrets
verbs :
- get
- list
- watch
{{- end }}
2023-10-16 13:14:53 -04:00
{{- if and .Values.agent (not .Values.preflight.enabled) .Values.serviceAccounts.cilium.create .Values.gatewayAPI.enabled .Values.gatewayAPI.secretsNamespace.name }}
---
apiVersion : rbac.authorization.k8s.io/v1
kind : Role
metadata :
name : cilium-gateway-secrets
namespace : {{ .Values.gatewayAPI.secretsNamespace.name | quote }}
{{- with .Values.annotations }}
annotations :
{{- toYaml . | nindent 4 }}
{{- end }}
labels :
app.kubernetes.io/part-of : cilium
rules :
- apiGroups :
- ""
resources :
- secrets
verbs :
- get
- list
- watch
{{- end}}
{{- if and .Values.agent (not .Values.preflight.enabled) .Values.serviceAccounts.cilium.create .Values.envoyConfig.enabled .Values.envoyConfig.secretsNamespace.name }}
---
apiVersion : rbac.authorization.k8s.io/v1
kind : Role
metadata :
name : cilium-envoy-config-secrets
namespace : {{ .Values.envoyConfig.secretsNamespace.name | quote }}
{{- with .Values.annotations }}
annotations :
{{- toYaml . | nindent 4 }}
{{- end }}
labels :
app.kubernetes.io/part-of : cilium
rules :
- apiGroups :
- ""
resources :
- secrets
verbs :
- get
- list
- watch
{{- end}}
{{- if and .Values.agent (not .Values.preflight.enabled) .Values.serviceAccounts.cilium.create .Values.bgpControlPlane.enabled .Values.bgpControlPlane.secretsNamespace.name }}
---
apiVersion : rbac.authorization.k8s.io/v1
kind : Role
metadata :
name : cilium-bgp-control-plane-secrets
namespace : {{ .Values.bgpControlPlane.secretsNamespace.name | quote }}
labels :
app.kubernetes.io/part-of : cilium
rules :
- apiGroups :
- ""
resources :
- secrets
verbs :
- get
- list
- watch
{{- end}}