Skip to content

Commit

Permalink
Modified ldap.md for issue #937 (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
AniketNS authored Feb 4, 2024
1 parent 2ba5334 commit 332eabe
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions website/content/en/docs/Getting Started/v0.7.x/ldap.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,31 +77,30 @@ data:
userIdStrategy: "caseInsensitive"
```

> Note the use of `${LDAP_MANAGER_PASSWORD}` above. You can reference
> Kubernetes secrets in your JCasC ConfigMaps by adding the following to your
> Jenkins object:
>
> ```yaml
> kind: Jenkins
> spec:
> configurationAsCode:
> configurations:
> - name: jenkins-casc
> secret:
> # This here
> name: jenkins-casc-secrets
> ```
>
> ```yaml
> apiVersion: v1
> kind: Secret
> metadata:
> name: jenkins-cred-conf-secrets
> stringData:
> LDAP_MANAGER_PASSWORD: <password-for-manager-created-in-ldap>
> ```
>
> Schema reference: [v1alpha2.ConfigurationAsCode](./schema/#github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.ConfigurationAsCode)
>Note the use of `${LDAP_MANAGER_PASSWORD}` above. You can reference
>Kubernetes secrets in your JCasC ConfigMaps by adding the following to your

Jenkins object:

```yaml
kind: Jenkins
spec:
configurationAsCode:
configurations:
- name: jenkins-casc
secret:
# This here
name: jenkins-casc-secrets
```
```yaml
apiVersion: v1
kind: Secret
metadata:
name: jenkins-cred-conf-secrets
stringData:
LDAP_MANAGER_PASSWORD: <password-for-manager-created-in-ldap>
```
Schema reference: [v1alpha2.ConfigurationAsCode](./schema/#github.com/jenkinsci/kubernetes-operator/pkg/apis/jenkins/v1alpha2.ConfigurationAsCode)

Finally you must configure the Jenkins operator to use the manager's
credentials from the AD.
Expand Down

0 comments on commit 332eabe

Please sign in to comment.