Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove gotohelm in favor of operator gotohelm #1621

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chrisseto
Copy link
Contributor

Prior to this commit gotohelm was duplicated in the redpanda-operator repo.

This commit removes pkg/gotohelm and instead depends on pkg/gotohelm from the redpanda-operator repository. Due to the use of replace directives in the go.mod of redpanda-operator/gotohelm, it's not currently possible to go install it. As a temporary workaround, the main.go for gotohelm has been preserved in this repository.

As gotohelm now requires go >= 1.23, this commit also syncs the flake.lock for this repository with the redpanda-operator.

@chrisseto
Copy link
Contributor Author

Sorry for the size of this PR. The bulk of it is changes to the gotohelm import path and minor modifications to the charts due to updates in gotohelm.

I will call out that there are 2 changes I don't completely understand.

  • There are changes to values.schema.json that imply and updated corev1.Pod struct.
  • Similarly, there are some arcane looking changes to the operators test cases. I suspect these are also due to changes to the corev1.Pod struct.

@chrisseto
Copy link
Contributor Author

Note: I did try to setup genpartial/genschema/gotohelm via go install and nix. Only gotohelm is in a "healthy" state at the moment which makes it impossible to install the other binaries in any way. This is still a net reduction of code in the repository, so I'm going to count that as a win for now.

@chrisseto
Copy link
Contributor Author

Ah, I missed this in the diff the first time around. k8s.io/* has been bumped to v0.30.3 to match the operator. So the above changes are indeed expected.

@chrisseto chrisseto force-pushed the chris/p/use-operator-gotohelm branch from 3bfb076 to 85bac7a Compare December 16, 2024 20:42
Prior to this commit `gotohelm` was duplicated in the `redpanda-operator` repo.

This commit removes `pkg/gotohelm` and instead depends on `pkg/gotohelm` from
the redpanda-operator repository. Due to the use of `replace` directives in the
go.mod of `redpanda-operator/gotohelm`, it's not currently possible to `go
install` it. As a temporary workaround, the `main.go` for gotohelm has been
preserved in this repository.

As gotohelm now requires go >= 1.23, this commit also syncs the `flake.lock`
for this repository with the redpanda-operator.
@chrisseto chrisseto force-pushed the chris/p/use-operator-gotohelm branch from 85bac7a to 10b49fe Compare December 16, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants