helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

when pod restart , config.xml will rolled back

Open ningjunwei2 opened this issue 2 years ago • 0 comments

Describe the bug

when pod restart ,config.xml rolled back

Version of Helm and Kubernetes

- Helm: 3.2.4
- Kubernetes: 1.23.3

Chart version

4.2.12

What happened?

i configed the Active Directory in jenkins ui, i sure i save in config.xml, and the /var/jenkins_home is mount pvc ,but when the pod restart , ldap configure will lost ,the config.xml is   rolled back.
the jobs and plugins is still exist。

i try  config the ldap in 
controller:
  JCasC:
    configScripts:
      ldap-settings: |
        jenkins:
          securityRealm:
            ldap:
              configurations:
                - server: ldap.acme.com
                  rootDN: dc=acme,dc=uk
                  managerPasswordSecret: ${LDAP_PASSWORD}
                  groupMembershipStrategy:
                    fromUserRecord:
                      attributeName: "memberOf"

what is the ${LDAP_PASSWORD} , it is a secrets.password? or just the ldap'password

What you expected to happen?

i can config ldap in

How to reproduce it

No response

Anything else we need to know?

No response

ningjunwei2 avatar Nov 23 '22 05:11 ningjunwei2