Skip to content

Commit 094d82f

Browse files
fix(ci): use helm crd directory (#8)
When installing a ProxyClass CR alongside the operator, Helm will only install CRDs first if they are in the `crd` directory
1 parent 8776623 commit 094d82f

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/publish-chart.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,7 @@ jobs:
4949
- name: Package CRDs
5050
shell: bash
5151
run: |
52-
cat <<EOF > cmd/k8s-operator/deploy/chart/templates/crds.yaml
53-
{{- if .Values.installCRDs }}
54-
EOF
55-
for file in cmd/k8s-operator/deploy/crds/*.yaml; do
56-
echo "---" >> cmd/k8s-operator/deploy/chart/templates/crds.yaml
57-
cat "$file" >> cmd/k8s-operator/deploy/chart/templates/crds.yaml
58-
done
59-
cat <<EOF >> cmd/k8s-operator/deploy/chart/templates/crds.yaml
60-
{{- end }}
61-
EOF
52+
cp -r cmd/k8s-operator/deploy/crds cmd/k8s-operator/deploy/chart
6253
6354
- name: Package & Push Helm Charts
6455
shell: bash

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ client/web/build/assets
4343

4444
/gocross
4545
/dist
46+
47+
.DS_Store

0 commit comments

Comments
 (0)