Skip to content

Instantly share code, notes, and snippets.

@bechampion
Created October 8, 2019 07:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bechampion/3c48b4447acf4e746e84bcff31ab7f50 to your computer and use it in GitHub Desktop.
Save bechampion/3c48b4447acf4e746e84bcff31ab7f50 to your computer and use it in GitHub Desktop.
apiVersion: jenkins.io/v1alpha2
kind: Jenkins
metadata:
name: custom
spec:
groovyScripts:
configurations:
- name: jenkins-operator-user-configuration-sporting
configurationAsCode:
configurations:
- name: jenkins-operator-user-configuration-ldap
master:
plugins:
- name: "ldap"
version: "1.20"
- name: "blueocean"
version: "1.19.0"
...
and the configmap looks like
....
apiVersion: v1
data:
ldap.yaml: |
jenkins:
securityRealm:
ldap:
configurations:
- groupMembershipStrategy:
fromUserRecord:
attributeName: "memberOf"
inhibitInferRootDN: false
rootDN: "dc=acme,dc=org"
server: "ldaps://ldap.acme.org:1636"
kind: ConfigMap
metadata:
creationTimestamp: "2019-10-03T12:44:02Z"
labels:
app: jenkins-operator
jenkins-cr: custom
watch: "true"
name: jenkins-operator-user-configuration-ldap
namespace: default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment