From e9d43c1b569cae265ec834a61327797ce36aae77 Mon Sep 17 00:00:00 2001 From: shirbur <102898670+shirbur@users.noreply.github.com> Date: Mon, 5 Aug 2024 17:32:17 +0300 Subject: [PATCH] [src] Allow Network client run in specific namespace CON-20999 (#151) --- charts/ocean-vpa/Chart.yaml | 2 +- charts/ocean-vpa/README.md | 3 ++- charts/ocean-vpa/templates/vpa-updater-deployment.yaml | 3 +++ charts/ocean-vpa/values.yaml | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/ocean-vpa/Chart.yaml b/charts/ocean-vpa/Chart.yaml index 6c90f19..3702ef3 100644 --- a/charts/ocean-vpa/Chart.yaml +++ b/charts/ocean-vpa/Chart.yaml @@ -17,7 +17,7 @@ maintainers: # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.0 +version: 1.0.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/ocean-vpa/README.md b/charts/ocean-vpa/README.md index 920fd4b..6a4dd6e 100644 --- a/charts/ocean-vpa/README.md +++ b/charts/ocean-vpa/README.md @@ -1,6 +1,6 @@ # ocean-vpa -![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) +![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) A Helm chart for Kubernetes. @@ -62,6 +62,7 @@ helm install my-release spot/ocean-vpa | 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 | | updater.affinity | object | `{}` | | | updater.evictionTolerance | float | `0.25` | | +| updater.extraArgs.min-replicas | int | `1` | | | updater.image.pullPolicy | string | `"Always"` | The pull policy for the updater image. Recommend not changing this | | updater.image.repository | string | `"registry.k8s.io/autoscaling/vpa-updater"` | The location of the updater image | | updater.image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion | diff --git a/charts/ocean-vpa/templates/vpa-updater-deployment.yaml b/charts/ocean-vpa/templates/vpa-updater-deployment.yaml index 4970863..ff96250 100644 --- a/charts/ocean-vpa/templates/vpa-updater-deployment.yaml +++ b/charts/ocean-vpa/templates/vpa-updater-deployment.yaml @@ -43,6 +43,9 @@ spec: imagePullPolicy: {{ .Values.updater.image.pullPolicy }} args: - --eviction-tolerance={{ .Values.updater.evictionTolerance }} + {{- range $key, $value := .Values.updater.extraArgs }} + - --{{ $key }}={{ $value }} + {{- end }} env: - name: NAMESPACE valueFrom: diff --git a/charts/ocean-vpa/values.yaml b/charts/ocean-vpa/values.yaml index 4c60a2c..0c2311d 100644 --- a/charts/ocean-vpa/values.yaml +++ b/charts/ocean-vpa/values.yaml @@ -48,6 +48,8 @@ updater: nodeSelector: {} tolerations: [] affinity: {} + extraArgs: + min-replicas: 1 admissionController: # admissionController.generateCertificate -- If true and admissionController is enabled, a pre-install hook will run to create the certificate for the webhook