mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2025-12-23 14:25:50 +00:00
Update prepare-supervisor-on-kind.sh final polish
This commit is contained in:
@@ -303,8 +303,7 @@ EOF
|
||||
fi
|
||||
|
||||
if [[ "$use_github_upstream" == "yes" ]]; then
|
||||
# Make an GitHubIdentityProvider. Needs to be configured with an actual GitHub App or GitHub OAuth App.
|
||||
# TODO: claims ought be configured
|
||||
# Make an GitHubIdentityProvider. Needs to be configured with an actual GitHub App or GitHub OAuth App.
|
||||
cat <<EOF | kubectl apply --namespace "$PINNIPED_TEST_SUPERVISOR_NAMESPACE" -f -
|
||||
apiVersion: idp.supervisor.pinniped.dev/v1alpha1
|
||||
kind: GitHubIdentityProvider
|
||||
@@ -318,8 +317,7 @@ spec:
|
||||
policy: AllGitHubUsers
|
||||
EOF
|
||||
|
||||
# Make a Secret for the above GitHubIdentityProvider to describe the GitHub client configured.
|
||||
# TODO: make clientID and clientSecret configurable, create & store values in our secret manager
|
||||
# Make a Secret for the above GitHubIdentityProvider to describe the GitHub client configured.
|
||||
cat <<EOF | kubectl apply --namespace "$PINNIPED_TEST_SUPERVISOR_NAMESPACE" -f -
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
@@ -332,7 +330,6 @@ stringData:
|
||||
EOF
|
||||
fi
|
||||
|
||||
|
||||
# Create a CA and TLS serving certificates for the Supervisor's FederationDomain.
|
||||
if [[ ! -f "$root_ca_crt_path" ]]; then
|
||||
step certificate create \
|
||||
@@ -469,8 +466,6 @@ if [[ "$use_github_upstream" == "yes" ]]; then
|
||||
EOF
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Apply the FederationDomain from the file created above.
|
||||
kubectl apply --namespace "$PINNIPED_TEST_SUPERVISOR_NAMESPACE" -f "$fd_file"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user