Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [~/go/src/github.com/submariner-io/submariner-operator]$ make packagemanifests *[opsdkv1]
- ./.dapper -m bind make -- packagemanifests
- Sending build context to Docker daemon 108.9MB
- Step 1/9 : FROM quay.io/submariner/shipyard-dapper-base:devel
- ---> 968a14ec1bf6
- Step 2/9 : ARG DAPPER_HOST_ARCH
- ---> Using cache
- ---> 2c00c5d0001a
- Step 3/9 : ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH} DAPPER_ENV="REPO TAG QUAY_USERNAME QUAY_PASSWORD GITHUB_SHA MAKEFLAGS CLUSTERS_ARGS DEPLOY_ARGS E2E_ARGS RELEASE_ARGS" DAPPER_SOURCE=/go/src/github.com/submariner-io/submariner-operator DAPPER_DOCKER_SOCKET=true OPERATOR_SDK_VERSION=1.0.1 KUSTOMIZE_VERSION=3.5.4 CONTROLLER_GEN_VERSION=0.3.0 GOROOT=/usr/lib/golang
- ---> Using cache
- ---> bb2520810ff4
- Step 4/9 : ENV DAPPER_OUTPUT=${DAPPER_SOURCE}/output PATH=${DAPPER_SOURCE}/bin/:${PATH}
- ---> Using cache
- ---> c1cddddbd617
- Step 5/9 : RUN curl -Lo /usr/bin/operator-sdk "https://github.com/operator-framework/operator-sdk/releases/download/v${OPERATOR_SDK_VERSION}/operator-sdk-v${OPERATOR_SDK_VERSION}-x86_64-linux-gnu" && chmod a+x /usr/bin/operator-sdk
- ---> Using cache
- ---> f46cbceeef0a
- Step 6/9 : RUN GEN_TMP_DIR=$(mktemp -d) && cd $GEN_TMP_DIR && go mod init tmp && go get sigs.k8s.io/kustomize/kustomize/v3@v${KUSTOMIZE_VERSION} && go get sigs.k8s.io/controller-tools/cmd/controller-gen@v${CONTROLLER_GEN_VERSION} && rm -rf $GEN_TMP_DIR
- ---> Using cache
- ---> 576d2edd12e1
- Step 7/9 : WORKDIR ${DAPPER_SOURCE}
- ---> Using cache
- ---> f83556ffd034
- Step 8/9 : ENTRYPOINT ["/opt/shipyard/scripts/entry"]
- ---> Using cache
- ---> be14c08cf683
- Step 9/9 : CMD ["sh"]
- ---> Using cache
- ---> d4fad4ed4ab6
- Successfully built d4fad4ed4ab6
- Successfully tagged submariner-operator:opsdkv1
- [submariner-operator]$ trap chown -R 1000:1000 . exit
- [submariner-operator]$ mkdir -p bin dist output
- [submariner-operator]$ make -- packagemanifests
- Makefile:74: warning: overriding recipe for target 'e2e'
- /opt/shipyard/Makefile.inc:40: warning: ignoring old recipe for target 'e2e'
- controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
- operator-sdk generate kustomize manifests -q && \
- cd config/manager && kustomize edit set image controller=quay.io/submariner/submariner-operator:v0.7.0-16-g80b6c81-dev && cd ../../ && \
- (cd config/bundle && \
- cat kustomization.template.yaml > kustomization.yaml && \
- sed -i -e 's/${VERSION}/v0.7.0-16-g80b6c81-dev/g' kustomization.yaml && \
- kustomize edit add annotation createdAt:"2020-11-02 16:40:33" -f && \
- cd ../../ )
- (kustomize build config/manifests \
- | operator-sdk generate packagemanifests -q --version v0.7.0-16-g80b6c81-dev ) && \
- (cd config/bundle && kustomize edit add resource ../../packagemanifests/v0.7.0-16-g80b6c81-dev/submariner.clusterserviceversion.yaml && cd ../../) && \
- kustomize build config/bundle/ --load_restrictor=LoadRestrictionsNone --output packagemanifests/v0.7.0-16-g80b6c81-dev/submariner.clusterserviceversion.yaml && \
- mv packagemanifests/v0.7.0-16-g80b6c81-dev/submariner.clusterserviceversion.yaml packagemanifests/v0.7.0-16-g80b6c81-dev/submariner.vv0.7.0-16-g80b6c81-dev.clusterserviceversion.yaml
- Error: invalid command options: v0.7.0-16-g80b6c81-dev is not a valid semantic version: Invalid character(s) found in major number "v0"
- Usage:
- operator-sdk generate packagemanifests [flags]
- Examples:
- # Generate manifests then create the package manifests base:
- $ make manifests
- /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
- Display name for the operator (required):
- > memcached-operator
- ...
- $ tree config/manifests
- config/manifests
- ├── bases
- │ └── memcached-operator.clusterserviceversion.yaml
- └── kustomization.yaml
- $ kustomize build config/manifests | operator-sdk generate packagemanifests --manifests --version 0.0.1
- Generating package manifests version 0.0.1
- ...
- # After running the above commands, you should see this directory structure:
- $ tree packagemanifests
- packagemanifests
- ├── 0.0.1
- │ ├── cache.my.domain_memcacheds.yaml
- │ └── memcached-operator.clusterserviceversion.yaml
- └── memcached-operator.package.yaml
- Flags:
- --channel string Channel name for the generated package
- --crds-dir string Root directory for CustomResoureDefinition manifests
- --default-channel Use the channel passed to --channel as the package manifest file's default channel
- --deploy-dir string Root directory for operator manifests such as Deployments and RBAC, ex. 'deploy'. This directory is different from that passed to --input-dir
- --from-version string Semantic version of the operator being upgraded from
- -h, --help help for packagemanifests
- --input-dir string Directory to read existing package manifests from. This directory is the parent of individual versioned package directories, and different from --deploy-dir
- --kustomize-dir string Directory containing kustomize bases and a kustomization.yaml for operator-framework manifests (default "config/manifests")
- --output-dir string Directory in which to write package manifests
- -q, --quiet Run in quiet mode
- --stdout Write package to stdout
- --update-objects Update non-CSV objects in this package, ex. CustomResoureDefinitions, Roles (default true)
- -v, --version string Semantic version of the packaged operator
- Global Flags:
- --verbose Enable verbose logging
- FATA[0000] invalid command options: v0.7.0-16-g80b6c81-dev is not a valid semantic version: Invalid character(s) found in major number "v0"
- make: *** [Makefile:188: packagemanifests] Error 1
- [submariner-operator]$ make -- packagemanifests
- FATA[0010] exit status 2
- make: *** [Makefile.dapper:21: packagemanifests] Error 1
Add Comment
Please, Sign In to add comment