From af1391c4a9d43e2570b89e63744f272a1f744f5c Mon Sep 17 00:00:00 2001 From: lvlcn-t <75443136+lvlcn-t@users.noreply.github.com> Date: Tue, 7 May 2024 01:11:46 +0200 Subject: [PATCH] chore: use go toolchain helm-docs installation --- .github/workflows/pre-commit.yml | 2 +- .pre-commit-config.yaml | 6 ++++++ chart/README.md | 2 -- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index dd939fad..29def31a 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -20,7 +20,7 @@ jobs: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.0 go install mvdan.cc/gofumpt@latest go install github.com/matryer/moq@latest - go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.13.1 + go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest - name: Run pre-commit uses: pre-commit/action@v3.0.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3f8b67ce..75c7d5fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,7 @@ repos: types: [go] pass_filenames: false always_run: true + - repo: https://github.com/tekwizely/pre-commit-golang rev: v1.0.0-rc.1 hooks: @@ -20,6 +21,11 @@ repos: args: [-l, -w] - id: golangci-lint-repo-mod args: [--config, .golangci.yaml, --, --fix] + + # You need to install helm-docs manually via the go toolchain: + # go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest + # If you have installed it in a different way, you should use the binary of the + # go toolchain instead, because behavior may differ. - repo: https://github.com/norwoodj/helm-docs rev: v1.13.1 hooks: diff --git a/chart/README.md b/chart/README.md index 8c9e74ec..8fa6a72a 100644 --- a/chart/README.md +++ b/chart/README.md @@ -68,5 +68,3 @@ A Helm chart to install Sparrow | startupProbe | object | `{"enabled":false,"failureThreshold":10,"initialDelaySeconds":10,"path":"/","periodSeconds":5,"successThreshold":1,"timeoutSeconds":1}` | Specifies the configuration for a startup probe to check if the sparrow application is started. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ | | tolerations | list | `[]` | | ----------------------------------------------- -Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)