-
Notifications
You must be signed in to change notification settings - Fork 311
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 752 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 752 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
tgz:
@find . -regex './[A-Z][a-z].*\.yaml' -type f -print0 \
| tar --null --files-from - -cf examples.tar
@tar -uf examples.tar kubectl-examples
gzip examples.tar
ver = $(shell git describe --tags)
sha = $(shell shasum -a 256 < examples.tar.gz|cut -d" " -f1)
fix-sha:
@sed -i 's/sha256: .*$$/sha256: $(sha)/' plugins/examples.yaml
fix-version:
@sed -i 's/v[0-9]\.[0-9]\.[0-9]/$(ver)/' plugins/examples.yaml
install: clean tgz fix-sha
kubectl krew install --manifest=plugins/examples.yaml --archive=examples.tar.gz
ci: tgz fix-sha fix-version
@echo github action ...
clean:
@rm -f examples.tar.gz
@kubectl krew uninstall examples || :
install_deprecations:
@kubectl krew install deprecations
check_deprecations:
@tests/api_check.sh