From b23edc869dddd505b133042ad7871cac8076e026 Mon Sep 17 00:00:00 2001 From: Steve Hipwell Date: Tue, 31 Oct 2023 10:30:51 +0000 Subject: [PATCH] feat(vpa): Updated image to v1.0.0 Signed-off-by: Steve Hipwell --- .github/workflows/release.yaml | 2 +- .github/workflows/validate-pr.yaml | 2 +- charts/vertical-pod-autoscaler/CHANGELOG.md | 8 ++++ charts/vertical-pod-autoscaler/Chart.yaml | 8 ++-- ...icalpodautoscalers.autoscaling.k8s.io.yaml | 47 +++++++++++++++++-- .../templates/rbac.yaml | 31 +++++++++++- 6 files changed, 87 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f56516eb..00ce5e5c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,7 +11,7 @@ on: jobs: workflow: name: Reusable Workflow - uses: action-stars/helm-workflows/.github/workflows/release.yaml@b59f38d3645603ef7c07dd3c7620f79e635fe320 # v0.1.8 + uses: action-stars/helm-workflows/.github/workflows/release.yaml@884dcfc5fce24f906d9caae28183d5fd966b45ab # v0.1.9 permissions: contents: write id-token: write diff --git a/.github/workflows/validate-pr.yaml b/.github/workflows/validate-pr.yaml index 8e008307..8a49e124 100644 --- a/.github/workflows/validate-pr.yaml +++ b/.github/workflows/validate-pr.yaml @@ -10,7 +10,7 @@ on: jobs: workflow: name: Reusable Workflow - uses: action-stars/helm-workflows/.github/workflows/validate.yaml@b59f38d3645603ef7c07dd3c7620f79e635fe320 # v0.1.8 + uses: action-stars/helm-workflows/.github/workflows/validate.yaml@884dcfc5fce24f906d9caae28183d5fd966b45ab # v0.1.9 permissions: contents: read id-token: write diff --git a/charts/vertical-pod-autoscaler/CHANGELOG.md b/charts/vertical-pod-autoscaler/CHANGELOG.md index b5d690bc..74e3b4b6 100644 --- a/charts/vertical-pod-autoscaler/CHANGELOG.md +++ b/charts/vertical-pod-autoscaler/CHANGELOG.md @@ -18,6 +18,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Security - In case of vulnerabilities. --> +## [UNRELEASED] + +## [v1.4.0] - 2023-10-31 + +### Changed + +- Updated the _Vertical Pod Autoscaler_ OCI image version to [v1.0.0](https://github.com/kubernetes/autoscaler/releases/tag/vertical-pod-autoscaler-1.0.0). + ## [v1.3.0] - 2023-06-29 ### Added diff --git a/charts/vertical-pod-autoscaler/Chart.yaml b/charts/vertical-pod-autoscaler/Chart.yaml index 8d071be7..b839caa2 100644 --- a/charts/vertical-pod-autoscaler/Chart.yaml +++ b/charts/vertical-pod-autoscaler/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: vertical-pod-autoscaler description: Helm chart for the Vertical Pod Autoscaler. type: application -version: 1.3.0 -appVersion: 0.14.0 +version: 1.4.0 +appVersion: 1.0.0 keywords: - kubernetes - autoscale @@ -29,7 +29,5 @@ annotations: displayName: VerticalPodAutoscaler description: Represents the configuration for a vertical pod autoscaler, which automatically manages pod resources based on historical and real time resource utilization. artifacthub.io/changes: | - - kind: added - description: "Added a default `labelSelector` for the release pods to `topologySpreadConstraints`, `affinity.podAffinity` & `affinity.podAntiAffinity`." - kind: changed - description: "Updated the _Vertical Pod Autoscaler_ OCI image version to [v0.14.0](https://github.com/kubernetes/autoscaler/releases/tag/vertical-pod-autoscaler-0.14.0)." + description: "Updated the _Vertical Pod Autoscaler_ OCI image version to [v1.0.0](https://github.com/kubernetes/autoscaler/releases/tag/vertical-pod-autoscaler-1.0.0)." diff --git a/charts/vertical-pod-autoscaler/crds/verticalpodautoscalers.autoscaling.k8s.io.yaml b/charts/vertical-pod-autoscaler/crds/verticalpodautoscalers.autoscaling.k8s.io.yaml index aa1ebb75..76b36cf9 100644 --- a/charts/vertical-pod-autoscaler/crds/verticalpodautoscalers.autoscaling.k8s.io.yaml +++ b/charts/vertical-pod-autoscaler/crds/verticalpodautoscalers.autoscaling.k8s.io.yaml @@ -172,7 +172,7 @@ spec: description: API version of the referent type: string kind: - description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"' + description: "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string name: description: "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names" @@ -188,6 +188,44 @@ spec: pods. If not specified, all fields in the `PodUpdatePolicy` are set to their default values. properties: + evictionRequirements: + description: + EvictionRequirements is a list of EvictionRequirements + that need to evaluate to true in order for a Pod to be evicted. + If more than one EvictionRequirement is specified, all of them + need to be fulfilled to allow eviction. + items: + description: + EvictionRequirement defines a single condition + which needs to be true in order to evict a Pod + properties: + changeRequirement: + description: + EvictionChangeRequirement refers to the relationship + between the new target recommendation for a Pod and its + current requests, what kind of change is necessary for + the Pod to be evicted + enum: + - TargetHigherThanRequests + - TargetLowerThanRequests + type: string + resource: + description: + Resources is a list of one or more resources + that the condition applies to. If more than one resource + is given, the EvictionRequirement is fulfilled if at least + one resource meets `changeRequirement`. + items: + description: + ResourceName is the name identifying various + resources in a ResourceList. + type: string + type: array + required: + - changeRequirement + - resource + type: object + type: array minReplicas: description: Minimal number of replicas which need to be alive @@ -335,7 +373,8 @@ spec: type: object served: true storage: true - subresources: {} + subresources: + status: {} - deprecated: true deprecationWarning: autoscaling.k8s.io/v1beta2 API is deprecated name: v1beta2 @@ -439,7 +478,7 @@ spec: description: API version of the referent type: string kind: - description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"' + description: "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" type: string name: description: "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names" @@ -594,3 +633,5 @@ spec: type: object served: true storage: false + subresources: + status: {} diff --git a/charts/vertical-pod-autoscaler/templates/rbac.yaml b/charts/vertical-pod-autoscaler/templates/rbac.yaml index a9c5de29..a8fc2bee 100644 --- a/charts/vertical-pod-autoscaler/templates/rbac.yaml +++ b/charts/vertical-pod-autoscaler/templates/rbac.yaml @@ -48,7 +48,6 @@ rules: - get - list - watch - - patch - apiGroups: - "autoscaling.k8s.io" resources: @@ -61,6 +60,21 @@ rules: --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole +metadata: + name: system:vpa-status-actor + labels: + {{- include "vertical-pod-autoscaler.labels" . | nindent 4 }} +rules: + - apiGroups: + - "autoscaling.k8s.io" + resources: + - verticalpodautoscalers/status + verbs: + - get + - patch +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole metadata: name: system:vpa-checkpoint-actor labels: @@ -265,6 +279,21 @@ subjects: --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding +metadata: + name: system:vpa-status-actor + labels: + {{- include "vertical-pod-autoscaler.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: system:vpa-status-actor +subjects: + - kind: ServiceAccount + name: {{ include "vertical-pod-autoscaler.recommender.serviceAccountName" . }} + namespace: {{ .Release.Namespace }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding metadata: name: system:vpa-checkpoint-actor labels: