- 7.8-developer
- Upgrade to 8.4.1-developer via 7.9.6-community
- I’ve successfully upgraded my lab version using this path but I couldnt include the LDAP config in the deployment due to networking restrictions in my K8S lab cluster
Hey there,
I have a question on env variables for LDAP when upgrading sonarqube ( deployed in kubernetes)
My current helm chart for sonarqube in my prod cluster uses a config map to override the startup script and inject the database and LDAP configuration.
For upgrade in my lab I deleted this configmap from the helm chart and edited the deployment to use updated environmental variables as per this link
https://docs.sonarqube.org/8.4/setup/environment-variables/
this worked fine when going via the 7.9.6-community version also
I wasnt able to test if those LDAP env variables will work when going via the 7.9.6-community version however as my lab cluster cant access my AD due to network restrictions
I cant find an equivalent link for the 7.9.6 version so thought I would check here.
One thing I did find that was unusual is that the link for 8.4.1 says that the Database variables for PostGres should start with SONAR_ . This wouldnt work for me though and it kept ignoring the variables and creating an embedded DB. I changed them to SONARQUBE_ and it worked fine
So my question is should the below work when upgrading to 7.9.6 and 8.4.1? or will I need to create a seperate helm for 7.9.6
env:
- name: SONAR_SECURITY_REALM
value: LDAP
- name: LDAP_BINDDN
valueFrom:
secretKeyRef:
name: sonarqube-ldaps-secrets
key: ldaps-username
- name: LDAP_BINDPASSWORD
valueFrom:
secretKeyRef:
name: sonarqube-ldaps-secrets
key: ldaps-password
- name: LDAP_URL
valueFrom:
secretKeyRef:
name: sonarqube-ldaps-secrets
key: ldaps-url
- name: LDAP_USER_BASEDN
valueFrom:
secretKeyRef:
name: sonarqube-ldaps-secrets
key: ldaps-user-basedn
- name: LDAP_USER_REQUEST
valueFrom:
secretKeyRef:
name: sonarqube-ldaps-secrets
key: ldaps-user-request
- name: SONARQUBE_JDBC_URL
valueFrom:
secretKeyRef:
name: sonarqube-pgsql-secrets
key: pgsql-host
- name: SONARQUBE_JDBC_PASSWORD
valueFrom:
secretKeyRef:
name: sonarqube-pgsql-secrets
key: pgsql-password
- name: SONARQUBE_JDBC_USERNAME
value: {{ .Values.SonarQube.PgUser }}
- name: LDAP_USER_REALNAMEATTRIBUTE
value: cn
- name: LDAP_USER_EMAILATTRIBUTE
value: email
- name: SONAR_CE_JAVAADDITIONALOPTS
value: "-Djava.security.egd=file:/dev/./urandom"