From 30e3cb408cba0842e7d4d272f6ca2927749df8d0 Mon Sep 17 00:00:00 2001 From: drfaust92 Date: Tue, 10 Dec 2024 11:58:15 -0500 Subject: [PATCH] allow setting extra args Signed-off-by: drfaust92 --- charts/rollout-operator/Chart.yaml | 2 +- charts/rollout-operator/README.md | 3 ++- charts/rollout-operator/templates/deployment.yaml | 3 +++ charts/rollout-operator/values.yaml | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/rollout-operator/Chart.yaml b/charts/rollout-operator/Chart.yaml index 871542067e..5f5db6413e 100644 --- a/charts/rollout-operator/Chart.yaml +++ b/charts/rollout-operator/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: rollout-operator description: "Grafana rollout-operator" type: application -version: 0.22.0 +version: 0.23.0 appVersion: v0.22.0 home: https://github.com/grafana/rollout-operator kubeVersion: ^1.10.0-0 diff --git a/charts/rollout-operator/README.md b/charts/rollout-operator/README.md index 6c580b0f74..c047a7b1b5 100644 --- a/charts/rollout-operator/README.md +++ b/charts/rollout-operator/README.md @@ -4,7 +4,7 @@ Helm chart for deploying [Grafana rollout-operator](https://github.com/grafana/r # rollout-operator -![Version: 0.22.0](https://img.shields.io/badge/Version-0.22.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.22.0](https://img.shields.io/badge/AppVersion-v0.22.0-informational?style=flat-square) +![Version: 0.23.0](https://img.shields.io/badge/Version-0.23.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.22.0](https://img.shields.io/badge/AppVersion-v0.22.0-informational?style=flat-square) Grafana rollout-operator @@ -40,6 +40,7 @@ It is not a highly available application and runs as a single pod. | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | | +| extraArgs | list | `[]` | List of additional cli arguments to configure agent-operator (example: `--log.level`) | | fullnameOverride | string | `""` | | | global.commonLabels | object | `{}` | Common labels for all object directly managed by this chart. | | hostAliases | list | `[]` | hostAliases to add | diff --git a/charts/rollout-operator/templates/deployment.yaml b/charts/rollout-operator/templates/deployment.yaml index d35b866d0e..4e04f7648a 100644 --- a/charts/rollout-operator/templates/deployment.yaml +++ b/charts/rollout-operator/templates/deployment.yaml @@ -48,6 +48,9 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} args: - -kubernetes.namespace={{ .Release.Namespace }} + {{- range .Values.extraArgs }} + - {{ . }} + {{- end }} ports: - name: http-metrics containerPort: 8001 diff --git a/charts/rollout-operator/values.yaml b/charts/rollout-operator/values.yaml index 1711671f7a..72486175bd 100644 --- a/charts/rollout-operator/values.yaml +++ b/charts/rollout-operator/values.yaml @@ -51,6 +51,9 @@ securityContext: {} # runAsNonRoot: true # runAsUser: 1000 +# -- List of additional cli arguments to configure agent-operator (example: `--log.level`) +extraArgs: [] + resources: limits: # cpu: "1"