Kubernetes agent fails if ref: is specified in config.yaml
Installed and registered a Kubernetes agent:
$ helm list --all-namespaces
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
agent-name gitlab-agent-name 1 2022-12-09 11:01:04.728837 +0100 CET deployed gitlab-agent-1.8.0 v15.6.0
added custom agent configuration to the project according to the documentation:
gitops:
charts:
- release_name: superset
source:
project:
id: group/subgroup/project
ref:
branch: main
path: helm/superset
namespace: default
max_history: 1
values:
- inline:
GUNICORN_TIMEOUT: 300
Added Chart.yaml
and values.yaml
from the Apache Superset official Helm chart in the directory PROJECT_ROOT/helm/superset
. The agent logs the following warning and does not deploy the chart:
{"level":"warn","time":"2022-12-09T10:56:52.685Z","msg":"GetConfiguration.Recv failed","error":"rpc error: code = FailedPrecondition desc = Config: failed to parse agent configuration: protojson.Unmarshal: proto: (line 1:152): unknown field \"ref\"","agent_id":42669}
Only if the section ref:
is commented or deleted, then the configuration is parsed correctly and the Helm chart is installed in the Kubernetes cluster.