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>
228 lines
4.6 KiB
YAML
228 lines
4.6 KiB
YAML
{{- if .Values.admissionController.apiPriorityAndFairness }}
|
|
apiVersion: {{ template "kyverno.flowcontrol.apiVersion" . }}
|
|
kind: FlowSchema
|
|
metadata:
|
|
name: {{ template "kyverno.admission-controller.name" . }}
|
|
labels:
|
|
{{- include "kyverno.admission-controller.labels" . | nindent 4 }}
|
|
spec:
|
|
priorityLevelConfiguration:
|
|
name: {{ template "kyverno.admission-controller.name" . }}
|
|
rules:
|
|
- resourceRules:
|
|
- apiGroups:
|
|
- admissionregistration.k8s.io
|
|
clusterScope: true
|
|
namespaces: []
|
|
resources:
|
|
- mutatingwebhookconfigurations
|
|
- validatingwebhookconfigurations
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- deletecollection
|
|
- apiGroups:
|
|
- rbac.authorization.k8s.io
|
|
clusterScope: true
|
|
namespaces: []
|
|
resources:
|
|
- clusterroles
|
|
- clusterrolebindings
|
|
verbs:
|
|
- watch
|
|
- list
|
|
- apiGroups:
|
|
- rbac.authorization.k8s.io
|
|
namespaces:
|
|
- '*'
|
|
resources:
|
|
- roles
|
|
- rolebindings
|
|
verbs:
|
|
- watch
|
|
- list
|
|
- apiGroups:
|
|
- kyverno.io
|
|
clusterScope: true
|
|
namespaces: []
|
|
resources:
|
|
- clusterpolicies
|
|
- clusterpolicies/status
|
|
- globalcontextentries
|
|
- globalcontextentries/status
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- deletecollection
|
|
- apiGroups:
|
|
- kyverno.io
|
|
namespaces:
|
|
- '*'
|
|
resources:
|
|
- policies
|
|
- policies/status
|
|
- updaterequests
|
|
- updaterequests/status
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- deletecollection
|
|
- apiGroups:
|
|
- reports.kyverno.io
|
|
clusterScope: true
|
|
namespaces: []
|
|
resources:
|
|
- clusterephemeralreports
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- deletecollection
|
|
- apiGroups:
|
|
- reports.kyverno.io
|
|
namespaces:
|
|
- '*'
|
|
resources:
|
|
- ephemeralreports
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- deletecollection
|
|
- apiGroups:
|
|
- wgpolicyk8s.io
|
|
clusterScope: true
|
|
namespaces: []
|
|
resources:
|
|
- clusterpolicyreports
|
|
- clusterpolicyreports/status
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- deletecollection
|
|
- apiGroups:
|
|
- wgpolicyk8s.io
|
|
namespaces:
|
|
- '*'
|
|
resources:
|
|
- policyreports
|
|
- policyreports/status
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- list
|
|
- patch
|
|
- update
|
|
- watch
|
|
- deletecollection
|
|
- apiGroups:
|
|
- ""
|
|
- events.k8s.io
|
|
namespaces:
|
|
- '*'
|
|
resources:
|
|
- events
|
|
verbs:
|
|
- create
|
|
- update
|
|
- patch
|
|
- apiGroups:
|
|
- authorization.k8s.io
|
|
clusterScope: true
|
|
namespaces: []
|
|
resources:
|
|
- subjectaccessreviews
|
|
verbs:
|
|
- create
|
|
- apiGroups:
|
|
- '*'
|
|
namespaces:
|
|
- '*'
|
|
resources:
|
|
- '*'
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
- apiGroups:
|
|
- ''
|
|
namespaces:
|
|
- {{ template "kyverno.namespace" . }}
|
|
resources:
|
|
- secrets
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
- create
|
|
- update
|
|
- apiGroups:
|
|
- ''
|
|
namespaces:
|
|
- {{ template "kyverno.namespace" . }}
|
|
resources:
|
|
- configmaps
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
- apiGroups:
|
|
- coordination.k8s.io
|
|
namespaces:
|
|
- {{ template "kyverno.namespace" . }}
|
|
resources:
|
|
- leases
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- get
|
|
- patch
|
|
- update
|
|
- apiGroups:
|
|
- apps
|
|
namespaces:
|
|
- {{ template "kyverno.namespace" . }}
|
|
resources:
|
|
- deployments
|
|
- deployments/scale
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
- patch
|
|
- update
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
serviceAccount:
|
|
name: {{ template "kyverno.admission-controller.serviceAccountName" . }}
|
|
namespace: {{ template "kyverno.namespace" . }}
|
|
{{- end }} |