Skip to content

Commit 6f973d7

Browse files
authored
Merge pull request #365 from guilhem/kustomize
feat: add kustomize in deployment
2 parents 0ae7446 + bc492b0 commit 6f973d7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

deploy/kustomization.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
resources:
5+
- csi-blob-controller.yaml
6+
- csi-blob-driver.yaml
7+
- csi-blob-node.yaml
8+
- rbac-csi-blob-controller.yaml
9+
- rbac-csi-blob-node.yaml

hack/verify-yamllint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LOG=/tmp/yamllint.log
2222
helmPath=charts/latest/blob-csi-driver/templates
2323

2424
echo "checking yaml files num ..."
25-
deployDirNum=`ls deploy/*.yaml | wc -l`
25+
deployDirNum=`find ./deploy/ -maxdepth 1 -type f -name '*.yaml' ! -name 'kustomization.yaml' | wc -l`
2626
helmDirNum=`ls $helmPath/*.yaml | grep -v serviceaccount | wc -l`
2727
if [[ "${deployDirNum}" != "${helmDirNum}" ]]; then
2828
echo "yaml file num($deployDirNum) under deploy/ not equal to num($helmDirNum) under $helmPath"

0 commit comments

Comments
 (0)