diff --git a/stable/cosi-bucket-kit/Chart.yaml b/stable/cosi-bucket-kit/Chart.yaml index e95e3bdba..b63d04a4f 100644 --- a/stable/cosi-bucket-kit/Chart.yaml +++ b/stable/cosi-bucket-kit/Chart.yaml @@ -8,8 +8,8 @@ keywords: - bucket - storage - ceph -version: 0.0.1-alpha.2 -appVersion: 0.0.1-alpha.2 +version: 0.0.1-alpha.3 +appVersion: 0.0.1-alpha.3 maintainers: - name: takirala - name: mhrabovcin diff --git a/stable/cosi-bucket-kit/templates/job-readiness.yaml b/stable/cosi-bucket-kit/templates/job-readiness.yaml index 7d2270a79..8bf90b784 100644 --- a/stable/cosi-bucket-kit/templates/job-readiness.yaml +++ b/stable/cosi-bucket-kit/templates/job-readiness.yaml @@ -11,32 +11,30 @@ metadata: "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded --- apiVersion: rbac.authorization.k8s.io/v1 -kind: Role +kind: ClusterRole metadata: name: {{ .Release.Name }}-readiness - namespace: {{ .Release.Namespace }} annotations: "helm.sh/hook": post-install,post-upgrade "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded rules: - apiGroups: [ "" ] resources: [ "configmaps" ] - verbs: [ "get", "list", "create", "patch"] # A new configmap is created for harbor + verbs: [ "get", "list", "create", "patch"] # A new configmap is created for harbor (in a different namespace than helm release namespace). - apiGroups: [ "" ] resources: [ "secrets" ] verbs: [ "get", "list", "patch" ] # Existing secrets are updated for kubecost and harbor. --- apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding +kind: ClusterRoleBinding metadata: name: {{ .Release.Name }}-readiness - namespace: {{ .Release.Namespace }} annotations: "helm.sh/hook": post-install,post-upgrade "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded roleRef: apiGroup: rbac.authorization.k8s.io - kind: Role + kind: ClusterRole name: {{ .Release.Name }}-readiness subjects: - kind: ServiceAccount @@ -186,13 +184,13 @@ spec: --dry-run=client -o yaml | kubectl apply -f - # Create a configmap with the name of the secret from above. kubectl create configmap {{ $cmName }} -n {{ $cmNamespace }} \ - --from-file=values.yaml=<(cat <