forked from openshift-metal3/dev-scripts
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround for openshift-metal3#260. Because life is too short for broken certs. Signed-off-by: Zane Bitter <zbitter@redhat.com>
- Loading branch information
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# https://github.com/openshift-metalkube/dev-scripts/issues/141#issuecomment-474331659 | ||
# https://github.com/openshift-metalkube/dev-scripts/issues/260 | ||
|
||
export KUBECONFIG=$(dirname $0)/ocp/auth/kubeconfig | ||
oc get csr -o name | xargs -n 1 oc adm certificate approve | ||
for cert in $(oc get csr -o name); do | ||
oc adm certificate approve "${cert}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters