Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(charts)!: Update Helm release vpa to 4.7.1 #2405

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 14, 2023

This PR contains the following updates:

Package Update Change
vpa (source) major 1.5.0 -> 4.7.1

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from dfroberg as a code owner December 14, 2023 21:02
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.0.0

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -280,7 +296,7 @@
       containers:
         - name: vpa
           securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -325,7 +341,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +355,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +366,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +436,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +461,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +482,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +517,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +561,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +569,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot force-pushed the renovate/vpa-4.x branch from 16ba8d8 to f57ef87 Compare December 18, 2023 21:51
@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.0.0 feat(charts)!: Update Helm release vpa to 4.0.1 Dec 18, 2023
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.0.1

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -280,7 +296,7 @@
       containers:
         - name: vpa
           securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +327,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +339,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +353,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +364,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +434,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +459,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +480,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +515,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +559,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +567,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.0.1 feat(charts)!: Update Helm release vpa to 4.1.0 Jan 16, 2024
@renovate renovate bot force-pushed the renovate/vpa-4.x branch from f57ef87 to bbc894a Compare January 16, 2024 17:12
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.1.0

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -280,7 +296,7 @@
       containers:
         - name: vpa
           securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +327,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +339,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +353,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +364,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +434,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +459,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +480,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +515,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +559,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +567,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot force-pushed the renovate/vpa-4.x branch from bbc894a to cd6b0dd Compare January 17, 2024 20:32
@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.1.0 feat(charts)!: Update Helm release vpa to 4.4.1 Jan 17, 2024
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.4.1

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -277,10 +293,17 @@
       securityContext:
         runAsNonRoot: true
         runAsUser: 65534
+        seccompProfile:
+          type: RuntimeDefault
       containers:
         - name: vpa
-          securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          securityContext:
+            allowPrivilegeEscalation: false
+            capabilities:
+              drop:
+                - ALL
+            readOnlyRootFilesystem: true
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +334,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +346,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +360,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +371,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +441,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +466,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +487,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +522,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +566,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +574,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.28
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.4.1 feat(charts)!: Update Helm release vpa to 4.4.2 Feb 20, 2024
@renovate renovate bot force-pushed the renovate/vpa-4.x branch from cd6b0dd to 8d6d759 Compare February 20, 2024 17:17
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.4.2

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -277,10 +293,17 @@
       securityContext:
         runAsNonRoot: true
         runAsUser: 65534
+        seccompProfile:
+          type: RuntimeDefault
       containers:
         - name: vpa
-          securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          securityContext:
+            allowPrivilegeEscalation: false
+            capabilities:
+              drop:
+                - ALL
+            readOnlyRootFilesystem: true
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +334,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +346,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +360,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +371,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +441,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +466,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +487,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +522,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +566,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +574,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.4.2 feat(charts)!: Update Helm release vpa to 4.4.3 Mar 13, 2024
@renovate renovate bot force-pushed the renovate/vpa-4.x branch from 8d6d759 to f2f63fa Compare March 13, 2024 01:51
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.4.3

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -277,10 +293,17 @@
       securityContext:
         runAsNonRoot: true
         runAsUser: 65534
+        seccompProfile:
+          type: RuntimeDefault
       containers:
         - name: vpa
-          securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          securityContext:
+            allowPrivilegeEscalation: false
+            capabilities:
+              drop:
+                - ALL
+            readOnlyRootFilesystem: true
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +334,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +346,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +360,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +371,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +441,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +466,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +487,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +522,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +566,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +574,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot force-pushed the renovate/vpa-4.x branch from f2f63fa to 946e2d8 Compare March 13, 2024 20:29
@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.4.3 feat(charts)!: Update Helm release vpa to 4.4.5 Mar 13, 2024
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.4.5

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -277,10 +293,17 @@
       securityContext:
         runAsNonRoot: true
         runAsUser: 65534
+        seccompProfile:
+          type: RuntimeDefault
       containers:
         - name: vpa
-          securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          securityContext:
+            allowPrivilegeEscalation: false
+            capabilities:
+              drop:
+                - ALL
+            readOnlyRootFilesystem: true
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +334,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +346,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +360,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +371,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +441,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +466,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +487,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +522,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +566,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +574,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot force-pushed the renovate/vpa-4.x branch from 946e2d8 to fdb2bb9 Compare April 17, 2024 16:28
@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.4.5 feat(charts)!: Update Helm release vpa to 4.4.6 Apr 17, 2024
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.4.6

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -277,10 +293,17 @@
       securityContext:
         runAsNonRoot: true
         runAsUser: 65534
+        seccompProfile:
+          type: RuntimeDefault
       containers:
         - name: vpa
-          securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          securityContext:
+            allowPrivilegeEscalation: false
+            capabilities:
+              drop:
+                - ALL
+            readOnlyRootFilesystem: true
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +334,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +346,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +360,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +371,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +441,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +466,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +487,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +522,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +566,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +574,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.29
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot force-pushed the renovate/vpa-4.x branch from fdb2bb9 to b69d163 Compare June 14, 2024 16:42
@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.4.6 feat(charts)!: Update Helm release vpa to 4.5.0 Jun 14, 2024
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.5.0

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -277,10 +293,17 @@
       securityContext:
         runAsNonRoot: true
         runAsUser: 65534
