Add some makefiles to make deployment easier.
diff --git a/Makefile b/Makefile
index 8b0ab65..e88a737 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,12 @@
-$(HOME)/.gke-jenkins/oauth-credentials.yaml:
- tools/generate-oauth-credentials.sh
+help:
+ @echo Targets you can make:
+ @echo deploy - deploys the operator configs to kubernetes
+ @echo undeploy - deletes operator configs in kubernetes
-deploy-operator: $(HOME)/.gke-jenkins/oauth-credentials.yaml
- kubectl apply -f operator-configs/00-jenkins_v1alpha2_jenkins_crd.yaml
- kubectl apply -f operator-configs/01-all-in-one-v1alpha2.yaml
- kubectl apply -f operator-configs/ingress.yaml
- OAUTH_CREDENTIALS=`cat $(HOME)/.gke-jenkins/oauth-credentials.yaml`; \
- cat operator-configs/seed-jobs.yaml \
- | sed 's/@OAUTH_CREDENTIALS@/${OAUTH_CREDENTIALS}/' \
- | kubectl apply -f -
+deploy:
+ make -C operator-configs deploy
-.PHONY: deploy-operator
+undeploy:
+ make -C operator-configs undeploy
+
+.PHONY: deploy
diff --git a/operator-configs/Makefile b/operator-configs/Makefile
new file mode 100644
index 0000000..f5112d4
--- /dev/null
+++ b/operator-configs/Makefile
@@ -0,0 +1,13 @@
+deploy: $(HOME)/.gke-jenkins/oauth-credentials.yaml
+ @kubectl apply -f 00-jenkins_v1alpha2_jenkins_crd.yaml
+ @kubectl apply -f 01-all-in-one-v1alpha2.yaml
+ @cat configmap.yaml $(HOME)/.gke-jenkins/oauth-credentials.yaml \
+ | kubectl apply -f -
+ @kubectl apply -f mendel-linux.yaml
+ @kubectl apply -f ingress.yaml
+
+undeploy:
+ @kubectl delete -f .
+
+$(HOME)/.gke-jenkins/oauth-credentials.yaml:
+ ../tools/generate-oauth-credentials.sh