-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (42 loc) · 1.34 KB
/
makefile
File metadata and controls
44 lines (42 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SHELL = /bin/bash
.PHONY verify:
verify:
test -f /root/.trainingrc
grep "source /root/.trainingrc" /root/.bashrc
yq --version
uuidgen --version
which htpasswd
kubectl version --client
gcloud version
terraform version
kubectx
helm version
helmfile version
test -n "$(GCE_PROJECT)"
test -n "$(TRAINEE_NAME)"
test -n "$(TRAINEE_EMAIL)"
test -n "$(DOMAIN)"
test -n "$(DNS_ZONE_NAME)"
# TODO kubens => failing due no cluster yet
test -n "$(K8S_VERSION)"
test -n "$(TF_VERSION)"
test -e /training/.secrets/gce
test -e /training/.secrets/gce.pub
# TODO ensure that is the right ssh key - ssh-add -l | grep "$(ssh-keygen -lf .secrets/gce)"
test -e /training/.secrets/gcloud-service-account.json
# TODO test -v $(GOOGLE_CREDENTIALS)
# TODO verify gcp sa permissions
test -n "$(K1_VERSION)"
kubeone version
etcdctl version
# TODO check etcd env vars
test -e /root/kubeone_${K1_VERSION}_linux_amd64/
test -n "$(KUBECONFIG)"
test -n "$(PLATFORM_DOMAIN)"
test -n "$(PROVIDER_DOMAIN)"
# kubectl create-workspace --version TODO https://github.com/kcp-dev/krew-index/issues/4
echo "Training Environment successfully verified"
KUBECONFIGS := $(shell ls /training/.secrets/kubeconfig-*.yaml | tr '\n' ':' | head -c -1)
.PHONY squash-kubeconfigs:
squash-kubeconfigs:
KUBECONFIG=$(KUBECONFIGS); kubectl config view --raw > /training/.secrets/kubeconfig.yaml