dfarrell07

subm_op_make_packagemanifests_fail

Nov 2nd, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.23 KB | None | 0 0
  1. [~/go/src/github.com/submariner-io/submariner-operator]$ make packagemanifests *[opsdkv1]
  2. ./.dapper -m bind make -- packagemanifests
  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 -- packagemanifests
  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:40:33" -f && \
  44. cd ../../ )
  45. (kustomize build config/manifests \
  46. | operator-sdk generate packagemanifests -q --version v0.7.0-16-g80b6c81-dev ) && \
  47. (cd config/bundle && kustomize edit add resource ../../packagemanifests/v0.7.0-16-g80b6c81-dev/submariner.clusterserviceversion.yaml && cd ../../) && \
  48. kustomize build config/bundle/ --load_restrictor=LoadRestrictionsNone --output packagemanifests/v0.7.0-16-g80b6c81-dev/submariner.clusterserviceversion.yaml && \
  49. 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
  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 packagemanifests [flags]
  53.  
  54. Examples:
  55.  
  56. # Generate manifests then create the package manifests base:
  57. $ make manifests
  58. /home/user/go/bin/controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
  59. $ operator-sdk generate kustomize manifests
  60.  
  61. Display name for the operator (required):
  62. > memcached-operator
  63. ...
  64.  
  65. $ tree config/manifests
  66. config/manifests
  67. ├── bases
  68. │   └── memcached-operator.clusterserviceversion.yaml
  69. └── kustomization.yaml
  70. $ kustomize build config/manifests | operator-sdk generate packagemanifests --manifests --version 0.0.1
  71. Generating package manifests version 0.0.1
  72. ...
  73.  
  74. # After running the above commands, you should see this directory structure:
  75. $ tree packagemanifests
  76. packagemanifests
  77. ├── 0.0.1
  78. │   ├── cache.my.domain_memcacheds.yaml
  79. │   └── memcached-operator.clusterserviceversion.yaml
  80. └── memcached-operator.package.yaml
  81.  
  82.  
  83. Flags:
  84. --channel string Channel name for the generated package
  85. --crds-dir string Root directory for CustomResoureDefinition manifests
  86. --default-channel Use the channel passed to --channel as the package manifest file's default channel
  87. --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
  88. --from-version string Semantic version of the operator being upgraded from
  89. -h, --help help for packagemanifests
  90. --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
  91. --kustomize-dir string Directory containing kustomize bases and a kustomization.yaml for operator-framework manifests (default "config/manifests")
  92. --output-dir string Directory in which to write package manifests
  93. -q, --quiet Run in quiet mode
  94. --stdout Write package to stdout
  95. --update-objects Update non-CSV objects in this package, ex. CustomResoureDefinitions, Roles (default true)
  96. -v, --version string Semantic version of the packaged operator
  97.  
  98. Global Flags:
  99. --verbose Enable verbose logging
  100.  
  101. 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"
  102. make: *** [Makefile:188: packagemanifests] Error 1
  103. [submariner-operator]$ make -- packagemanifests
  104. FATA[0010] exit status 2
  105. make: *** [Makefile.dapper:21: packagemanifests] Error 1
  106.  
Add Comment
Please, Sign In to add comment