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:
parent
38e96a4b6b
commit
02a3c4afda
6 changed files with 32 additions and 0 deletions
|
@ -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/ |
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue