Files
rustfs-manager-operator/Taskfile.yml
Nikolai Rodionov 2f38181352
Some checks failed
ci/woodpecker/push/publish-helm-chart Pipeline was successful
ci/woodpecker/push/build-dev-container Pipeline failed
Update taskfile
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
2026-03-20 10:02:36 +01:00

21 lines
559 B
YAML

# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
vars:
GREETING: Hello, world!
tasks:
sync-crds:
desc: Sync CRD from the operator to the chart
silent: true
vars:
WORKDIR:
sh: mktemp -d
cmds:
- cd operator && cargo run -- --print-crd > {{.WORKDIR}}/crds.yaml
- cd {{.WORKDIR}} && yq -s '.metadata.name + ".yaml"' crds.yaml && rm crds.yaml
- rm -rf ./helm/rustfs-manager-operator/crd/*
- cp {{.WORKDIR}}/* ./helm/rustfs-manager-operator/crd/
- rm -rf {{.WORKDIR}}