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

How are the bundle manifests generated? #56

Open
nbalacha opened this issue Nov 9, 2021 · 5 comments
Open

How are the bundle manifests generated? #56

nbalacha opened this issue Nov 9, 2021 · 5 comments

Comments

@nbalacha
Copy link

nbalacha commented Nov 9, 2021

I could not find a command to regenerate the bundle manifests. How are you doing this?
Thanks.
Nithya

@little-guy-lxr
Copy link
Collaborator

@nbalacha
Copy link
Author

nbalacha commented Nov 9, 2021

It does not look like this operator used operator-sdk to generate the code. Is that correct?
Did you install operator-sdk and then run a command like the following:

/home/user/go/bin/controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
operator-sdk generate kustomize manifests -q
kustomize build config/manifests | operator-sdk generate bundle -q --overwrite --version 0.0.1

What is the exact command you use to generate the bundles?

Thanks.

@little-guy-lxr
Copy link
Collaborator

little-guy-lxr commented Nov 9, 2021

topolvm-operator use kube-builder to generate the code. and we want to use operator-sdk to rearch.

you can see the operatorhub.io https://github.com/k8s-operatorhub/community-operators/tree/main/operators/topolvm-operator

@nbalacha
Copy link
Author

Do you have the exact command to generate the bundles? I tried with operator-sdk but it failed with the error:
[nibalach@localhost topolvm-operator]$ operator-sdk generate bundle -q --overwrite --version 2.0.0 --channels=alpha --default-channel=alpha
Error: error reading configuration: open PROJECT: no such file or directory

@Muyan0828
Copy link
Collaborator

@nbalacha
operator-sdk generate bundle --input-dir=deploy -q --overwrite --version 2.0.0 --channels=alpha --default-channel=alpha --package topolvm-operator

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

No branches or pull requests

3 participants