Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml config is wiped out when pod is restarted #897

Open
acanlord opened this issue Jul 24, 2023 · 1 comment
Open

xml config is wiped out when pod is restarted #897

acanlord opened this issue Jul 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@acanlord
Copy link

Describe the bug

After I configured persistent mounts and verified data was being written to the mount, I configured LDAP in the jenkins UI and hit save. Upon Deleting the pod my saved configs have been reverted. I have tried to configure using helm chart suggested values as well but neither seem to work.

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"

Version of Helm and Kubernetes

- Helm: 3.5.3
- Kubernetes: 1.23.17

Chart version

jenkins-4.3.30

What happened?

LDAP settings were reverted after restarting the POD.

Manually configure:
1. Manually configure LDAP from the jenkins UI. 
2. Hit save in the Jenkins UI.
3. Delete the POD. All saved values will be reverted.

HELM Chart values are not configured in the UI as expected.

Configure via Helm chart:
1. Configured LDAP using helm chart values is not reflected in the UI.
...

What you expected to happen?

I would expect to see the LDAP values which I either configured manually or via helm chart to be configured in the UI.

How to reproduce it

helm install jenkins jenkinsci/jenkins -n jenkins -f values.yaml

Anything else we need to know?

No response

@acanlord acanlord added the bug Something isn't working label Jul 24, 2023
@acanlord
Copy link
Author

I can see the values I passed when I run the following command:

helm -n jenkins get values jenkins

The values in ldap-settings look correct however they are not reflected in the UI. Is there something im missing?

controller:
JCasC:
configScripts:
ldap-settings:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant