Files
rustfs-manager-operator/Taskfile.yml
Nikolai Rodionov a5ce9ed3da
All checks were successful
ci/woodpecker/push/build-container Pipeline was successful
A lot of fixes
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
2026-03-17 21:35:26 +01:00

26 lines
646 B
YAML

# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: '3'
vars:
GREETING: Hello, world!
tasks:
default:
desc: Print a greeting message
cmds:
- echo "{{.GREETING}}"
silent: true
sync-crds:
desc: Sync CRD from the operator to the chart
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}}