File tree Expand file tree Collapse file tree 6 files changed +64
-0
lines changed
Expand file tree Collapse file tree 6 files changed +64
-0
lines changed Original file line number Diff line number Diff line change 1+ {{/*
2+ Expand the name of the chart.
3+ */ }}
4+ {{- define " ..name" -}}
5+ {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix " -" }}
6+ {{- end }}
7+
8+ {{/*
9+ Create a default fully qualified app name.
10+ We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+ If release name contains chart name it will be used as a full name.
12+ */ }}
13+ {{- define " ..fullname" -}}
14+ {{- if .Values.fullnameOverride }}
15+ {{- .Values.fullnameOverride | trunc 63 | trimSuffix " -" }}
16+ {{- else }}
17+ {{- $name := default .Chart.Name .Values.nameOverride }}
18+ {{- if contains $name .Release.Name }}
19+ {{- .Release.Name | trunc 63 | trimSuffix " -" }}
20+ {{- else }}
21+ {{- printf " %s -%s " .Release.Name $name | trunc 63 | trimSuffix " -" }}
22+ {{- end }}
23+ {{- end }}
24+ {{- end }}
25+
126{{/*
227Selector labels
328*/ }}
@@ -22,8 +47,12 @@ Get the secret name for the API key
2247{{- if .Values.pdp.existingApiKeySecret -}}
2348{{- .Values.pdp.existingApiKeySecret.name -}}
2449{{- else -}}
50+ {{- if .Values.useStandardHelmNamingConventions }}
51+ {{- include " ..fullname" . }}
52+ {{- else -}}
2553permitio-pdp-secret
2654{{- end -}}
55+ {{- end -}}
2756{{- end }}
2857
2958{{/*
Original file line number Diff line number Diff line change 11apiVersion : apps/v1
22kind : Deployment
33metadata :
4+ {{- if .Values.useStandardHelmNamingConventions }}
5+ name : {{ include "..fullname" . }}
6+ {{- else }}
47 name : permitio-pdp
8+ {{- end }}
59 labels :
610 {{- include "pdp.labels" . | nindent 4 }}
711 {{- with .Values.annotations }}
Original file line number Diff line number Diff line change 22apiVersion : v1
33kind : ConfigMap
44metadata :
5+ {{- if .Values.useStandardHelmNamingConventions }}
6+ name : {{ include "..fullname" . }}-fluentbit-config
7+ {{- else }}
58 name : fluentbit-config
9+ {{- end }}
610 {{- with .Values.labels }}
711 labels :
812 {{- toYaml . | nindent 4 }}
Original file line number Diff line number Diff line change 22apiVersion : policy/v1
33kind : PodDisruptionBudget
44metadata :
5+ {{- if .Values.useStandardHelmNamingConventions }}
6+ name : {{ include "..fullname" . }}
7+ {{- else }}
58 name : permitio-pdp-pdb
9+ {{- end }}
610 labels :
711 {{- include "pdp.labels" . | nindent 4 }}
812 {{- with .Values.annotations }}
Original file line number Diff line number Diff line change 11apiVersion : v1
22kind : Service
33metadata :
4+ {{- if .Values.useStandardHelmNamingConventions }}
5+ name : {{ include "..fullname" . }}
6+ {{- else }}
47 name : permitio-pdp
8+ {{- end }}
59 {{- with .Values.labels }}
610 labels :
711 {{- toYaml . | nindent 4 }}
Original file line number Diff line number Diff line change 1+ # Feature flag added to preserve backward compatibility with the old naming conventions
2+ # When useStandardHelmNamingConventions is false (default):
3+ # - Service name: permitio-pdp
4+ # - Secret name: permitio-pdp-secret
5+ # - Deployment name: permitio-pdp
6+ # - PodDisruptionBudget name: permitio-pdp-pdb
7+ #
8+ # When useStandardHelmNamingConventions is true:
9+ # - Service name: {release-name}-{chart-name} (e.g., my-release-pdp)
10+ # - Secret name: {release-name}-{chart-name} (e.g., my-release-pdp)
11+ # - Deployment name: {release-name}-{chart-name} (e.g., my-release-pdp)
12+ # - PodDisruptionBudget name: {release-name}-{chart-name} (e.g., my-release-pdp)
13+ #
14+ # The standard Helm naming convention follows the pattern {release-name}-{chart-name}
15+ # and automatically truncates names to 63 characters to comply with Kubernetes DNS naming spec.
16+ useStandardHelmNamingConventions : false
17+
118labels : {}
219annotations : {}
320
21+ nameOverride : " "
22+
423pdp :
524 pdpEnvs :
625 []
You can’t perform that action at this time.
0 commit comments