1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

Custom annotations on deployment (#10971)

* Custom annotations on deployment

Signed-off-by: Denis Khasbulatov <KhasDenis@gmail.com>

* chore: simplify e2e matrix (#10972)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Denis Khasbulatov <KhasDenis@gmail.com>

* Custom annotations on deployment

Signed-off-by: Denis Khasbulatov <KhasDenis@gmail.com>

* Custom annotations on deployment

Signed-off-by: Denis Khasbulatov <KhasDenis@gmail.com>

* Custom annotations on deployment

Signed-off-by: Denis Khasbulatov <KhasDenis@gmail.com>

---------

Signed-off-by: Denis Khasbulatov <KhasDenis@gmail.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: KhasDenis <30524039+KhasDenis@users.noreply.github.com>
Co-authored-by: Denis Khasbulatov <mimacom.khasbulatov@extaccount.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
KhasDenis 2024-09-03 15:13:28 +02:00 committed by GitHub
parent 38e96a4b6b
commit 02a3c4afda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 32 additions and 0 deletions

View file

@ -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/ |

View file

@ -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 }}

View file

@ -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 }}

View file

@ -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 }}

View file

@ -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 }}

View file

@ -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)