fix(operator-sdk)

closes #4484
This commit is contained in:
Jacob Heider 2023-12-18 16:09:28 -05:00
parent 2c3872d118
commit b1525b9237
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -13,20 +13,23 @@ dependencies:
build:
dependencies:
cmake.org: "*"
git-scm.org: "*"
script: |
make build/operator-sdk
mkdir -p "{{ prefix }}"/bin
mv build/operator-sdk "{{ prefix }}"/bin
cmake.org: '*'
git-scm.org: '*'
script:
- make build/operator-sdk
- mkdir -p "{{ prefix }}"/bin
- mv build/operator-sdk "{{ prefix }}"/bin
provides:
- bin/operator-sdk
test:
script: |
operator-sdk version | grep 'operator-sdk version: "v{{version}}"'
mkdir -p example-operator
cd example-operator
operator-sdk init --project-name example-operator --domain example.com --repo github.com/example/example-operator
test -f main.go
script:
- 'operator-sdk version | grep ''operator-sdk version: "v{{version}}"'''
- mkdir -p example-operator
- cd example-operator
- operator-sdk init --project-name example-operator --domain example.com --repo github.com/example/example-operator
- run: test -f main.go
if: '<1.33.0'
- run: test -f cmd/main.go
if: '>=1.33.0'