dfarrell07

subm_op_make_bundle_fail

Nov 2nd, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.73 KB | None | 0 0
  1. [~/go/src/github.com/submariner-io/submariner-operator]$ make bundle *[opsdkv1]
  2. ./.dapper -m bind make -- bundle
  3. Sending build context to Docker daemon 108.9MB
  4. Step 1/9 : FROM quay.io/submariner/shipyard-dapper-base:devel
  5. ---> 968a14ec1bf6
  6. Step 2/9 : ARG DAPPER_HOST_ARCH
  7. ---> Using cache
  8. ---> 2c00c5d0001a
  9. 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
  10. ---> Using cache
  11. ---> bb2520810ff4
  12. Step 4/9 : ENV DAPPER_OUTPUT=${DAPPER_SOURCE}/output PATH=${DAPPER_SOURCE}/bin/:${PATH}
  13. ---> Using cache
  14. ---> c1cddddbd617
  15. 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
  16. ---> Using cache
  17. ---> f46cbceeef0a
  18. 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
  19. ---> Using cache
  20. ---> 576d2edd12e1
  21. Step 7/9 : WORKDIR ${DAPPER_SOURCE}
  22. ---> Using cache
  23. ---> f83556ffd034
  24. Step 8/9 : ENTRYPOINT ["/opt/shipyard/scripts/entry"]
  25. ---> Using cache
  26. ---> be14c08cf683
  27. Step 9/9 : CMD ["sh"]
  28. ---> Using cache
  29. ---> d4fad4ed4ab6
  30. Successfully built d4fad4ed4ab6
  31. Successfully tagged submariner-operator:opsdkv1
  32. [submariner-operator]$ trap chown -R 1000:1000 . exit
  33. [submariner-operator]$ mkdir -p bin dist output
  34. [submariner-operator]$ make -- bundle
  35. Makefile:74: warning: overriding recipe for target 'e2e'
  36. /opt/shipyard/Makefile.inc:40: warning: ignoring old recipe for target 'e2e'
  37. controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
  38. operator-sdk generate kustomize manifests -q && \
  39. cd config/manager && kustomize edit set image controller=quay.io/submariner/submariner-operator:v0.7.0-16-g80b6c81-dev && cd ../../ && \
  40. (cd config/bundle && \
  41. cat kustomization.template.yaml > kustomization.yaml && \
  42. sed -i -e 's/${VERSION}/v0.7.0-16-g80b6c81-dev/g' kustomization.yaml && \
  43. kustomize edit add annotation createdAt:"2020-11-02 16:39:38" -f && \
  44. cd ../../ )
  45. (kustomize build config/manifests \
  46. | operator-sdk generate bundle -q --overwrite --version v0.7.0-16-g80b6c81-dev ) && \
  47. (cd config/bundle && kustomize edit add resource ../../bundle/manifests/submariner.clusterserviceversion.yaml && cd ../../) && \
  48. kustomize build config/bundle/ --load_restrictor=LoadRestrictionsNone --output bundle/manifests/submariner.clusterserviceversion.yaml && \
  49. operator-sdk bundle validate ./bundle
  50. Error: invalid command options: v0.7.0-16-g80b6c81-dev is not a valid semantic version: Invalid character(s) found in major number "v0"
  51. Usage:
  52. operator-sdk generate bundle [flags]
  53.  
  54. Examples:
  55.  
  56. # Generate bundle files and build your bundle image with these 'make' recipes:
  57. $ make bundle
  58. $ export USERNAME=<your registry username>
  59. $ export BUNDLE_IMG=quay.io/$USERNAME/memcached-operator-bundle:v0.0.1
  60. $ make bundle-build BUNDLE_IMG=$BUNDLE_IMG
  61.  
  62. # The above recipe runs the following commands manually. First it creates bundle
  63. # manifests, metadata, and a bundle.Dockerfile:
  64. $ make manifests
  65. /home/user/go/bin/controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
  66. $ operator-sdk generate kustomize manifests
  67.  
  68. Display name for the operator (required):
  69. > memcached-operator
  70. ...
  71.  
  72. $ tree config/manifests
  73. config/manifests
  74. ├── bases
  75. │   └── memcached-operator.clusterserviceversion.yaml
  76. └── kustomization.yaml
  77. $ kustomize build config/manifests | operator-sdk generate bundle --overwrite --version 0.0.1
  78. Generating bundle manifest version 0.0.1
  79. ...
  80.  
  81. # After running the above commands, you should see this directory structure:
  82. $ tree bundle
  83. bundle
  84. ├── manifests
  85. │   ├── cache.my.domain_memcacheds.yaml
  86. │   └── memcached-operator.clusterserviceversion.yaml
  87. └── metadata
  88. └── annotations.yaml
  89.  
  90. # Then it validates your bundle files and builds your bundle image:
  91. $ operator-sdk bundle validate ./bundle
  92. $ docker build -f bundle.Dockerfile -t $BUNDLE_IMG .
  93. Sending build context to Docker daemon 42.33MB
  94. Step 1/9 : FROM scratch
  95. ...
  96.  
  97. # You can then push your bundle image:
  98. $ make docker-push IMG=$BUNDLE_IMG
  99.  
  100.  
  101. Flags:
  102. --channels string A comma-separated list of channels the bundle belongs to (default "alpha")
  103. --crds-dir string Root directory for CustomResoureDefinition manifests
  104. --default-channel string The default channel for the bundle
  105. --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
  106. -h, --help help for bundle
  107. --input-dir string Directory to read an existing bundle from. This directory is the parent of your bundle 'manifests' directory, and different from --deploy-dir
  108. --kustomize-dir string Directory containing kustomize bases and a kustomization.yaml for operator-framework manifests (default "config/manifests")
  109. --manifests Generate bundle manifests
  110. --metadata Generate bundle metadata and Dockerfile
  111. --output-dir string Directory to write the bundle to
  112. --overwrite Overwrite the bundle's metadata and Dockerfile if they exist (default true)
  113. -q, --quiet Run in quiet mode
  114. --stdout Write bundle manifest to stdout
  115. -v, --version string Semantic version of the operator in the generated bundle. Only set if creating a new bundle or upgrading your operator
  116.  
  117. Global Flags:
  118. --verbose Enable verbose logging
  119.  
  120. 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"
  121. make: *** [Makefile:176: bundle] Error 1
  122. [submariner-operator]$ make -- bundle
  123. FATA[0010] exit status 2
  124. make: *** [Makefile.dapper:21: bundle] Error 1
  125.  
Add Comment
Please, Sign In to add comment