Skip to content

Commit 0c9d71a

Browse files
committed
Prepare crds folder with kustomize
1 parent 110c781 commit 0c9d71a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/publish-chart.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,16 @@ jobs:
4141
fi
4242
echo "version=$CHART_VERSION" >> $GITHUB_OUTPUT
4343
44-
- name: Move crds folder out of templates
45-
run: mv dist/chart/templates/crd dist/chart/crds
44+
- name: Install Kustomize
45+
run: |
46+
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
47+
mv kustomize /usr/local/bin
48+
49+
- name: Prepare CRDs folder
50+
run: |
51+
mkdir -p dist/chart/crds
52+
kustomize build config/default | yq ea 'select(.kind == "CustomResourceDefinition")' > dist/chart/crds/crds.yaml
53+
rm -rf dist/chart/templates/crd
4654
4755
- name: Package Helm chart
4856
run: |

0 commit comments

Comments
 (0)