From 213135c4ec2f4c0a1866dff2cdaecf2fdb99961a 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 cca369dbff..48558b9c3f 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.21.0 +version: 0.22.0 appVersion: v0.21.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 372e793841..176b87df95 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.21.0](https://img.shields.io/badge/Version-0.21.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.21.0](https://img.shields.io/badge/AppVersion-v0.21.0-informational?style=flat-square) +![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.21.0](https://img.shields.io/badge/AppVersion-v0.21.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"