Skip to content

Commit 3bd8cb5

Browse files
committed
Add lint-helm target and CI
Signed-off-by: Todd Short <[email protected]> Assisted-by: Gemini (research) Assisted-by: Claude Code (analysis)
1 parent d21d00e commit 3bd8cb5

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

.github/workflows/sanity.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,15 @@ jobs:
3030

3131
- name: Run golangci linting checks
3232
run: make lint
33+
34+
lint-helm:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v5
38+
39+
- uses: actions/setup-go@v5
40+
with:
41+
go-version-file: "go.mod"
42+
43+
- name: Run helm linting checks
44+
run: make lint-helm

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ help-extended: #HELP Display extended help.
123123
lint: lint-custom $(GOLANGCI_LINT) #HELP Run golangci linter.
124124
$(GOLANGCI_LINT) run --build-tags $(GO_BUILD_TAGS) $(GOLANGCI_LINT_ARGS)
125125

126+
lint-helm: $(HELM) #HELP Run helm linter
127+
helm lint helm/olmv1
128+
helm lint helm/prometheus
129+
126130
.PHONY: custom-linter-build
127131
custom-linter-build: #EXHELP Build custom linter
128132
go build -tags $(GO_BUILD_TAGS) -o ./bin/custom-linter ./hack/ci/custom-linters/cmd

helm/olmv1/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: olmv1
33
description: A Helm chart for OLMv1
4-
4+
icon: https://raw.githubusercontent.com/operator-framework/operator-framework.io/refs/heads/master/static/tile70x70.png
55
# A chart can be either an 'application' or a 'library' chart.
66
#
77
# Application charts are a collection of templates that can be packaged into versioned archives

helm/prometheus/Chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
apiVersion: v2
22
name: prometheus
33
description: A Helm chart of Prometheus resources for OLMv1
4+
icon: https://raw.githubusercontent.com/operator-framework/operator-framework.io/refs/heads/master/static/tile70x70.png
45

56
# A chart can be either an 'application' or a 'library' chart.
67
#

0 commit comments

Comments
 (0)