Skip to content

Commit

Permalink
Add helm lint check in Github workflow (#1384)
Browse files Browse the repository at this point in the history
* Add helm lint check in Github workflow

Signed-off-by: TrafalgarZZZ <[email protected]>

* Fix jindofs helm lint

Signed-off-by: TrafalgarZZZ <[email protected]>
  • Loading branch information
TrafalgarZZZ authored Jan 18, 2022
1 parent 854c802 commit 47b8b4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@ jobs:
curl -L https://github.com/kubernetes-sigs/kubebuilder/releases/download/v2.3.1/kubebuilder_2.3.1_${os}_${arch}.tar.gz | tar -xz -C /tmp/
sudo mv /tmp/kubebuilder_2.3.1_${os}_${arch} /usr/local/kubebuilder
export PATH=$PATH:/usr/local/kubebuilder/bin
curl -L https://get.helm.sh/helm-v3.7.2-${os}-${arch}.tar.gz | tar -xz -C /tmp
chmod u+x /tmp/${os}-${arch}/helm && sudo mv /tmp/${os}-${arch}/helm /usr/local/bin/helm
- name: CI script
run: |
make manifests
make build
golangci-lint run --timeout=10m ./...
find ./charts | grep Chart.yaml | xargs dirname | xargs helm lint
test -z "$(go fmt ./... 2>/dev/null | tee /dev/stderr)" || (echo "please format Go code with 'gofmt'")
make test
bash <(curl -s https://codecov.io/bash)
5 changes: 5 additions & 0 deletions charts/jindofs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ properties:
logDir: /mnt/disk1/bigboot/log

master:
ports:
rpc: 8101
dnsServer: ""
labels: {}
replicaCount: 1
properties:
Expand All @@ -39,6 +42,8 @@ master:
namespace.backend.type: rocksdb

worker:
ports:
rpc: 6101
labels: {}
nodeSelector: {}
replicaCount: 0
Expand Down

0 comments on commit 47b8b4c

Please sign in to comment.