128 lines
2.7 KiB
YAML
128 lines
2.7 KiB
YAML
|
{{- if and .Values.rbac.create .Values.rbac.clusterRole }}
|
||
|
apiVersion: rbac.authorization.k8s.io/{{ .Values.rbac.apiVersion }}
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
name: {{ template "common.names.fullname.namespace" . }}
|
||
|
namespace: {{ .Release.Namespace | quote }}
|
||
|
labels: {{ include "external-dns.labels" . | nindent 4 }}
|
||
|
{{- if .Values.commonLabels }}
|
||
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
||
|
{{- end }}
|
||
|
{{- if .Values.commonAnnotations }}
|
||
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
||
|
{{- end }}
|
||
|
rules:
|
||
|
- apiGroups:
|
||
|
- ""
|
||
|
resources:
|
||
|
- services
|
||
|
- pods
|
||
|
- nodes
|
||
|
- endpoints
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- extensions
|
||
|
- "networking.k8s.io"
|
||
|
- getambassador.io
|
||
|
resources:
|
||
|
- ingresses
|
||
|
- hosts
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- route.openshift.io
|
||
|
resources:
|
||
|
- routes
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- networking.istio.io
|
||
|
resources:
|
||
|
- gateways
|
||
|
- virtualservices
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- zalando.org
|
||
|
resources:
|
||
|
- routegroups
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- zalando.org
|
||
|
resources:
|
||
|
- routegroups/status
|
||
|
verbs:
|
||
|
- patch
|
||
|
- update
|
||
|
- apiGroups:
|
||
|
- projectcontour.io
|
||
|
resources:
|
||
|
- httpproxies
|
||
|
verbs:
|
||
|
- get
|
||
|
- watch
|
||
|
- list
|
||
|
- apiGroups:
|
||
|
- gloo.solo.io
|
||
|
- gateway.solo.io
|
||
|
resources:
|
||
|
- proxies
|
||
|
- virtualservices
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
- configuration.konghq.com
|
||
|
resources:
|
||
|
- tcpingresses
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
{{- if or .Values.crd.create .Values.crd.apiversion }}
|
||
|
- apiGroups:
|
||
|
{{- if .Values.crd.create }}
|
||
|
- externaldns.k8s.io
|
||
|
{{- else }}
|
||
|
- {{ $api := splitn "/" 2 .Values.crd.apiversion }}{{ $api._0 }}
|
||
|
{{- end }}
|
||
|
resources:
|
||
|
{{- if .Values.crd.create }}
|
||
|
- dnsendpoints
|
||
|
{{- else }}
|
||
|
- {{ printf "%ss" (.Values.crd.kind | lower) }}
|
||
|
{{- end }}
|
||
|
verbs:
|
||
|
- get
|
||
|
- list
|
||
|
- watch
|
||
|
- apiGroups:
|
||
|
{{- if .Values.crd.create }}
|
||
|
- externaldns.k8s.io
|
||
|
{{- else }}
|
||
|
- {{ $api := splitn "/" 2 .Values.crd.apiversion }}{{ $api._0 }}
|
||
|
{{- end }}
|
||
|
resources:
|
||
|
{{- if .Values.crd.create }}
|
||
|
- dnsendpoints/status
|
||
|
{{- else }}
|
||
|
- {{ printf "%ss/status" (.Values.crd.kind | lower) }}
|
||
|
{{- end }}
|
||
|
verbs:
|
||
|
- update
|
||
|
{{- end }}
|
||
|
{{- end }}
|