planetscale / planetscale/vitess-operator
make generate-operator-yaml is broken: wrong kustomize module path and kustomize v2.0.3 no longer compiles
@mattlord is already working on this.
Since Sep 19, 2026.
- Dominant language
- Go
- Stars
- 372
- Forks
- 102
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 15
Description
make generate-operator-yaml has not worked for a long time, for two independent reasons:
-
Wrong module path in the Makefile. The target runs
go run github.com/kubernetes-sigs/kustomize build ./deploy, but the module in go.mod issigs.k8s.io/kustomize, sogo runfails immediately:no required module provides package github.com/kubernetes-sigs/kustomize; to add it: go get github.com/kubernetes-sigs/kustomizeThat line has been unchanged since 44f9afd (October 2020).
-
The pinned kustomize no longer compiles. With the path corrected,
sigs.k8s.io/kustomize v2.0.3+incompatible(from 2019) fails to build against the currentk8s.io/kube-openapionmain:# sigs.k8s.io/kustomize/pkg/transformers/config sigs.k8s.io/kustomize@v2.0.3+incompatible/pkg/transformers/config/factorycrd.go:71:25: cannot use api.Schema.SchemaProps.Properties (variable of type map[string]"k8s.io/kube-openapi/pkg/validation/spec".Schema) as myProperties value in argument to looksLikeAk8sType
As a result the only way to rebuild build/_output/operator.yaml (and the bundle in test/endtoend/operator/operator-latest.yaml that the end-to-end tests and quickstart docs use) is with an out-of-tree kustomize.
Proposed fix
- Replace the
sigs.k8s.io/kustomizev2 tool dependency intools/tools.goand go.mod with the current CLI module,sigs.k8s.io/kustomize/kustomize/v5, following the existinggo runtool convention used for controller-gen and gen-crd-api-reference-docs. - Point the Makefile target at that module and create
build/_outputif needed. - Verify the output matches
test/endtoend/operator/operator-latest.yamlapart from the PR image override.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.