Skip to content

Commit

Permalink
Remove kubernetes version testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmiller609 committed Feb 25, 2020
1 parent bfd810c commit 55d4ce6
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 13 deletions.
9 changes: 1 addition & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,10 @@ workflows:
- build-artifact:
requires:
- lint
- 'airflow-on-k8s-1-14':
requires:
- build-artifact
- 'airflow-on-k8s-1-15':
requires:
- build-artifact
- approve-release:
type: approval
requires:
- 'airflow-on-k8s-1-14'
- 'airflow-on-k8s-1-15'
- build-artifact
filters:
branches:
only:
Expand Down
11 changes: 11 additions & 0 deletions bin/install-ci-tools
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,15 @@ else
chmod +x ./kubectl
fi

set -e

# Install mkcert
if [[ -f /tmp/bin/mkcert ]]; then
echo "mkcert is already installed."
else
cd /tmp/
curl -Lo /tmp/bin/mkcert https://github.com/FiloSottile/mkcert/releases/download/v1.4.1/mkcert-v1.4.1-${OS}-amd64
chmod +x /tmp/bin/mkcert
fi

cd $CURRENT_DIR
4 changes: 4 additions & 0 deletions bin/reset-local-dev
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ echo "Deploying Airflow..."

helm install \
-n airflow \
--set webserver.jwtSigningCertificateSecretName=astronomer-tls \
--set ingress.tlsSecretName=astronomer-tls \
--set data.metadataSecretName=astronomer-bootstrap \
--set data.resultBackendSecretName=astronomer-bootstrap \
$REPO_DIR
4 changes: 4 additions & 0 deletions bin/run-ci
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ set -x

helm install \
-n airflow \
--set webserver.jwtSigningCertificateSecretName=astronomer-tls \
--set ingress.tlsSecretName=astronomer-tls \
--set data.metadataSecretName=astronomer-bootstrap \
--set data.resultBackendSecretName=astronomer-bootstrap \
--wait \
$HELM_CHART_PATH

Expand Down
19 changes: 14 additions & 5 deletions bin/start-kind-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,24 @@ helm init --service-account tiller --upgrade --wait
echo "Tiller installed."

echo "Deploying postgresql..."
helm install -n postgresql --namespace astronomer --wait \
helm install -n postgresql --namespace default --wait \
--set image.tag=9.6.15-centos-7-r34 \
--set postgresqlPassword=notactuallysecret \
stable/postgresql > /dev/null 2>&1

export POSTGRES_PASSWORD=$(kubectl get secret --namespace astronomer postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode)
export DB_CONNECTION_STRING="postgres://postgres:${POSTGRES_PASSWORD}@postgresql.astronomer:5432"
export POSTGRES_PASSWORD=$(kubectl get secret --namespace default postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode)
export DB_CONNECTION_STRING="postgres://postgres:${POSTGRES_PASSWORD}@postgresql.default:5432"
kubectl create secret generic astronomer-bootstrap \
--from-literal connection=$DB_CONNECTION_STRING \
--namespace astronomer

--namespace default
echo "Postgresql deployed."

echo "Making certs"
mkcert -install
mkcert -cert-file /tmp/fullchain.pem -key-file /tmp/privkey.pem app.local.astronomer-development.com local.astronomer-development.com "*.local.astronomer-development.com"
cat "$(mkcert -CAROOT)/rootCA.pem" >> /tmp/fullchain.pem

echo "Installing TLS cert and private key"
kubectl create secret tls astronomer-tls \
--key /tmp/privkey.pem \
--cert /tmp/fullchain.pem

0 comments on commit 55d4ce6

Please sign in to comment.