diff --git a/charts/kyverno/README.md b/charts/kyverno/README.md index 186e44ca0d..aaafcb8a19 100644 --- a/charts/kyverno/README.md +++ b/charts/kyverno/README.md @@ -369,6 +369,7 @@ The chart values are organised per component. | admissionController.revisionHistoryLimit | int | `10` | The number of revisions to keep | | admissionController.podLabels | object | `{}` | Additional labels to add to each pod | | admissionController.podAnnotations | object | `{}` | Additional annotations to add to each pod | +| admissionController.annotations | object | `{}` | Deployment annotations. | | admissionController.updateStrategy | object | See [values.yaml](values.yaml) | Deployment update strategy. Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy | | admissionController.priorityClassName | string | `""` | Optional priority class | | admissionController.apiPriorityAndFairness | bool | `false` | Change `apiPriorityAndFairness` to `true` if you want to insulate the API calls made by Kyverno admission controller activities. This will help ensure Kyverno stability in busy clusters. Ref: https://kubernetes.io/docs/concepts/cluster-administration/flow-control/ | @@ -471,6 +472,7 @@ The chart values are organised per component. | backgroundController.revisionHistoryLimit | int | `10` | The number of revisions to keep | | backgroundController.podLabels | object | `{}` | Additional labels to add to each pod | | backgroundController.podAnnotations | object | `{}` | Additional annotations to add to each pod | +| backgroundController.annotations | object | `{}` | Deployment annotations. | | backgroundController.updateStrategy | object | See [values.yaml](values.yaml) | Deployment update strategy. Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy | | backgroundController.priorityClassName | string | `""` | Optional priority class | | backgroundController.hostNetwork | bool | `false` | Change `hostNetwork` to `true` when you want the pod to share its host's network namespace. Useful for situations like when you end up dealing with a custom CNI over Amazon EKS. Update the `dnsPolicy` accordingly as well to suit the host network mode. | @@ -544,6 +546,7 @@ The chart values are organised per component. | cleanupController.revisionHistoryLimit | int | `10` | The number of revisions to keep | | cleanupController.podLabels | object | `{}` | Additional labels to add to each pod | | cleanupController.podAnnotations | object | `{}` | Additional annotations to add to each pod | +| cleanupController.annotations | object | `{}` | Deployment annotations. | | cleanupController.updateStrategy | object | See [values.yaml](values.yaml) | Deployment update strategy. Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy | | cleanupController.priorityClassName | string | `""` | Optional priority class | | cleanupController.hostNetwork | bool | `false` | Change `hostNetwork` to `true` when you want the pod to share its host's network namespace. Useful for situations like when you end up dealing with a custom CNI over Amazon EKS. Update the `dnsPolicy` accordingly as well to suit the host network mode. | @@ -625,6 +628,7 @@ The chart values are organised per component. | reportsController.revisionHistoryLimit | int | `10` | The number of revisions to keep | | reportsController.podLabels | object | `{}` | Additional labels to add to each pod | | reportsController.podAnnotations | object | `{}` | Additional annotations to add to each pod | +| reportsController.annotations | object | `{}` | Deployment annotations. | | reportsController.updateStrategy | object | See [values.yaml](values.yaml) | Deployment update strategy. Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy | | reportsController.priorityClassName | string | `""` | Optional priority class | | reportsController.apiPriorityAndFairness | bool | `false` | Change `apiPriorityAndFairness` to `true` if you want to insulate the API calls made by Kyverno reports controller activities. This will help ensure Kyverno reports stability in busy clusters. Ref: https://kubernetes.io/docs/concepts/cluster-administration/flow-control/ | diff --git a/charts/kyverno/templates/admission-controller/deployment.yaml b/charts/kyverno/templates/admission-controller/deployment.yaml index d8728b8e72..8ca7daeb36 100644 --- a/charts/kyverno/templates/admission-controller/deployment.yaml +++ b/charts/kyverno/templates/admission-controller/deployment.yaml @@ -6,6 +6,10 @@ metadata: namespace: {{ template "kyverno.namespace" . }} labels: {{- include "kyverno.admission-controller.labels" . | nindent 4 }} + {{- with .Values.admissionController.annotations }} + annotations: + {{- tpl (toYaml .) $ | nindent 4 }} + {{- end }} spec: replicas: {{ template "kyverno.deployment.replicas" .Values.admissionController.replicas }} revisionHistoryLimit: {{ .Values.admissionController.revisionHistoryLimit }} diff --git a/charts/kyverno/templates/background-controller/deployment.yaml b/charts/kyverno/templates/background-controller/deployment.yaml index acbaf7f7c1..11130e26b0 100644 --- a/charts/kyverno/templates/background-controller/deployment.yaml +++ b/charts/kyverno/templates/background-controller/deployment.yaml @@ -7,6 +7,10 @@ metadata: namespace: {{ template "kyverno.namespace" . }} labels: {{- include "kyverno.background-controller.labels" . | nindent 4 }} + {{- with .Values.backgroundController.annotations }} + annotations: + {{- tpl (toYaml .) $ | nindent 4 }} + {{- end }} spec: replicas: {{ template "kyverno.deployment.replicas" .Values.backgroundController.replicas }} revisionHistoryLimit: {{ .Values.backgroundController.revisionHistoryLimit }} diff --git a/charts/kyverno/templates/cleanup-controller/deployment.yaml b/charts/kyverno/templates/cleanup-controller/deployment.yaml index ddb80db49a..a957fe602a 100644 --- a/charts/kyverno/templates/cleanup-controller/deployment.yaml +++ b/charts/kyverno/templates/cleanup-controller/deployment.yaml @@ -7,6 +7,10 @@ metadata: namespace: {{ template "kyverno.namespace" . }} labels: {{- include "kyverno.cleanup-controller.labels" . | nindent 4 }} + {{- with .Values.cleanupController.annotations }} + annotations: + {{- tpl (toYaml .) $ | nindent 4 }} + {{- end }} spec: replicas: {{ template "kyverno.deployment.replicas" .Values.cleanupController.replicas }} revisionHistoryLimit: {{ .Values.cleanupController.revisionHistoryLimit }} diff --git a/charts/kyverno/templates/reports-controller/deployment.yaml b/charts/kyverno/templates/reports-controller/deployment.yaml index 935c092834..afe41702ad 100644 --- a/charts/kyverno/templates/reports-controller/deployment.yaml +++ b/charts/kyverno/templates/reports-controller/deployment.yaml @@ -7,6 +7,10 @@ metadata: namespace: {{ template "kyverno.namespace" . }} labels: {{- include "kyverno.reports-controller.labels" . | nindent 4 }} + {{- with .Values.reportsController.annotations }} + annotations: + {{- tpl (toYaml .) $ | nindent 4 }} + {{- end }} spec: replicas: {{ template "kyverno.deployment.replicas" .Values.reportsController.replicas }} revisionHistoryLimit: {{ .Values.reportsController.revisionHistoryLimit }} diff --git a/charts/kyverno/values.yaml b/charts/kyverno/values.yaml index c26c0bc63b..2632a51d05 100644 --- a/charts/kyverno/values.yaml +++ b/charts/kyverno/values.yaml @@ -755,6 +755,9 @@ admissionController: podAnnotations: {} # example.com/annotation: foo + # -- Deployment annotations. + annotations: {} + # -- Deployment update strategy. # Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy # @default -- See [values.yaml](values.yaml) @@ -1208,6 +1211,9 @@ backgroundController: podAnnotations: {} # example.com/annotation: foo + # -- Deployment annotations. + annotations: {} + # -- Deployment update strategy. # Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy # @default -- See [values.yaml](values.yaml) @@ -1468,6 +1474,9 @@ cleanupController: podAnnotations: {} # example.com/annotation: foo + # -- Deployment annotations. + annotations: {} + # -- Deployment update strategy. # Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy # @default -- See [values.yaml](values.yaml) @@ -1778,6 +1787,9 @@ reportsController: podAnnotations: {} # example.com/annotation: foo + # -- Deployment annotations. + annotations: {} + # -- Deployment update strategy. # Ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy # @default -- See [values.yaml](values.yaml)