Skip to content

Commit

Permalink
Remove taskfile commands with tools that generates templates
Browse files Browse the repository at this point in the history
The source of truth is now redpanda-operator repostiory where gotohelm,
genpartial and genschema cli are located. Those tools will generate inside
redpanda-operator repository the following charts:
* connectors
* console
* operator
* redpanda

Reference
redpanda-data/redpanda-operator#339
redpanda-data/redpanda-operator#354
redpanda-data/redpanda-operator#365
  • Loading branch information
RafalKorepta committed Jan 8, 2025
1 parent 4e4b494 commit e1e4a77
Show file tree
Hide file tree
Showing 33 changed files with 21 additions and 4,593 deletions.
40 changes: 0 additions & 40 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,52 +68,12 @@ tasks:
cmds:
# Generate chart README.md's
- nix develop -c helm-docs -c ./charts/
- task: chart:generate:console
- task: chart:generate:operator
- task: chart:generate:redpanda
- task: chart:generate:connectors
# Ensure go deps are up to date
- go mod tidy
- go work sync
# Ensure flake.nix has been formatted.
- nix fmt

chart:generate:console:
desc: "Generate files for the console Helm chart"
cmds:
# Generate a "partial" version of the Values struct.
- go run ./cmd/genpartial -out charts/console/values_partial.gen.go -struct Values ./charts/console
# Generate helm templates from Go definitions
- go run ./cmd/gotohelm -write ./charts/console/templates ./charts/console

chart:generate:operator:
desc: "Generate files for the operator Helm chart"
cmds:
# Generate a "partial" version of the Values struct.
- go run ./cmd/genpartial -out charts/operator/values_partial.gen.go -struct Values ./charts/operator
# Generate the values JSON schema from the Values struct
- go run ./cmd/genschema operator > charts/operator/values.schema.json
# Generate helm templates from Go definitions
- go run ./cmd/gotohelm -write ./charts/operator/templates ./charts/operator

chart:generate:redpanda:
desc: "Generate files for the redpanda Helm chart"
cmds:
# Generate a "partial" version of the Values struct.
- go run ./cmd/genpartial -out charts/redpanda/values_partial.gen.go -struct Values ./charts/redpanda
# Generate the values JSON schema from the Values struct
- go run ./cmd/genschema redpanda > charts/redpanda/values.schema.json
# Generate helm templates from Go definitions
- go run ./cmd/gotohelm -write ./charts/redpanda/templates ./charts/redpanda ./charts/...

chart:generate:connectors:
desc: "Generate files for the connectors Helm chart"
cmds:
# Generate a "partial" version of the Values struct.
- go run ./cmd/genpartial -out charts/connectors/values_partial.gen.go -struct Values ./charts/connectors
# Generate helm templates from Go definitions
- go run ./cmd/gotohelm -write ./charts/connectors/templates ./charts/connectors

helm:add-repo:jetstack:
aliases:
- add-jetstack-repo
Expand Down
Loading

0 comments on commit e1e4a77

Please sign in to comment.