-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
operator-sdk generate kustomize manifests -q
generates invalid config/manifests/kustomization.yaml
#3979
Comments
So this default is wrong? Missing operator-sdk/internal/cmd/operator-sdk/generate/kustomize/manifests.go Lines 154 to 159 in adcef86
|
Actually looks like the |
@mdbooth the rm -f $(command -v kustomize)
make kustomize bundle |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Bug Report
Trying to work out why my generated CSV was incomplete after executing
make bundle
:From the above,
failed to read Resources: Load from path ../default failed
appears to be because the generated config/manifests/kustomization.yaml is invalid. The contents of this file are:This file is generated by
operator-sdk generate kustomize manifests -q
. Guessing resources should be bases there, but there's a secondary issue. I fixed the file manually to contain:but then I get:
AFAICT this is a limitation of kustomize: (kubernetes-sigs/kustomize#642)
To work round it I commented out scorecard:
And now it works and
make bundle
generates a complete CSV.Environment
Operator type:
/language go
Kubernetes cluster type:
OpenShift
$ operator-sdk version
operator-sdk version: "v1.0.1", commit: "4169b318b578156ed56530f373d328276d040a1b", kubernetes version: "v1.18.2", go version: "go1.13.15 linux/amd64", GOOS: "linux", GOARCH: "amd64"
$ go version
(if language is Go)go version go1.13.15 linux/amd64
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.8-beta.0", GitCommit:"6c143d35bb11d74970e7bc0b6c45b6bfdffc0bd4", GitTreeState:"archive", BuildDate:"2020-01-02T00:00:00Z", GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.3+b0068a8", GitCommit:"b0068a8", GitTreeState:"clean", BuildDate:"2020-09-11T20:03:06Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
The text was updated successfully, but these errors were encountered: