Skip to content
Snippets Groups Projects
Unverified Commit b293f4e4 authored by Varac's avatar Varac
Browse files

Check is namespace exists before creating

parent 5dca7bbc
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,8 @@ branch=${CI_COMMIT_REF_NAME:-} ...@@ -17,8 +17,8 @@ branch=${CI_COMMIT_REF_NAME:-}
echo "Tracking branch $branch for https://open.greenhost.net/openappstack/openappstack flux repo" echo "Tracking branch $branch for https://open.greenhost.net/openappstack/openappstack flux repo"
# Create oas and oas-apps namespaces # Create oas and oas-apps namespaces
kubectl create namespace oas kubectl get namespace oas 2>/dev/null || kubectl create namespace oas
kubectl create namespace oas-apps kubectl get namespace oas-apps 2>/dev/null || kubectl create namespace oas-apps
# Generate oauth and SSO secrets # Generate oauth and SSO secrets
python "$(dirname "$0")/generate_secrets.py" single-sign-on python "$(dirname "$0")/generate_secrets.py" single-sign-on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment