d632474b4d
As discussed in the team meeting [1] this commit copies the Monasca charts from monasca/monasca-helm repository. The goal is to adapt these charts to OSH standards and patterns, and then move them to openstack-helm and openstack-helm-infra repositories accordingly. [1] http://eavesdrop.openstack.org/meetings/openstack_helm/2019/openstack_helm.2019-02-12-15.01.html Change-Id: I261187de943046b7314ae6ab6b0f997624952d5e
27 lines
973 B
YAML
27 lines
973 B
YAML
{{- if and (.Values.rbac.create) (not .Values.cleanup.serviceAccount) }}
|
|
{{- if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1" }}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
{{- else if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1beta1" }}
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
{{- else if .Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1alpha1" }}
|
|
apiVersion: rbac.authorization.k8s.io/v1alpha1
|
|
{{- end }}
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: {{ template "cleanup.fullname" . }}
|
|
labels:
|
|
app: {{ template "fullname" . }}
|
|
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
|
component: "{{ .Values.cleanup.name }}"
|
|
heritage: {{ .Release.Service }}
|
|
release: {{ .Release.Name }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "cleanup.fullname" . }}
|
|
namespace: "{{ .Release.Namespace }}"
|
|
roleRef:
|
|
kind: Role
|
|
name: {{ template "cleanup.fullname" . }}
|
|
apiGroup: rbac.authorization.k8s.io
|
|
{{- end }}
|