feat: make enableServiceLinks configurable (#118)

Signed-off-by: Lester Guerzon <guerzon@proton.me>
This commit is contained in:
Lester Guerzon
2024-09-07 15:25:42 +08:00
committed by GitHub
parent 527440af02
commit 46c7e41604
5 changed files with 12 additions and 1 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -24,3 +24,5 @@ duo:
iKey: "999888"
sKey:
value: "HELLO"
enableServiceLinks: false

View File

@@ -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 }}

View File

@@ -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
##