Skip to content

Add custom field to Gitlab Agent config file

Hello.

I would like to use Gitlab Agent Config file like master-data for all configurations regarding to Kubernetes integration. In my case I use custom program to configure Kubernetes environment for future deploys.

Can we add some field to GitLab Agent config file (https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/blob/master/pkg/agentcfg/agentcfg.pb.go?ref_type=heads#L1694), which wiil not be used by GitLab agent for works? (My program reads GitLab Agent config file and uses data for Kubernetes environment creation)

(If I add custom field now I wiil catch an error here, bc protojson found new field, which not exist in ConfigurationFile struct)

Proposal

Field name to use: custom_data

Edited by Viktor Nagy (GitLab)