github.com/replicatedcom/ship@v0.50.0/integration/init/istio-1.0.3/expected/.ship/upstream/charts/gateways/templates/clusterrole.yaml (about) 1 {{- range $key, $spec := .Values }} 2 {{- if and (ne $key "global") (ne $key "enabled") }} 3 {{- if $spec.enabled }} 4 apiVersion: rbac.authorization.k8s.io/v1beta1 5 kind: ClusterRole 6 metadata: 7 labels: 8 app: {{ template "istio.name" $ }} 9 chart: {{ $.Chart.Name }}-{{ $.Chart.Version }} 10 heritage: {{ $.Release.Service }} 11 release: {{ $.Release.Name }} 12 name: {{ $key }}-{{ $.Release.Namespace }} 13 rules: 14 - apiGroups: ["extensions"] 15 resources: ["thirdpartyresources", "virtualservices", "destinationrules", "gateways"] 16 verbs: ["get", "watch", "list", "update"] 17 --- 18 {{- end }} 19 {{- end }} 20 {{- end }}