a79e959c60
* kyverno 3.9.0(appVersion v1.19.0) 차트 추가 — 자체 빌드 이미지 사용 업스트림 이미지가 CVE 스캔 불가능한 베이스를 써서 자체 빌드로 대체한다(빌드 정의·근거는 hardened-containers). custom-values.yaml이 docker.io/paasup/* 7개 이미지를 가리키도록 고정했다. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * kyverno 3.4.1 삭제 3.9.0 추가 후 정리 --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
51 lines
3.5 KiB
YAML
51 lines
3.5 KiB
YAML
{{- if and (eq .Values.cleanupController.enabled true) (eq .Values.crds.groups.kyverno.cleanuppolicies false) }}
|
|
{{- fail "CRD cleanuppolicies disabled while cleanupController enabled" }}
|
|
{{- end }}
|
|
{{- if and (eq .Values.cleanupController.enabled true) (eq .Values.crds.groups.kyverno.clustercleanuppolicies false) }}
|
|
{{- fail "CRD clustercleanuppolicies disabled while cleanupController enabled" }}
|
|
{{- end }}
|
|
{{- if and (eq .Values.reportsController.enabled true) (eq .Values.reportsController.sanityChecks true) (eq .Values.crds.groups.wgpolicyk8s.clusterpolicyreports false) (eq .Values.crds.reportsServer.enabled false) }}
|
|
{{- fail "CRD clusterpolicyreports disabled while reportsController enabled" }}
|
|
{{- end }}
|
|
{{- if and (eq .Values.reportsController.enabled true) (eq .Values.reportsController.sanityChecks true) (eq .Values.crds.groups.wgpolicyk8s.policyreports false) (eq .Values.crds.reportsServer.enabled false) }}
|
|
{{- fail "CRD policyreports disabled while reportsController enabled" }}
|
|
{{- end }}
|
|
{{- if and (eq .Values.reportsController.enabled true) (eq .Values.reportsController.sanityChecks true) (eq .Values.crds.groups.reports.ephemeralreports false) (eq .Values.crds.reportsServer.enabled false) }}
|
|
{{- fail "CRD ephemeralreports disabled while reportsController enabled" }}
|
|
{{- end }}
|
|
{{- if and (eq .Values.reportsController.enabled true) (eq .Values.reportsController.sanityChecks true) (eq .Values.crds.groups.reports.clusterephemeralreports false) (eq .Values.crds.reportsServer.enabled false) }}
|
|
{{- fail "CRD clusterephemeralreports disabled while reportsController enabled" }}
|
|
{{- end }}
|
|
|
|
{{- if and (eq .Values.backgroundController.enabled true) (eq .Values.backgroundController.sanityChecks true) (eq .Values.crds.groups.reports.ephemeralreports false) (eq .Values.crds.reportsServer.enabled false) }}
|
|
{{- fail "CRD ephemeralreports disabled while reportsController enabled" }}
|
|
{{- end }}
|
|
{{- if and (eq .Values.backgroundController.enabled true) (eq .Values.backgroundController.sanityChecks true) (eq .Values.crds.groups.reports.clusterephemeralreports false) (eq .Values.crds.reportsServer.enabled false) }}
|
|
{{- fail "CRD clusterephemeralreports disabled while reportsController enabled" }}
|
|
{{- end }}
|
|
|
|
{{- if hasKey .Values "mode" -}}
|
|
{{- fail "mode is not supported anymore, please remove it from your release and use admissionController.replicas instead." -}}
|
|
{{- end -}}
|
|
|
|
{{- if eq (include "kyverno.namespace" .) "kube-system" -}}
|
|
{{- fail "Kyverno cannot be installed in namespace kube-system." -}}
|
|
{{- end -}}
|
|
|
|
{{- if not .Values.upgrade.fromV2 -}}
|
|
{{- $v2 := lookup "apps/v1" "Deployment" (include "kyverno.namespace" .) (include "kyverno.fullname" .) -}}
|
|
{{- if $v2 -}}
|
|
{{- fail (join "\n" (list
|
|
""
|
|
""
|
|
" +--------------------------------------------------------------------------------------------------------------------------------------+"
|
|
" | An earlier Helm installation of Kyverno was detected. |"
|
|
" | Given this chart version has significant breaking changes, the upgrade has been blocked. |"
|
|
" | Please review the release notes and chart README section and then, once prepared, set `upgrade.fromV2: true` once ready to proceed. |"
|
|
" +--------------------------------------------------------------------------------------------------------------------------------------+"
|
|
""
|
|
))
|
|
-}}
|
|
{{- end -}}
|
|
{{- end -}}
|