-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (34 loc) · 821 Bytes
/
Makefile
File metadata and controls
44 lines (34 loc) · 821 Bytes
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
KO_DOCKER_REPO ?= kingdonb
TAG ?= latest
all: tidy build
install: tidy build
go install github.com/kingdon-ci/kubeconfig-ca-fetch/cmd/kubeconfig-ca-fetch@latest
tidy:
go mod tidy -v
build:
go build ./cmd/kubeconfig-ca-fetch
kube.config: clean
./kubeconfig-ca-fetch > kube.config
mrproper:
rm -f kubeconfig-ca-fetch
rm -f kube.config
clean:
rm -f kube.config
# ko-build:
# ko build --local ./cmd/kubeconfig-ca-fetch
#
# ko-publish:
# KO_DOCKER_REPO=$(KO_DOCKER_REPO) ko build -B ./cmd/gh-app-secret -t $(TAG)
tldr: kube.config
( \
chmod 600 kube.config; \
export KUBECONFIG=`pwd`/kube.config ; \
kubectl get nodes; \
)
supertldr: kube.config
# !! Overwrites your ~/.kube/config (Ctrl+C to abort)
sleep 2
chmod 600 kube.config
mv kube.config $(HOME)/.kube/config
# kubelogin
kubectl get nodes