Skip to content

Commit 8bbea9e

Browse files
committed
full launch capabilities
1 parent 089d1ca commit 8bbea9e

File tree

7 files changed

+323
-26
lines changed

7 files changed

+323
-26
lines changed

config-store/update-coder.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/sh
2+
3+
# allow namespace creation to fail, assume it already exists
4+
kubectl create namespace INJECT_NAMESPACE || true
5+
6+
# set context to the namespace
7+
kubectl config set-context --current --namespace=INJECT_NAMESPACE
8+
9+
# add out issuer
10+
kubectl apply -f INJECT_SAVEDIR/issuer.yaml
11+
12+
# add/update the coder helm chart
13+
helm repo update
14+
helm repo add coder https://helm.coder.com
15+
16+
# install/upgrade coder (warning: this will ignore any manually-set values outside of INJECT_SAVEDIR/values.yaml)
17+
helm upgrade --namespace INJECT_NAMESPACE --install --atomic --wait coder coder/coder --values INJECT_SAVEDIR/values.yaml
18+
19+
# kind of lazy. sleep to make sure everything is ready for the CLI to continue
20+
sleep 10

shell-helpers/getAdminPassword.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
kubectl logs -n coder -l coder.deployment=cemanager -c cemanager --tail=-1 | grep -A1 -B2 Password
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#!/bin/sh
12
gcloud config list --format 'value(core.project)' 2>/dev/null

shell-helpers/googleCloudPrereqs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/sh
12
# Check prereqs. This can potentially search for specific version #s down the road.
23

34
if ! [ -x "$(command -v git)" ]; then

shell-helpers/googleCloudProjects.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#!/bin/sh
12
gcloud projects list --format json

shell-helpers/installCertManager.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
# Install cert-manager
4+
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v1.0.1/cert-manager.yaml >> /dev/null
5+
6+
# Verify it is installed
7+
sleep 10
8+
kubectl get pods -n cert-manager --field-selector=status.phase=Running --no-headers | wc -l

0 commit comments

Comments
 (0)