Update goldilocks

This commit is contained in:
2024-02-06 23:46:03 +08:00
parent 42516f1f7d
commit cf45a3f547
148 changed files with 352 additions and 141 deletions
+1 -1
View File
@@ -16,4 +16,4 @@ sources:
- https://github.com/FairwindsOps/charts/tree/master/stable/vpa
- https://github.com/kubernetes/autoscaler/tree/master/vertical-pod-autoscaler
type: application
version: 2.5.1
version: 3.0.2
+34 -1
View File
@@ -25,6 +25,32 @@ The admissionController is the only one that poses a stability consideration bec
For more details, please see the values below, and the vertical pod autosclaer documentation.
## *BREAKING* Upgrading from <= v2.5.1 to 3.0.0
### ClusterRole rules
Previously, ClusterRoles were created by default from templates and could not be extended with custom rules. Since `3.0.0` version it is possible.
You can define it as follows:
```yaml
rbac:
extraRules:
vpaActor:
- apiGroups:
- batch
resources:
- '*'
verbs:
- get
vpaCheckpointActor: []
vpaEvictioner: []
vpaMetricsReader: []
vpaTargetReader: []
vpaStatusReader: []
```
## *BREAKING* Upgrading from <= v1.7.x to 2.0.0
### Certificate generation
@@ -107,7 +133,14 @@ recommender:
| nameOverride | string | `""` | A template override for the name |
| fullnameOverride | string | `""` | A template override for the fullname |
| podLabels | object | `{}` | Labels to add to all pods |
| rbac.create | bool | `true` | If true, then rbac resources (clusterroles and clusterrolebindings) will be created for the selected components. Temporary rbac resources will still be created, to ensure a functioning installation process |
| rbac.create | bool | `true` | If true, then rbac resources (ClusterRoles and ClusterRoleBindings) will be created for the selected components. Temporary rbac resources will still be created, to ensure a functioning installation process |
| rbac.extraRules | object | `{"vpaActor":[],"vpaCheckpointActor":[],"vpaEvictioner":[],"vpaMetricsReader":[],"vpaStatusReader":[],"vpaTargetReader":[]}` | Extra rbac rules for ClusterRoles |
| rbac.extraRules.vpaActor | list | `[]` | Extra rbac rules for the vpa-actor ClusterRole |
| rbac.extraRules.vpaCheckpointActor | list | `[]` | Extra rbac rules for the vpa-checkpoint-actor ClusterRole |
| rbac.extraRules.vpaEvictioner | list | `[]` | Extra rbac rules for the vpa-evictioner ClusterRole |
| rbac.extraRules.vpaMetricsReader | list | `[]` | Extra rbac rules for the vpa-metrics-reader ClusterRole |
| rbac.extraRules.vpaTargetReader | list | `[]` | Extra rbac rules for the vpa-target-reader ClusterRole |
| rbac.extraRules.vpaStatusReader | list | `[]` | Extra rbac rules for the vpa-status-reader ClusterRole |
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created for each component |
| serviceAccount.annotations | object | `{}` | Annotations to add to the service accounts for each component |
| serviceAccount.name | string | `""` | The base name of the service account to use (appended with the component). If not set and create is true, a name is generated using the fullname template and appended for each component |
+26
View File
@@ -25,6 +25,32 @@ The admissionController is the only one that poses a stability consideration bec
For more details, please see the values below, and the vertical pod autosclaer documentation.
## *BREAKING* Upgrading from <= v2.5.1 to 3.0.0
### ClusterRole rules
Previously, ClusterRoles were created by default from templates and could not be extended with custom rules. Since `3.0.0` version it is possible.
You can define it as follows:
```yaml
rbac:
extraRules:
vpaActor:
- apiGroups:
- batch
resources:
- '*'
verbs:
- get
vpaCheckpointActor: []
vpaEvictioner: []
vpaMetricsReader: []
vpaTargetReader: []
vpaStatusReader: []
```
## *BREAKING* Upgrading from <= v1.7.x to 2.0.0
### Certificate generation
+56
View File
@@ -1,3 +1,59 @@
rbac:
extraRules:
vpaActor:
- apiGroups:
- batch
resources:
- '*'
verbs:
- get
- list
- watch
vpaCheckpointActor:
- apiGroups:
- batch
resources:
- '*'
verbs:
- get
- list
- watch
vpaEvictioner:
- apiGroups:
- batch
resources:
- '*'
verbs:
- get
- list
- watch
vpaMetricsReader:
- apiGroups:
- batch
resources:
- '*'
verbs:
- get
- list
- watch
vpaTargetReader:
- apiGroups:
- batch
resources:
- '*'
verbs:
- get
- list
- watch
vpaStatusReader:
- apiGroups:
- batch
resources:
- '*'
verbs:
- get
- list
- watch
recommender:
enabled: true
annotations:
@@ -12,6 +12,9 @@ rules:
verbs:
- get
- list
{{- if .Values.rbac.extraRules.vpaMetricsReader -}}
{{ toYaml .Values.rbac.extraRules.vpaMetricsReader | nindent 2 }}
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
@@ -55,6 +58,9 @@ rules:
- list
- watch
- patch
{{- if .Values.rbac.extraRules.vpaActor -}}
{{ toYaml .Values.rbac.extraRules.vpaActor | nindent 2 }}
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
@@ -90,6 +96,9 @@ rules:
verbs:
- get
- list
{{- if .Values.rbac.extraRules.vpaCheckpointActor -}}
{{ toYaml .Values.rbac.extraRules.vpaCheckpointActor | nindent 2 }}
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
@@ -109,6 +118,9 @@ rules:
- pods/eviction
verbs:
- create
{{- if .Values.rbac.extraRules.vpaEvictioner -}}
{{ toYaml .Values.rbac.extraRules.vpaEvictioner | nindent 2 }}
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
@@ -150,6 +162,9 @@ rules:
- get
- list
- watch
{{- if .Values.rbac.extraRules.vpaTargetReader -}}
{{ toYaml .Values.rbac.extraRules.vpaTargetReader | nindent 2 }}
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
@@ -164,4 +179,7 @@ rules:
- get
- list
- watch
{{- if .Values.rbac.extraRules.vpaStatusReader -}}
{{ toYaml .Values.rbac.extraRules.vpaStatusReader | nindent 2 }}
{{- end }}
{{- end }}
@@ -6,6 +6,7 @@ metadata:
annotations:
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-110"
labels:
app.kubernetes.io/component: admission-certgen
{{- include "vpa.labels" . | nindent 4 }}
@@ -6,6 +6,7 @@ metadata:
annotations:
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-110"
labels:
app.kubernetes.io/component: admission-certgen
{{- include "vpa.labels" . | nindent 4 }}
@@ -6,6 +6,7 @@ metadata:
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-110"
labels:
app.kubernetes.io/component: certgen
{{- include "vpa.labels" . | nindent 4 }}
@@ -6,6 +6,7 @@ metadata:
annotations:
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-110"
labels:
app.kubernetes.io/component: admission-certgen
{{- include "vpa.labels" . | nindent 4 }}
@@ -6,6 +6,7 @@ metadata:
annotations:
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-110"
labels:
app.kubernetes.io/component: admission-certgen
{{- include "vpa.labels" . | nindent 4 }}
@@ -6,6 +6,7 @@ metadata:
annotations:
"helm.sh/hook": pre-install,pre-upgrade,post-install,post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
"helm.sh/hook-weight": "-110"
labels:
app.kubernetes.io/component: admission-certgen
{{- include "vpa.labels" . | nindent 4 }}
@@ -21,8 +21,8 @@ webhooks:
failurePolicy: {{ .Values.admissionController.mutatingWebhookConfiguration.failurePolicy }}
matchPolicy: Equivalent
name: vpa.k8s.io
namespaceSelector: {{ .Values.admissionController.mutatingWebhookConfiguration.namespaceSelector | toYaml }}
objectSelector: {{ .Values.admissionController.mutatingWebhookConfiguration.objectSelector | toYaml }}
namespaceSelector: {{ .Values.admissionController.mutatingWebhookConfiguration.namespaceSelector | toYaml | nindent 4 }}
objectSelector: {{ .Values.admissionController.mutatingWebhookConfiguration.objectSelector | toYaml | nindent 4 }}
reinvocationPolicy: Never
rules:
- apiGroups:
+15 -1
View File
@@ -13,9 +13,23 @@ fullnameOverride: ""
# podLabels -- Labels to add to all pods
podLabels: {}
rbac:
# rbac.create -- If true, then rbac resources (clusterroles and clusterrolebindings) will be created for the selected components.
# rbac.create -- If true, then rbac resources (ClusterRoles and ClusterRoleBindings) will be created for the selected components.
# Temporary rbac resources will still be created, to ensure a functioning installation process
create: true
# rbac.extraRules -- Extra rbac rules for ClusterRoles
extraRules:
# rbac.extraRules.vpaActor -- Extra rbac rules for the vpa-actor ClusterRole
vpaActor: []
# rbac.extraRules.vpaCheckpointActor -- Extra rbac rules for the vpa-checkpoint-actor ClusterRole
vpaCheckpointActor: []
# rbac.extraRules.vpaEvictioner -- Extra rbac rules for the vpa-evictioner ClusterRole
vpaEvictioner: []
# rbac.extraRules.vpaMetricsReader -- Extra rbac rules for the vpa-metrics-reader ClusterRole
vpaMetricsReader: []
# rbac.extraRules.vpaTargetReader -- Extra rbac rules for the vpa-target-reader ClusterRole
vpaTargetReader: []
# rbac.extraRules.vpaStatusReader -- Extra rbac rules for the vpa-status-reader ClusterRole
vpaStatusReader: []
serviceAccount:
# serviceAccount.create -- Specifies whether a service account should be created for each component