+        seccompProfile:
+          type: RuntimeDefault
       containers:
         - name: vpa
-          securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          securityContext:
+            allowPrivilegeEscalation: false
+            capabilities:
+              drop:
+                - ALL
+            readOnlyRootFilesystem: true
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +334,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +346,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +360,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +371,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +441,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +466,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +487,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.30
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +522,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.30
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +566,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +574,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.30
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot force-pushed the renovate/vpa-4.x branch from b69d163 to 1450ac7 Compare September 20, 2024 23:04
@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.5.0 feat(charts)!: Update Helm release vpa to 4.6.0 Sep 20, 2024
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.6.0

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -277,10 +293,17 @@
       securityContext:
         runAsNonRoot: true
         runAsUser: 65534
+        seccompProfile:
+          type: RuntimeDefault
       containers:
         - name: vpa
-          securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          securityContext:
+            allowPrivilegeEscalation: false
+            capabilities:
+              drop:
+                - ALL
+            readOnlyRootFilesystem: true
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +334,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +346,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +360,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +371,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +441,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +466,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +487,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.31
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +522,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.31
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +566,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +574,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.31
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot force-pushed the renovate/vpa-4.x branch from 1450ac7 to e3ee190 Compare October 30, 2024 14:21
@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.6.0 feat(charts)!: Update Helm release vpa to 4.7.0 Oct 30, 2024
Copy link

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.7.0

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -277,10 +293,17 @@
       securityContext:
         runAsNonRoot: true
         runAsUser: 65534
+        seccompProfile:
+          type: RuntimeDefault
       containers:
         - name: vpa
-          securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          securityContext:
+            allowPrivilegeEscalation: false
+            capabilities:
+              drop:
+                - ALL
+            readOnlyRootFilesystem: true
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +334,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +346,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +360,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +371,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +441,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +466,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +487,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.31
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +522,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.31
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +566,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +574,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.31
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

@renovate renovate bot changed the title feat(charts)!: Update Helm release vpa to 4.7.0 feat(charts)!: Update Helm release vpa to 4.7.1 Nov 6, 2024
@renovate renovate bot force-pushed the renovate/vpa-4.x branch from e3ee190 to 4cb8999 Compare November 6, 2024 01:58
Copy link

github-actions bot commented Nov 6, 2024

Path: cluster/core/resource-control/vpa/vpa.yaml
Version: 1.5.0 -> 4.7.1

@@ -10,18 +10,6 @@
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/component: recommender
 ---
-# Source: vpa/templates/updater-service-account.yaml
-apiVersion: v1
-kind: ServiceAccount
-automountServiceAccountToken: true
-metadata:
-  name: vpa-updater
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/component: updater
----
 # Source: vpa/templates/clusterroles.yaml
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
@@ -69,7 +57,6 @@
       - get
       - list
       - watch
-      - patch
   - apiGroups:
       - "autoscaling.k8s.io"
     resources:
@@ -84,6 +71,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRole
 metadata:
+  name: vpa-status-actor
+rules:
+  - apiGroups:
+      - "autoscaling.k8s.io"
+    resources:
+      - verticalpodautoscalers/status
+    verbs:
+      - get
+      - patch
+---
+# Source: vpa/templates/clusterroles.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
   name: vpa-checkpoint-actor
 rules:
   - apiGroups:
@@ -225,6 +226,20 @@
 apiVersion: rbac.authorization.k8s.io/v1
 kind: ClusterRoleBinding
 metadata:
+  name: vpa-status-actor
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-status-actor
+subjects:
+  - kind: ServiceAccount
+    name: vpa-recommender
+    namespace: default
+---
+# Source: vpa/templates/clusterrolebindings.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
   name: vpa-actor
 roleRef:
   apiGroup: rbac.authorization.k8s.io
@@ -261,6 +276,7 @@
     app.kubernetes.io/managed-by: Helm
 spec:
   replicas: 1
+  revisionHistoryLimit: 10
   selector:
     matchLabels:
       app.kubernetes.io/component: recommender
@@ -277,10 +293,17 @@
       securityContext:
         runAsNonRoot: true
         runAsUser: 65534
+        seccompProfile:
+          type: RuntimeDefault
       containers:
         - name: vpa
-          securityContext: {}
-          image: "k8s.gcr.io/autoscaling/vpa-recommender:0.11.0"
+          securityContext:
+            allowPrivilegeEscalation: false
+            capabilities:
+              drop:
+                - ALL
+            readOnlyRootFilesystem: true
+          image: registry.k8s.io/autoscaling/vpa-recommender:1.0.0
           imagePullPolicy: Always
           args:
             - --pod-recommendation-min-cpu-millicores=15
@@ -311,9 +334,7 @@
               containerPort: 8942
               protocol: TCP
           resources:
-            limits:
-              cpu: 200m
-              memory: 1000Mi
+            limits: {}
             requests:
               cpu: 50m
               memory: 500Mi
@@ -325,7 +346,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "10"
   name: vpa-test
 ---
 # Source: vpa/templates/tests/rbac.yaml
@@ -340,7 +360,6 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "20"
 rules:
   - apiGroups:
       - "metrics.k8s.io"
@@ -352,11 +371,59 @@
       - "apiextensions.k8s.io"
     resources:
       - customresourcedefinitions
+    resourceNames:
+      - verticalpodautoscalercheckpoints.autoscaling.k8s.io
+      - verticalpodautoscalers.autoscaling.k8s.io
     verbs:
       - get
       - list
       - watch
   - apiGroups:
+      - admissionregistration.k8s.io
+    resources:
+      - mutatingwebhookconfigurations
+    resourceNames:
+      - vpa-webhook-config
+    verbs:
+      - get
+      - list
+      - watch
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRoleBinding
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+roleRef:
+  apiGroup: rbac.authorization.k8s.io
+  kind: ClusterRole
+  name: vpa-test
+subjects:
+  - kind: ServiceAccount
+    name: vpa-test
+    namespace: default
+---
+# Source: vpa/templates/tests/rbac.yaml
+apiVersion: rbac.authorization.k8s.io/v1
+kind: Role
+metadata:
+  name: vpa-test
+  labels:
+    app.kubernetes.io/name: vpa
+    app.kubernetes.io/instance: vpa
+    app.kubernetes.io/managed-by: Helm
+  annotations:
+    "helm.sh/hook": "test"
+    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
+rules:
+  - apiGroups:
       - "autoscaling.k8s.io"
     resources:
       - verticalpodautoscalers
@@ -374,10 +441,22 @@
       - get
       - list
       - watch
+  - apiGroups:
+      - ""
+    resources:
+      - secrets
+      - services
+    resourceNames:
+      - vpa-webhook
+      - vpa-tls-secret
+    verbs:
+      - get
+      - list
+      - watch
 ---
 # Source: vpa/templates/tests/rbac.yaml
 apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
+kind: RoleBinding
 metadata:
   name: vpa-test
   labels:
@@ -387,21 +466,20 @@
   annotations:
     "helm.sh/hook": "test"
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation,hook-failed"
-    "helm.sh/hook-weight": "30"
 roleRef:
   apiGroup: rbac.authorization.k8s.io
-  kind: ClusterRole
+  kind: Role
   name: vpa-test
 subjects:
   - kind: ServiceAccount
     name: vpa-test
     namespace: default
 ---
-# Source: vpa/templates/tests/crd-available.yaml
+# Source: vpa/templates/tests/crds-available.yaml
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-checkpoint-crd-available
+  name: vpa-test-crds-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -409,41 +487,26 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
+    "helm.sh/hook-weight": "10"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.31
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get
         - crd
         - verticalpodautoscalercheckpoints.autoscaling.k8s.io
-  restartPolicy: Never
----
-# Source: vpa/templates/tests/crd-available.yaml
-apiVersion: v1
-kind: Pod
-metadata:
-  name: vpa-crd-available
-  labels:
-    app.kubernetes.io/name: vpa
-    app.kubernetes.io/instance: vpa
-    app.kubernetes.io/managed-by: Helm
-  annotations:
-    "helm.sh/hook": test
-    "helm.sh/hook-delete-policy": "hook-succeeded,before-hook-creation"
-    "helm.sh/hook-weight": "50"
-spec:
-  serviceAccountName: vpa-test
-  containers:
-    - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
-      command: ['kubectl']
-      args:
-        - get
-        - crd
         - verticalpodautoscalers.autoscaling.k8s.io
   restartPolicy: Never
 ---
@@ -459,20 +522,28 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "100"
+    "helm.sh/hook-weight": "20"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.31
+      imagePullPolicy: Always
       command: ['bash']
       args:
         - -c
         - |
           #!/bin/bash
 
-          set -e
-          set -x
+          set -ex
           cat <<EOF | kubectl -n default apply -f -
           apiVersion: autoscaling.k8s.io/v1
           kind: VerticalPodAutoscaler
@@ -495,7 +566,7 @@
 apiVersion: v1
 kind: Pod
 metadata:
-  name: vpa-metrics-api-available
+  name: vpa-test-metrics-api-available
   labels:
     app.kubernetes.io/name: vpa
     app.kubernetes.io/instance: vpa
@@ -503,12 +574,21 @@
   annotations:
     "helm.sh/hook": test
     "helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded"
-    "helm.sh/hook-weight": "70"
+    "helm.sh/hook-weight": "40"
 spec:
   serviceAccountName: vpa-test
   containers:
     - name: test
-      image: quay.io/reactiveops/ci-images:v11-alpine
+      securityContext:
+        allowPrivilegeEscalation: false
+        capabilities:
+          drop:
+            - ALL
+        readOnlyRootFilesystem: true
+        runAsNonRoot: true
+        runAsUser: 10324
+      image: bitnami/kubectl:1.31
+      imagePullPolicy: Always
       command: ['kubectl']
       args:
         - get

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants