requires
jq
CLI
oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'
#!/bin/sh | |
#================== Load certificate from server =============================== | |
HOST_NAME="${HOST_NAME:-google.com}" | |
SERVER_NAME="${SERVER_NAME:-${HOST_NAME}}" | |
PORT="${PORT:-443}" | |
FORMAT="${FORMAT:-PEM}" # DER|PEM|NET see `man x509` | |
FILE_NAME="${FILE_NAME}" # Filename into /usr/local/share/ca-certificates |
requires
jq
CLI
oc get namespaces -o json | jq '[.items[] | select((.metadata.name | startswith("openshift") | not) and (.metadata.name | startswith("kube-") | not) and .metadata.name != "default" and (true)) | .metadata.name ]'
#!/bin/bash | |
# REPO_NAME=<repo>.git | |
# ORIGIN_URL=git@<host>:<project>/$REPO_NAME | |
# REPO1_URL=git@<host>:<project>/$REPO_NAME | |
rm -rf $REPO_NAME | |
git clone --bare $ORIGIN_URL | |
if [ "$?" != "0" ]; then | |
echo "ERROR: failed clone of $ORIGIN_URL" |