Fail to Initialize when CSI Volume Configured for Agent Template

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Attempts to update agent template via UI succeed and produce desired behavior. Desired changes allow for the following:

      • Mount of CSI volume in agents using secrets-store-csi-driver
      • Create kubernetes secret cluster using mounted content
      • Define container environment variables using created k8s secrets

      Although UI update succeeds, attempts to restart Jenkins with those values in place result in a failure of Jenkins to initialize:

      025-04-09 19:42:18.493+0000 [id=33]    WARNING i.j.p.casc.BaseConfigurator#createAttribute: Can't handle class org.csanchez.jenkins.plugins.kubernetes.PodTemplate#run: type is abstract but not Describable.
      2025-04-09 19:42:18.493+0000 [id=33]    WARNING i.j.p.casc.BaseConfigurator#createAttribute: Can't handle class org.csanchez.jenkins.plugins.kubernetes.PodTemplate#listener: type is abstract but not Describable.
      2025-04-09 19:42:18.497+0000 [id=33]    SEVERE  jenkins.InitReactorRunner$1#onTaskFailed: Failed ConfigurationAsCode.init
      Caused: java.lang.Error
      2025-04-09 19:42:18.499+0000 [id=24]    SEVERE  hudson.util.BootFailure#publish: Failed to initialize Jenkins 

      Removing these values from config map and re-deploy allow Jenkins to initialize properly.

            Assignee:
            Unassigned
            Reporter:
            Ken
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: