fae1ec2668
breaking_change_check 결과 breaking=false — custom-values.yaml이 실제로 쓰는 키 (image, http.relativePath, command, ingress, proxy, resources, database, extraEnv) 중 어느 것도 diff에 걸리지 않았다. 유일한 템플릿 변경(probe 경로가 managementRelativePath를 coalesce로 우선하도록 바뀜)도 relativePath: "/" 를 그대로 쓰므로 동작 영향이 없다. CRD·의존성 변경 없음. appVersion은 26.6.4→26.7.2로 오르지만 custom-values.yaml이 자체 빌드 이미지 태그(26.7.1-bci15.7-hardened)를 명시적으로 고정하므로 이 업그레이드로 실제 배포 버전이 바뀌지는 않는다 — 26.7.2로 올리려면 hardened-containers에서 별도로 자체 빌드해야 한다. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
119 lines
3.2 KiB
YAML
119 lines
3.2 KiB
YAML
{{- $httpRoute := .Values.httpRoute -}}
|
|
{{- if $httpRoute.enabled -}}
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: {{ include "keycloak.fullname" . }}
|
|
namespace: {{ include "keycloak.namespace" . }}
|
|
labels:
|
|
{{- include "keycloak.labels" . | nindent 4 }}
|
|
{{- range $key, $value := $httpRoute.labels }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
|
{{- end }}
|
|
{{- with $httpRoute.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
parentRefs:
|
|
{{- if $httpRoute.listenerSet.enabled }}
|
|
- kind: ListenerSet
|
|
name: {{ include "keycloak.fullname" $ }}
|
|
namespace: {{ $.Release.Namespace }}
|
|
{{- else }}
|
|
{{- with $httpRoute.parentRefs }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if $httpRoute.listenerSet.enabled }}
|
|
{{- $hostnames := list }}
|
|
{{- range $httpRoute.listenerSet.listeners }}
|
|
{{- if .hostname }}
|
|
{{- $hostnames = append $hostnames .hostname }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with $hostnames }}
|
|
hostnames:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- else }}
|
|
{{- with $httpRoute.hostnames }}
|
|
hostnames:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
rules:
|
|
{{- range $httpRoute.rules }}
|
|
{{- with .matches }}
|
|
- matches:
|
|
{{- range . }}
|
|
{{- if .path }}
|
|
- path:
|
|
type: {{ .path.type }}
|
|
value: {{ tpl .path.value $ }}
|
|
{{- end }}
|
|
{{- else }}
|
|
{{ . | toYaml | nindent 8 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with .filters }}
|
|
filters:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
backendRefs:
|
|
- name: {{ include "keycloak.fullname" $ }}-http
|
|
port: {{ $httpRoute.servicePort }}
|
|
{{- end }}
|
|
{{- end }}
|
|
---
|
|
{{- if $httpRoute.console.enabled }}
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: {{ include "keycloak.fullname" . }}-console
|
|
namespace: {{ include "keycloak.namespace" . }}
|
|
labels:
|
|
{{- include "keycloak.labels" . | nindent 4 }}
|
|
{{- range $key, $value := $httpRoute.labels }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
|
{{- end }}
|
|
{{- range $key, $value := $httpRoute.console.labels }}
|
|
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
|
|
{{- end }}
|
|
{{- with $httpRoute.console.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
parentRefs:
|
|
{{- with pluck "parentRefs" $httpRoute.console $httpRoute | first }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with pluck "hostnames" $httpRoute.console $httpRoute | first }}
|
|
hostnames:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
rules:
|
|
{{- range $httpRoute.console.rules }}
|
|
{{- with .matches }}
|
|
- matches:
|
|
{{- range . }}
|
|
{{- if .path }}
|
|
- path:
|
|
type: {{ .path.type }}
|
|
value: {{ tpl .path.value $ }}
|
|
{{- end }}
|
|
{{- else }}
|
|
{{ . | toYaml | nindent 8 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with .filters }}
|
|
filters:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
backendRefs:
|
|
- name: {{ include "keycloak.fullname" $ }}-http
|
|
port: {{ $httpRoute.servicePort }}
|
|
{{- end }}
|
|
{{- end }}
|