mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+operator-sdk -- SDK for building Kubernetes applications (#3666)
* +operator-sdk -- SDK for building Kubernetes applications * +operator-sdk -- build from source instead of using vendored binaries
This commit is contained in:
parent
2dd6c0a84c
commit
7ba952e6cf
1 changed files with 32 additions and 0 deletions
32
projects/operatorframework.io/operator-sdk/package.yml
Normal file
32
projects/operatorframework.io/operator-sdk/package.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
# https://sdk.operatorframework.io/
|
||||
|
||||
distributable:
|
||||
url: git+https://github.com/operator-framework/operator-sdk
|
||||
ref: v{{version}}
|
||||
|
||||
versions:
|
||||
github: operator-framework/operator-sdk
|
||||
strip: /^v/
|
||||
|
||||
dependencies:
|
||||
go.dev: ^1.19
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
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
|
Loading…
Reference in a new issue