-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ccfc22
commit 9a51d51
Showing
12 changed files
with
127 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,12 @@ jobs: | |
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
install_only: true | ||
- name: Install Minikube | ||
run: | | ||
wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | ||
sudo cp minikube-linux-amd64 /usr/local/bin/minikube | ||
sudo chmod +x /usr/local/bin/minikube | ||
- uses: azure/setup-helm@v3 | ||
- name: Run e2e | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,10 @@ $(LOCALBIN): | |
|
||
|
||
ginkgo: | ||
test -s $(LOCALBIN)/ginkgo || GOBIN=$(LOCALBIN) go install github.com/onsi/ginkgo/v2/ginkgo@latest | ||
test -s $(LOCALBIN)/ginkgo || GOBIN=$(LOCALBIN) go install github.com/onsi/ginkgo/v2/[email protected] | ||
|
||
crane: | ||
test -s $(LOCALBIN)/crane || GOBIN=$(LOCALBIN) go install github.com/google/go-containerregistry/cmd/crane@latest | ||
|
||
.PHONY: fmt | ||
fmt: ## Run go fmt against code. | ||
|
@@ -27,8 +30,14 @@ helm-docs: | |
$(LOCALBIN)/helm-docs --template-files "${GITROOT}/chart/README.md.gotmpl" | ||
cat "${GITROOT}/Header.md" "${GITROOT}/chart/README.md" > "${GITROOT}/README.md" | ||
|
||
new_kind: | ||
./scripts/create_kind.sh | ||
minikube_new: | ||
./scripts/create-minikube.sh | ||
|
||
minikube_scale_up: | ||
minikube node add | ||
|
||
minikube_scale_down: | ||
minikube node delete m02 | ||
|
||
init: fmt vet | ||
|
||
|
@@ -41,7 +50,10 @@ deploy_e2e_debug: init | |
deploy_local: init | ||
./scripts/deploy.sh | ||
|
||
deploy_e2e: init ginkgo new_kind | ||
deploy_e2e: init ginkgo crane minikube_new | ||
ENV='e2e' ./scripts/deploy.sh | ||
|
||
deploy_e2e_dirty: init | ||
ENV='e2e' ./scripts/deploy.sh | ||
|
||
release-docker: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
minikube delete || true | ||
c=$(docker ps -q) && [[ $c ]] && docker kill $c | ||
docker network prune -f | ||
minikube start \ | ||
--kubernetes-version="${K8S_VERSION}" \ | ||
--insecure-registry "10.0.0.0/24" | ||
minikube addons enable registry | ||
|
||
# Add Service Monitor CRD | ||
kubectl apply --server-side -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.65.1/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters