github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/ingress-nginx/templates/default-backend-rolebinding.yaml (about)

     1  {{- if and .Values.rbac.create .Values.podSecurityPolicy.enabled .Values.defaultBackend.enabled -}}
     2  {{- if .Capabilities.APIVersions.Has "policy/v1beta1/PodSecurityPolicy" }}
     3  apiVersion: rbac.authorization.k8s.io/v1
     4  kind: RoleBinding
     5  metadata:
     6    labels:
     7      {{- include "ingress-nginx.labels" . | nindent 4 }}
     8      app.kubernetes.io/component: default-backend
     9      {{- with .Values.defaultBackend.labels }}
    10      {{- toYaml . | nindent 4 }}
    11      {{- end }}
    12    name: {{ include "ingress-nginx.fullname" . }}-backend
    13    namespace: {{ .Release.Namespace }}
    14  roleRef:
    15    apiGroup: rbac.authorization.k8s.io
    16    kind: Role
    17    name: {{ include "ingress-nginx.fullname" . }}-backend
    18  subjects:
    19    - kind: ServiceAccount
    20      name: {{ template "ingress-nginx.defaultBackend.serviceAccountName" . }}
    21      namespace: {{ .Release.Namespace | quote }}
    22  {{- end }}
    23  {{- end }}