All Downloads are FREE. Search and download functionalities are using the official Maven repository.

helm.additional-crd-role-binding-template.yaml Maven / Gradle / Ivy

There is a newer version: 6.8.4
Show newest version
{{ if eq $.Values.watchNamespaces "JOSDK_WATCH_CURRENT" }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: {role-binding-name}
  namespace: {{ $.Release.Namespace }}
  labels:
    app.kubernetes.io/name: {{ .Chart.Name }}
    app.kubernetes.io/version: {{ .Chart.AppVersion }}
    app.kubernetes.io/managed-by: quarkus
roleRef:
  kind: {role-ref-kind}
  apiGroup: {role-ref-api-group}
  name: {role-ref-name}
subjects:
  - kind: ServiceAccount
    name: {{ $.Chart.Name }}
{{ else if eq $.Values.watchNamespaces "JOSDK_ALL_NAMESPACES" }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: {role-binding-name}
  labels:
    app.kubernetes.io/name: {{ .Chart.Name }}
    app.kubernetes.io/version: {{ .Chart.AppVersion }}
    app.kubernetes.io/managed-by: quarkus
roleRef:
  kind: {role-ref-kind}
  apiGroup: {role-ref-api-group}
  name: {role-ref-name}
subjects:
  - kind: ServiceAccount
    name: {{ $.Chart.Name }}
    namespace: {{ $.Release.Namespace }}
{{ else }}
{{ range $anamespace := ( split "," $.Values.watchNamespaces ) }}
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: {role-binding-name}
  namespace: {{ $anamespace }}
  labels:
    app.kubernetes.io/name: {{ .Chart.Name }}
    app.kubernetes.io/version: {{ .Chart.AppVersion }}
    app.kubernetes.io/managed-by: quarkus
roleRef:
  kind: {role-ref-kind}
  apiGroup: {role-ref-api-group}
  name: {role-ref-name}
subjects:
  - kind: ServiceAccount
    name: {{ $.Chart.Name }}
    namespace: {{ $.Release.Namespace }}
---
{{- end }}
{{- end }}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy