# 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}}