Skip to content
Snippets Groups Projects
Commit ea646305 authored by ludo8147's avatar ludo8147
Browse files

valid yaml

parent 55f0cce5
No related branches found
No related tags found
No related merge requests found
Pipeline #68873 failed
...@@ -120,13 +120,13 @@ create_secrets: ...@@ -120,13 +120,13 @@ create_secrets:
create_namespace_and_secret() { create_namespace_and_secret() {
local namespace=$1 local namespace=$1
local password_var=$2 local password_var=$2
echo "Ensuring namespace $namespace exists..." echo "Ensuring namespace $namespace exists..."
kubectl create namespace $namespace --dry-run=client -o yaml | kubectl apply -f - kubectl create namespace $namespace --dry-run=client -o yaml | kubectl apply -f -
envsubst < secret-$namespace.yaml | kubectl apply -f - envsubst < secret-$namespace.yaml | kubectl apply -f -
} }
create_namespace_and_secret "staging" "STAGING_DB_PASSWORD" create_namespace_and_secret "staging" "STAGING_DB_PASSWORD"
create_namespace_and_secret "production" "PRODUCTION_DB_PASSWORD" create_namespace_and_secret "production" "PRODUCTION_DB_PASSWORD"
...@@ -146,7 +146,7 @@ deploy_to_staging: ...@@ -146,7 +146,7 @@ deploy_to_staging:
- | - |
echo "Creating namespace if it doesn't exist..." echo "Creating namespace if it doesn't exist..."
kubectl create namespace $KUBE_NAMESPACE --dry-run=client -o yaml | kubectl apply -f - kubectl create namespace $KUBE_NAMESPACE --dry-run=client -o yaml | kubectl apply -f -
echo "Downloading Prometheus Operator bundle..." echo "Downloading Prometheus Operator bundle..."
curl -LO https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.55.1/bundle.yaml curl -LO https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.55.1/bundle.yaml
kubectl apply -f bundle.yaml --server-side kubectl apply -f bundle.yaml --server-side
...@@ -184,7 +184,7 @@ deploy_to_production: ...@@ -184,7 +184,7 @@ deploy_to_production:
- | - |
echo "Creating namespace if it doesn't exist..." echo "Creating namespace if it doesn't exist..."
kubectl create namespace $KUBE_NAMESPACE --dry-run=client -o yaml | kubectl apply -f - kubectl create namespace $KUBE_NAMESPACE --dry-run=client -o yaml | kubectl apply -f -
echo "Downloading Prometheus Operator bundle..." echo "Downloading Prometheus Operator bundle..."
curl -LO https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.55.1/bundle.yaml curl -LO https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.55.1/bundle.yaml
kubectl apply -f bundle.yaml --server-side kubectl apply -f bundle.yaml --server-side
......
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