diff --git a/charts/vaultwarden/Chart.yaml b/charts/vaultwarden/Chart.yaml index 8a2ac0a..cf9fad3 100644 --- a/charts/vaultwarden/Chart.yaml +++ b/charts/vaultwarden/Chart.yaml @@ -13,5 +13,5 @@ maintainers: - name: guerzon email: guerzon@proton.me url: https://github.com/guerzon -version: 0.27.0 +version: 0.28.0 kubeVersion: ">=1.12.0-0" diff --git a/charts/vaultwarden/README.md b/charts/vaultwarden/README.md index b37f9ff..06bfd8e 100644 --- a/charts/vaultwarden/README.md +++ b/charts/vaultwarden/README.md @@ -338,6 +338,7 @@ helm -n $NAMESPACE uninstall $RELEASE_NAME | `podSecurityContext` | Pod security options | `{}` | | `securityContext` | Default security options to run vault as read only container without privilege escalation | `{}` | | `dnsConfig` | Pod DNS options | `{}` | +| `enableServiceLinks` | Enable service links, Kubernetes default is true | `true` | ### Reliability configuration diff --git a/charts/vaultwarden/ci/test-values.yaml b/charts/vaultwarden/ci/test-values.yaml index fc8eaa8..ca70b59 100644 --- a/charts/vaultwarden/ci/test-values.yaml +++ b/charts/vaultwarden/ci/test-values.yaml @@ -24,3 +24,5 @@ duo: iKey: "999888" sKey: value: "HELLO" + +enableServiceLinks: false diff --git a/charts/vaultwarden/templates/_podSpec.tpl b/charts/vaultwarden/templates/_podSpec.tpl index 8f60724..a870664 100644 --- a/charts/vaultwarden/templates/_podSpec.tpl +++ b/charts/vaultwarden/templates/_podSpec.tpl @@ -23,6 +23,9 @@ securityContext: initContainers: {{- toYaml . | nindent 2 }} {{- end }} +{{- if not .Values.enableServiceLinks }} +enableServiceLinks: false +{{- end }} containers: - image: {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }} imagePullPolicy: {{ .Values.image.pullPolicy }} diff --git a/charts/vaultwarden/values.yaml b/charts/vaultwarden/values.yaml index e235880..121bfac 100644 --- a/charts/vaultwarden/values.yaml +++ b/charts/vaultwarden/values.yaml @@ -124,6 +124,11 @@ securityContext: ## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config dnsConfig: {} +## @param enableServiceLinks Enable service links, Kubernetes default is true +## Ref: https://kubernetes.io/docs/tutorials/services/connect-applications-service/#accessing-the-service +## +enableServiceLinks: true + ## @section Reliability configuration ##