Skip to content

Commit c38474a

Browse files
fix(chart): generate CRDs, duplicate them (#15)
Duplicate CRDs in the `templates` directory, and default toggle them off in values. Since we also use the `crds` directory to allow installing Custom Resources on initial install, this allows for CRD upgrades with a --set toggle
1 parent e30d459 commit c38474a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/publish-chart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
shell: bash
5656
if: ${{ always() && format('refs/heads/{0}', github.event.repository.default_branch) == github.ref }}
5757
run: |
58+
go run cmd/k8s-operator/generate/main.go helmcrd
5859
helm package cmd/k8s-operator/deploy/chart --dependency-update --version ${{ env.HELM_VERSION }} --app-version ${{ env.HELM_VERSION }}
5960
pkg=$(ls tailscale-operator-*.tgz)
6061
helm push "${pkg}" oci://ghcr.io/${{ github.repository }}/chart

cmd/k8s-operator/deploy/chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ oauth: {}
1212
# of chart installation. We do not use Helm's CRD installation mechanism as that
1313
# does not allow for upgrading CRDs.
1414
# https://helm.sh/docs/chart_best_practices/custom_resource_definitions/
15-
installCRDs: true
15+
installCRDs: false
1616

1717
operatorConfig:
1818
# ACL tag that operator will be tagged with. Operator must be made owner of

0 commit comments

Comments
 (0)