Files
homelab/cluster-config/components/oauth/overlays/glauth/kustomization.yaml

33 lines
778 B
YAML

apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
resources:
- ldap-external-secret.yaml
patches:
- patch: |-
- op: add
path: /spec/identityProviders/-
value:
name: Internal
mappingMethod: claim
type: LDAP
ldap:
attributes:
id:
- dn
name:
- cn
preferredUsername:
- uid
bindDN: "openshift,dc=ocplab,dc=com"
bindPassword:
name: ldap-secret
insecure: true
url: "ldap://infra-server/ou=users,dc=ocplab,dc=com?uid"
target:
group: config.openshift.io
kind: OAuth
name: cluster
version: v1