charts/tools/gate/jarvis/650-temporary-setup.sh
Tin Lam 99ff9ae29e chore(aio): cleans up start up script
This removes the script's redundant project creation curl calls as
this is created by the project code here [0]. This also moved the
wedged temporary script last to allow projects creation to occur
prior to the dev pipeline run.

[0] 1169477e65/charts/jarvis-project/templates/Job-project.yaml (L53-L72)

Signed-off-by: Tin Lam <tin@irrational.io>
Change-Id: Ie6ca362cf7d05dd07881e8540c556f7a3ad534e7
2021-02-11 15:45:25 -06:00

11 lines
797 B
Bash
Executable File

#!/bin/bash
set -ex
#TODO(staceyF) Put this into appropriate jarvis-system tasks
kubectl create ns development-pipeline || true
kubectl create secret generic harbor-ca --from-file=harbor-ca=/etc/jarvis/certs/ca/ca.pem -n development-pipeline || true
kubectl create secret generic kubeconfig-secret --from-file=kubeconfig=$HOME/.kube/config -n development-pipeline || true
#NOTE Will not be required once Harbor is backed by LDAP
kubectl create secret generic harbor-basic-auth --from-literal=username='admin' --from-literal=password='Harbor12345' -n development-pipeline || true
kubectl create secret docker-registry harbor-docker-auth --docker-username=admin --docker-password=Harbor12345 --docker-email=example@gmail.com --docker-server=harbor-core.jarvis.local -n development-pipeline || true