nativestor icon indicating copy to clipboard operation
nativestor copied to clipboard

How are the bundle manifests generated?

Open nbalacha opened this issue 3 years ago • 5 comments

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

nbalacha avatar Nov 09 '21 06:11 nbalacha

operator-sdk https://sdk.operatorframework.io/docs/olm-integration/

little-guy-lxr avatar Nov 09 '21 08:11 little-guy-lxr

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.

nbalacha avatar Nov 09 '21 09:11 nbalacha

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

little-guy-lxr avatar Nov 09 '21 09:11 little-guy-lxr

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

nbalacha avatar Nov 17 '21 14:11 nbalacha

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

Muyan0828 avatar Nov 19 '21 09:11 Muyan0828