Skip to content

Commit

Permalink
Add generate Makefile target to generate operator-sdk resources
Browse files Browse the repository at this point in the history
  • Loading branch information
amuraru committed Jul 6, 2021
1 parent 3359647 commit 41f1a74
Show file tree
Hide file tree
Showing 3 changed files with 4,644 additions and 4,623 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,20 @@ TEST_REPO=testzkop/$(PROJECT_NAME)
APP_REPO=pravega/$(APP_NAME)
ALTREPO=emccorp/$(PROJECT_NAME)
APP_ALTREPO=emccorp/$(APP_NAME)
OSDK_VERSION=$(shell operator-sdk version | cut -f2 -d'"')
VERSION=$(shell git describe --always --tags --dirty | tr -d "v" | sed "s/\(.*\)-g`git rev-parse --short HEAD`/\1/")
GIT_SHA=$(shell git rev-parse --short HEAD)
TEST_IMAGE=$(TEST_REPO)-testimages:$(VERSION)
DOCKER_TEST_PASS=testzkop@123
DOCKER_TEST_USER=testzkop
.PHONY: all build check clean test

all: check build
all: generate check build

generate:
[[ ${OSDK_VERSION} == v0.17* ]] || ( echo "operator-sdk version 0.17 required" ; exit 1 )
operator-sdk generate crds --crd-version v1
env GOROOT=$(shell go env GOROOT) operator-sdk generate k8s

build: test build-go build-image

Expand Down
Loading

0 comments on commit 41f1a74

Please sign in to comment.