diff options
author | Micha? Jagie??o <michal.jagiello@t-mobile.pl> | 2024-12-12 07:44:14 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2024-12-12 07:44:14 +0000 |
commit | 5f8008ea8d1aa700a26b7ced5d43aacbcf23107a (patch) | |
tree | 0e1c0d350ee05aee622f90423d1db119b24bc280 /kubernetes/authentication/components/oauth2-proxy/templates/service.yaml | |
parent | 0741e1c181a0d3352f9efbe3e7f97006a908eed8 (diff) | |
parent | 644dd33c78dd4c7fe638f93414617686efea95ec (diff) |
Merge "[AUTHENTICATION] New Oslo version"
Diffstat (limited to 'kubernetes/authentication/components/oauth2-proxy/templates/service.yaml')
-rw-r--r-- | kubernetes/authentication/components/oauth2-proxy/templates/service.yaml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kubernetes/authentication/components/oauth2-proxy/templates/service.yaml b/kubernetes/authentication/components/oauth2-proxy/templates/service.yaml index d16120ee91..e8d02aeba8 100644 --- a/kubernetes/authentication/components/oauth2-proxy/templates/service.yaml +++ b/kubernetes/authentication/components/oauth2-proxy/templates/service.yaml @@ -6,9 +6,9 @@ metadata: {{- include "oauth2-proxy.labels" . | indent 4 }} name: {{ template "oauth2-proxy.fullname" . }} namespace: {{ template "oauth2-proxy.namespace" $ }} -{{- if .Values.service.annotations }} +{{- with .Values.service.annotations }} annotations: -{{ toYaml .Values.service.annotations | indent 4 }} +{{ tpl ( toYaml . ) $ | indent 4 }} {{- end }} spec: {{- if (or (eq .Values.service.type "ClusterIP") (empty .Values.service.type)) }} @@ -28,6 +28,12 @@ spec: {{- else }} type: {{ .Values.service.type }} {{- end }} +{{- if .Values.service.externalTrafficPolicy }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }} +{{- end }} +{{- if .Values.service.internalTrafficPolicy }} + internalTrafficPolicy: {{ .Values.service.internalTrafficPolicy }} +{{- end }} ports: - port: {{ .Values.service.portNumber }} targetPort: {{ .Values.httpScheme }} |