-
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
run bundle - ConfigMap is invalid: []: Too long: must have at most 1048576 bytes #6323
Comments
Usually the data stored in configMap cannot cannot exceed 1 MiB (ref: https://kubernetes.io/docs/concepts/configuration/configmap/#motivation). However, there have been issues created in SDK regarding the same previously. @everettraven @rashmigottipati are you aware of this and/or a possible workaround? |
Yeah, this should have been resolved by the partitioning logic that I implemented in #6182 however it looks like there may be a bug based on this error message. It looks like it is correctly trying to create a partition but at some point the partition seems to have gotten to large to fit into the etcd limits. |
I'm wondering if the problem is either here: operator-sdk/internal/olm/operator/registry/fbcindex/fbc_registry_pod.go Lines 384 to 393 in d828db2
or here: operator-sdk/internal/olm/operator/registry/fbcindex/fbc_registry_pod.go Lines 400 to 405 in d828db2
That being said, I'm thinking the issue is more so that there is a single item that may be too large to fit into a ConfigMap on it's own as the partitioning logic is meant to split up the FBC YAML (which consists of multiple YAML definitions separated by I would definitely be curious to see what exactly is trying to be placed into this ConfigMap making it too large to see if there is anything we can fix, but if it is indeed the scenario I mentioned above I think there would be a need for a much deeper discussion as to how we could go about fixing this problem. |
You can test it from this project: https://github.com/webcenter-fr/elasticsearch-operator |
Just wanted to follow up here and mention that I did take a look at this and the problem seems to be that a single That being said, I'm looking into what options may be available for us to take to remedy this. |
I hit the same issue today, is there any workaround or quick fix ? |
Unfortunately I haven't been able to come up with a workaround or a quick fix for this. I apologize for the inconvenience! |
I am hitting this issue only when more rbacs&crds are in the bundle(around 15 to 25 crds). Otherwise, it works without any problem. |
@everettraven I ran into this issue with a partner as well, I have a bundle that we could use to test this logic. |
Circling back around to this, the idea of using some form of compression has been brought up and is something we could do to help. Another idea is to add a new flag that allows users of Unfortunately, I don't think we will be able to entirely get rid of this problem but I think a combination of compression and the option to ignore/remove the I'm also not sure when we will be able to get the fix out for this - I'll take the milestone off so that this can be discussed in the community meeting next Monday (04/10/2023) |
I hit the same issue today, is there any workaround or quick fix ?
|
The same problem was already addressed in OLM, by gzip the content. |
/assign @nunnatsa |
Hey @nunnatsa ,
Can you explain what you meant by this. Is their an alternate way to install and test operator in Openshift cluster? Currently for testing the bundle currently I follow this
I execute this command
but it is erroring out with above error
|
Hi. As far as I understand, using operator-sdk to install and run operators in openshift is mostly for development and testing. The main road, as far as I know, is to build an image index from the bundle image(s) and the use CatalogSource and subscription to install. |
@abhijeet2096-confluent If you scroll down in the document in your second link, it explains how to build a catalog/index image and a CatalogSource. This is another way to test your operator during development. |
I am facing the same issue. As I understand, it has been fixed with #6408. However I don't see any documentation or mention of When I try to use this flag, I get
@everettraven - can we reopen this issue or is there something I am missing? |
@svghadi IIRC we removed the flag and made it the default behavior |
@everettraven is correct, there is no flag and the default behavior is to use gzip. I tried to install this operator and everything was successful.
|
Thanks for the clarification @everettraven After removing the flag, the operator got installed without any errors with latest version of |
Bug Report
What did you do?
I run
What did you expect to see?
It deploy operator at the end
What did you see instead? Under which circumstances?
Environment
Operator type:
language go
Kubernetes cluster type:
Rancher 2.6.8
$ operator-sdk version
operator-sdk version: "v1.26.1", commit: "4582a8414e65f40ebea65c74729f121e1f3e3b9a", kubernetes version: "1.25.0", go version: "go1.19.5", GOOS: "linux", GOARCH: "amd64"
$ go version
(if language is Go)go version go1.19.6 linux/amd64
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.0", GitCommit:"2b525e8d2647a41e686bc7da5b7430667a13953e", GitTreeState:"clean", BuildDate:"2021-08-20T21:43:10Z", GoVersion:"go1.15.14", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.14", GitCommit:"3321ffc07d2f046afdf613796f9032f4460de093", GitTreeState:"clean", BuildDate:"2022-11-09T13:32:47Z", GoVersion:"go1.17.13", Compiler:"gc", Platform:"linux/amd64"}
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: