-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updated to current state of extension development
- liveness/readiness probes - helm-chart - updated dependencies - linting / auditing in ci
- Loading branch information
Showing
25 changed files
with
810 additions
and
164 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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/extension-prometheus | ||
extension-prometheus.iml | ||
/coverage.out |
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,61 @@ | ||
# ==================================================================================== # | ||
# HELPERS | ||
# ==================================================================================== # | ||
|
||
## help: print this help message | ||
.PHONY: help | ||
help: | ||
@echo 'Usage:' | ||
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' | ||
|
||
|
||
# ==================================================================================== # | ||
# QUALITY CONTROL | ||
# ==================================================================================== # | ||
|
||
## tidy: format code and tidy modfile | ||
.PHONY: tidy | ||
tidy: | ||
go fmt ./... | ||
go mod tidy -v | ||
|
||
## audit: run quality control checks | ||
.PHONY: audit | ||
audit: | ||
go vet ./... | ||
go run honnef.co/go/tools/cmd/staticcheck@latest -checks=all,-ST1000,-U1000,-ST1003 ./... | ||
go test -race -vet=off -coverprofile=coverage.out ./... | ||
go mod verify | ||
|
||
## charttesting: Run Helm chart unit tests | ||
.PHONY: charttesting | ||
charttesting: | ||
for dir in charts/steadybit-extension-*; do \ | ||
echo "Unit Testing $$dir"; \ | ||
helm unittest $$dir; \ | ||
done | ||
|
||
## chartlint: Lint charts | ||
.PHONY: chartlint | ||
chartlint: | ||
ct lint --config chartTesting.yaml | ||
|
||
# ==================================================================================== # | ||
# BUILD | ||
# ==================================================================================== # | ||
|
||
## build: build the extension | ||
.PHONY: build | ||
build: | ||
go mod verify | ||
go build -o=./extension | ||
|
||
## run: run the extension | ||
.PHONY: run | ||
run: tidy build | ||
./extension | ||
|
||
## container: build the container image | ||
.PHONY: container | ||
container: | ||
docker build -t extension-prometheus:latest . |
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,8 @@ | ||
# See https://github.com/helm/chart-testing#configuration | ||
remote: origin | ||
target-branch: main | ||
chart-dirs: | ||
- charts | ||
chart-repos: | ||
- steadybit=https://steadybit.github.io/helm-charts | ||
helm-extra-args: --timeout 600s |
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,24 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
tests/ |
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,6 @@ | ||
dependencies: | ||
- name: extensionlib | ||
repository: https://steadybit.github.io/helm-charts | ||
version: 1.1.0 | ||
digest: sha256:50f7816a312812729400e1ead5cfe1a89de8aabcc66ff2cc6eac262d0952912b | ||
generated: "2023-04-20T15:56:47.192588+02:00" |
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,25 @@ | ||
apiVersion: v2 | ||
name: steadybit-extension-prometheus | ||
description: Steadybit Prometheus extension Helm chart for Kubernetes. | ||
version: 1.4.3 | ||
appVersion: latest | ||
home: https://www.steadybit.com/ | ||
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png | ||
maintainers: | ||
- email: ben.blackmore@steadybit.com | ||
name: bripkens | ||
sources: | ||
- https://github.com/steadybit/extension-prometheus | ||
annotations: | ||
artifacthub.io/images: | | ||
- name: logo | ||
image: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png | ||
artifacthub.io/links: |- | ||
- name: Steadybit website | ||
url: https://www.steadybit.com | ||
- name: Steadybit reliability hub | ||
url: https://hub.steadybit.com | ||
dependencies: | ||
- name: extensionlib | ||
version: 1.1.0 | ||
repository: https://steadybit.github.io/helm-charts |
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 @@ | ||
For documentation, please refer to the repository's [main documentation](../../README.md). |
Binary file not shown.
Oops, something went wrong.