Configuring "deprecated: warn" in the operator helm install values file to prevent "agentProtocols no longer configurable" error

Steffaanus
Wed, 26 Mar 2025 16:15:28 +0000
Ask a question

I’m new to installing Jenkinsa and try to install it on our k8s cluster by using the jenkins-operator installed with helm (via ArgoCD). After installing, the jenkins pods gives the following error:

WARNING jenkins.model.Jenkins#setAgentProtocols
java.lang.IllegalStateException: Jenkins.agentProtocols no longer configurable

The documentation told me to add the following lines to the configuration:

configuration-as-code:
  deprecated: warn

I cannot figure out where i should place these lines in de values.yaml for helm install of the operator.

I tried to place it in the values files like this:

  configuration:
    configurationAsCode:
       - configMapName: jenkins-casc
         content:
           configuration-as-code:
             deprecated: "warn"

But that does not work. Where should i place these lines?

5 posts - 2 participants