Skip to content

Commit

Permalink
Generated commit to update templated files based on rev 91bef8a in st…
Browse files Browse the repository at this point in the history
…ackabletech/operator-templating repo. (#38)

Original commit message:
Rename objects created by Helm charts. (#12)
  • Loading branch information
soenkeliebau authored Nov 25, 2021
1 parent 5ebcea3 commit 5f3b43a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion deploy/helm/druid-operator/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ data:
{{ (.Files.Glob "configs/*").AsConfig | indent 2 }}
kind: ConfigMap
metadata:
name: {{ include "operator.fullname" . }}-configspec
name: {{ .Release.Name }}-configmap
labels:
{{- include "operator.labels" . | nindent 4 }}
6 changes: 3 additions & 3 deletions deploy/helm/druid-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "operator.fullname" . }}
name: {{ .Release.Name }}-deployment
labels:
{{- include "operator.labels" . | nindent 4 }}
spec:
Expand All @@ -29,7 +29,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "operator.serviceAccountName" . }}
serviceAccountName: {{ .Release.Name }}-serviceaccount
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
Expand All @@ -46,7 +46,7 @@ spec:
volumes:
- name: config-spec
configMap:
name: {{ include "operator.fullname" . }}-configspec
name: {{ .Release.Name }}-configmap
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/druid-operator/templates/roles.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "operator.name" . }}-operator
name: {{ .Release.Name }}-clusterrole
rules:
# For Apache ZooKeeper dependents
- apiGroups:
Expand Down
8 changes: 4 additions & 4 deletions deploy/helm/druid-operator/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "operator.serviceAccountName" . }}
name: {{ .Release.Name }}-serviceaccount
labels:
{{- include "operator.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand All @@ -18,15 +18,15 @@ apiVersion: rbac.authorization.k8s.io/v1
# This cluster role binding allows anyone in the "manager" group to read secrets in any namespace.
kind: ClusterRoleBinding
metadata:
name: {{ include "operator.serviceAccountName" . }}-rolebinding
name: {{ .Release.Name }}-clusterrolebinding
labels:
{{- include "operator.labels" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: {{ include "operator.serviceAccountName" . }}
name: {{ .Release.Name }}-serviceaccount
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
name: {{ include "operator.serviceAccountName" . }}
name: {{ .Release.Name }}-clusterrole
apiGroup: rbac.authorization.k8s.io
{{- end }}

0 comments on commit 5f3b43a

Please sign in to comment.