github.com/replicatedcom/ship@v0.50.0/integration/init/istio-1.0.3/expected/.ship/upstream/charts/gateways/templates/clusterrolebindings.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: ClusterRoleBinding
     6  metadata:
     7    name: {{ $key }}-{{ $.Release.Namespace }}
     8  roleRef:
     9    apiGroup: rbac.authorization.k8s.io
    10    kind: ClusterRole
    11    name: {{ $key }}-{{ $.Release.Namespace }}
    12  subjects:
    13    - kind: ServiceAccount
    14      name: {{ $key }}-service-account
    15      namespace: {{ $.Release.Namespace }}
    16  ---
    17  {{- end }}
    18  {{- end }}
    19  {{- end }}