Skip to content

Commit fe23805

Browse files
committed
fix: move to template
Signed-off-by: Anthony Rabbito <arabbito@coreweave.com>
1 parent dacbc09 commit fe23805

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/publish-chart.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,16 @@ jobs:
4343
- name: Package CRDs
4444
shell: bash
4545
run: |
46-
cp -r cmd/k8s-operator/deploy/crds cmd/k8s-operator/deploy/chart
46+
cat <<EOF > cmd/k8s-operator/deploy/chart/templates/crds.yaml
47+
{{- if .Values.installCRDs }}
48+
EOF
49+
for file in cmd/k8s-operator/deploy/crds/*.yaml; do
50+
echo "---" >> cmd/k8s-operator/deploy/chart/templates/crds.yaml
51+
cat "$file" >> cmd/k8s-operator/deploy/chart/templates/crds.yaml
52+
done
53+
cat <<EOF >> cmd/k8s-operator/deploy/chart/templates/crds.yaml
54+
{{- end }}
55+
EOF
4756
4857
- name: Package & Push Helm Charts
4958
shell: bash

0 commit comments

Comments
 (0)