Packages
k8s
1.0.0
2.8.0
2.7.0
2.6.2
2.6.1
2.6.0
2.5.0
2.4.2
2.4.1
2.4.0
2.3.0
2.2.0
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-rc.6
2.0.0-rc.5
2.0.0-rc.4
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
2.0.0-rc.0
1.2.1
1.2.0
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
1.0.0-rc1
0.5.2
0.5.1
0.5.0
0.5.0-rc.2
0.5.0-rc.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.13
0.2.12
0.2.11
0.2.10
0.2.9
0.2.8
0.2.7
retired
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.3
Kubernetes API Client for Elixir
Current section
Files
Jump to
Current section
Files
Makefile
K3D_KUBECONFIG_PATH?=./integration.yaml
.PHONY: help
help: ## Show this help
help:
@grep -E '^[\/a-zA-Z0-9._%-]+:.*?## .*$$' Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: clean
clean: ## Remove build/doc dirs
rm -rf {_build,cover,deps,doc}
rm -f integration.yaml
.PHONY: all
all: ## Run format, credo, dialyzer, and test all supported k8s versions
all:
mix deps.get
mix coveralls.html
mix format
mix credo --strict
mix dialyzer
mix docs
mix inch
CLUSTER_NAME=k8s-ex
integration.yaml: ## Create a k3d cluster
- k3d cluster delete ${CLUSTER_NAME}
k3d cluster create ${CLUSTER_NAME} --servers 1 --wait
k3d kubeconfig get ${CLUSTER_NAME} > ${K3D_KUBECONFIG_PATH}
sleep 5
.PHONY: test.integration
test.integration: integration.yaml
test.integration: ## Run integration tests using k3d `make cluster`
TEST_KUBECONFIG=${K3D_KUBECONFIG_PATH} mix test --only integration
.PHONY: test
test: integration.yaml
test: ## Run all tests
TEST_KUBECONFIG=${K3D_KUBECONFIG_PATH} mix test --include integration
.PHONY: test.watch
test.watch: integration.yaml
test.watch: ## Run all tests with mix.watch
TEST_KUBECONFIG=${K3D_KUBECONFIG_PATH} mix test.watch --include integration
.PHONY: k3d.delete
k3d.delete: ## Delete k3d cluster
- k3d cluster delete ${CLUSTER_NAME}
.PHONY: k3d.create
k3d.create: ## Created k3d cluster
k3d cluster create ${CLUSTER_NAME} --servers 1 --wait