Creating the secret
Create a Secret object in the openshift-config namespace to store the client secret for your identity provider. The identity provider custom resource (CR) references this secret during configuration.
Procedure
-
Create a
Secretobject containing the client secret by running the following command:$ oc create secret generic <secret_name> --from-literal=clientSecret=<secret> -n openshift-config -
Optional: Apply the following YAML to create the secret:
apiVersion: v1 kind: Secret metadata: name: <secret_name> namespace: openshift-config type: Opaque data: clientSecret: <base64_encoded_client_secret> -
Create a
Secretobject from a file by running the following command:$ oc create secret generic <secret_name> --from-file=<path_to_file> -n openshift-config