-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Bundle yaml files generated by v1.8.0 and above fail to install on OpenShift 4.7 #5033
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
Comments
Use yq to make long strings in bundle manifests stay on a single line. As of operator-sdk v1.8.0, long strings are hard-wrapped, and this appears to cause issues when installing the operator. See operator-framework/operator-sdk#5033 for more details Signed-off-by: Angel Misevski <[email protected]>
@estroz Yep, the YAML files are still valid, and I didn't see any errors while building the bundle/index. Should I move the issue over to the |
@amisevsk I'd open this in operator-lifecycle-manager since that's where the bundle unpack code resides. |
@estroz I got around to poking at it more (thanks for the tip on
(minor typo in the error message). It's always a big file, but it turns out that wrapping the lines in our CRDs adds 212KB to the bundle, which just barely pushes it over the default limit 🙃. Closing this issue as I think I remember there already being issues around bundle size and error message reporting elsewhere. |
Use yq to make long strings in bundle manifests stay on a single line. As of operator-sdk v1.8.0, long strings are hard-wrapped, and this appears to cause issues when installing the operator. See operator-framework/operator-sdk#5033 for more details Signed-off-by: Angel Misevski <[email protected]>
Use yq to make long strings in bundle manifests stay on a single line. As of operator-sdk v1.8.0, long strings are hard-wrapped, and this appears to cause issues when installing the operator. See operator-framework/operator-sdk#5033 for more details Signed-off-by: Angel Misevski <[email protected]>
Bug Report
Apologies if this bug belongs in https://github.com/operator-framework/operator-lifecycle-manager instead, I wasn't sure.
What did you do?
operator-sdk generate bundle
after updating to operator-sdk v1.8.0 from v1.7.2.opm index add <args>
Release v1.8.0 appears to change how bundle files are formatted, wrapping long strings (e.g. in descriptions) instead of leaving them on one line. Checking for semantic differences (i.e. ignoring formatting) the files are identical.
What did you expect to see?
Operator installs normally from OpenShift UI
What did you see instead? Under which circumstances?
Operator's InstallPlan hangs on
UpgradePending
, with conditionsEnvironment
Operator type:
/language go
Kubernetes cluster type:
OpenShift 4.7
$ operator-sdk version
operator-sdk v1.8.0 and v1.9.0
Does not reproduce in v1.7.2
$ go version
(if language is Go)go version go1.16.4 linux/amd64
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.4", GitCommit:"d360454c9bcd1634cf4cc52d1867af5491dc9c5f", GitTreeState:"clean", BuildDate:"2020-11-11T13:17:17Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.0+bd9e442", GitCommit:"bd9e4421804c212e6ac7ee074050096f08dda543", GitTreeState:"clean", BuildDate:"2021-02-11T23:05:38Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Possible Solution
If I force long strings back onto one line using
in the bundle/manifests dir, the install succeeds as normal.
Additional context
By no means a minimal reproducer, but if you register the following catalogsource and install the DevWorkspace Operator via UI, the issue should reproduce:
The text was updated successfully, but these errors were encountered: