Skip to content

Commit

Permalink
chore: review
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Gonzalez V <[email protected]>
  • Loading branch information
sxd committed Mar 29, 2024
1 parent 2271e74 commit 2b3793c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 317 deletions.
22 changes: 22 additions & 0 deletions charts/edb-postgres-for-kubernetes/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,25 @@ Create the imagePullSecret
{{- end }}
{{- end }}
{{- end }}

{{/*
Define which type of roles we should have
*/}}
{{- define "edb-postgres-for-kubernetes.role" }}
{{- if .Values.config.clusterWide }}
{{- printf "ClusterRole" }}
{{- else }}
{{- printf "Role" }}
{{- end }}
{{- end }}

{{/*
Define the type of binding for the role
*/}}
{{- define "edb-postgres-for-kubernetes.binding" }}
{{- if .Values.config.clusterWide }}
{{- printf "ClusterRoleBinding" }}
{{- else }}
{{- printf "RoleBinding" }}
{{- end }}
{{- end }}
Loading

0 comments on commit 2b3793c

Please sign in to comment.