You've already forked reposilite-charts
fix(gatewayAPI): adapt backendTLSPolicy
This commit is contained in:
@@ -2,18 +2,18 @@
|
||||
|
||||
{{/* annotations */}}
|
||||
|
||||
{{- define "reposilite.backendTLSConfig.annotations" -}}
|
||||
{{- define "reposilite.backendTLSPolicy.annotations" -}}
|
||||
{{ include "reposilite.annotations" . }}
|
||||
{{- if .Values.gatewayAPI.core.backendTLSConfig.annotations }}
|
||||
{{ toYaml .Values.gatewayAPI.core.backendTLSConfig.annotations }}
|
||||
{{- if .Values.gatewayAPI.core.backendTLSPolicy.annotations }}
|
||||
{{ toYaml .Values.gatewayAPI.core.backendTLSPolicy.annotations }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{/* enabled */}}
|
||||
|
||||
{{- define "reposilite.backendTLSConfig.enabled" -}}
|
||||
{{- define "reposilite.backendTLSPolicy.enabled" -}}
|
||||
{{- if and .Values.gatewayAPI.enabled
|
||||
.Values.gatewayAPI.core.backendTLSConfig.enabled
|
||||
.Values.gatewayAPI.core.backendTLSPolicy.enabled
|
||||
.Values.service.enabled
|
||||
-}}
|
||||
true
|
||||
@@ -24,9 +24,9 @@ false
|
||||
|
||||
{{/* labels */}}
|
||||
|
||||
{{- define "reposilite.backendTLSConfig.labels" -}}
|
||||
{{- define "reposilite.backendTLSPolicy.labels" -}}
|
||||
{{ include "reposilite.labels" . }}
|
||||
{{- if .Values.gatewayAPI.core.backendTLSConfig.labels }}
|
||||
{{ toYaml .Values.gatewayAPI.core.backendTLSConfig.labels }}
|
||||
{{- if .Values.gatewayAPI.core.backendTLSPolicy.labels }}
|
||||
{{ toYaml .Values.gatewayAPI.core.backendTLSPolicy.labels }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
{{- if eq (include "reposilite.backendTLSConfig.enabled" $) "true" }}
|
||||
{{- if eq (include "reposilite.backendTLSPolicy.enabled" $) "true" }}
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: BackendTLSPolicy
|
||||
metadata:
|
||||
{{- with (include "reposilite.backendTLSConfig.annotations" . | fromYaml) }}
|
||||
{{- with (include "reposilite.backendTLSPolicy.annotations" . | fromYaml) }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- with (include "reposilite.backendTLSConfig.labels" . | fromYaml) }}
|
||||
{{- with (include "reposilite.backendTLSPolicy.labels" . | fromYaml) }}
|
||||
labels:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
@@ -18,7 +18,7 @@ spec:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: {{ include "reposilite.service.name" . }}
|
||||
{{- with .Values.gatewayAPI.core.backendTLSConfig.validation }}
|
||||
{{- with .Values.gatewayAPI.core.backendTLSPolicy.validation }}
|
||||
validation:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user