From b7438eb7d27bacc574f197444ba77ca9f9efdb9a Mon Sep 17 00:00:00 2001 From: Lucas Pinheiro Date: Thu, 19 Dec 2024 11:24:15 -0300 Subject: [PATCH] fix(controller): configure agent log level (#30) --- charts/controller/Chart.yaml | 4 ++-- charts/controller/templates/deployment.yaml | 2 ++ charts/controller/values.yaml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/charts/controller/Chart.yaml b/charts/controller/Chart.yaml index 1d9ce62..849d2d2 100644 --- a/charts/controller/Chart.yaml +++ b/charts/controller/Chart.yaml @@ -15,10 +15,10 @@ type: application # 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: 0.2.1 +version: 0.2.2 # 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 # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "v0.2.0" +appVersion: "v0.2.1" diff --git a/charts/controller/templates/deployment.yaml b/charts/controller/templates/deployment.yaml index 67f5d48..1dcb932 100644 --- a/charts/controller/templates/deployment.yaml +++ b/charts/controller/templates/deployment.yaml @@ -37,6 +37,8 @@ spec: key: {{ include "controller.endpoint.secretKey" . }} - name: SEMAPHORE_AGENT_IMAGE value: "{{ .Values.agent.image }}:{{ .Values.agent.version }}" + - name: SEMAPHORE_AGENT_LOG_LEVEL + value: "{{ .Values.agent.logLevel }}" - name: SEMAPHORE_AGENT_STARTUP_PARAMETERS value: "{{ include "controller.agent.startupParameters" . }}" - name: KUBERNETES_SERVICE_ACCOUNT diff --git a/charts/controller/values.yaml b/charts/controller/values.yaml index b77c4b3..1117a14 100644 --- a/charts/controller/values.yaml +++ b/charts/controller/values.yaml @@ -18,6 +18,7 @@ imagePullPolicy: IfNotPresent agent: image: semaphoreci/agent version: v2.2.28 + logLevel: "info" # By default, the controller creates a pod spec which will be used # if no pod spec are specified in the agent types secret.