@@ -6,13 +6,11 @@ SHELL = /bin/bash
6
6
# version is moved to a separate repo and release process.
7
7
export IMAGE_VERSION = v1.31.0
8
8
# Build-time variables to inject into binaries
9
- export SIMPLE_VERSION = $(shell (test "$(shell git describe --tags) " = "$(shell git describe --tags --abbrev=0) " && echo $(shell git describe --tags) ) || echo $(shell git describe --tags --abbrev=0) +git)
10
- export GIT_VERSION = $(shell git describe --dirty --tags --always)
11
- export GIT_COMMIT = $(shell git rev-parse HEAD)
9
+ # export SIMPLE_VERSION = $(shell (test "$(shell git describe --tags)" = "$(shell git describe --tags --abbrev=0)" && echo $(shell git describe --tags)) || echo $(shell git describe --tags --abbrev=0)+git)
10
+ # export GIT_VERSION = $(shell git describe --dirty --tags --always)
11
+ # export GIT_COMMIT = $(shell git rev-parse HEAD)
12
12
export K8S_VERSION = 1.26.0
13
13
14
- export OPERATOR_SDK_VERSION = $(IMAGE_VERSION )
15
-
16
14
# Build settings
17
15
export TOOLS_DIR = tools/bin
18
16
export SCRIPTS_DIR = tools/scripts
@@ -37,9 +35,9 @@ export PATH := $(PWD)/$(BUILD_DIR):$(PWD)/$(TOOLS_DIR):$(PATH)
37
35
# #@ Development
38
36
39
37
.PHONY : generate
40
- generate : operator-sdk build # Generate CLI docs and samples
38
+ generate : build # Generate CLI docs and samples
41
39
rm -rf testdata
42
- go run ./hack/generate/samples/generate_testdata.go --bin $( OPERATOR_SDK )
40
+ go run ./hack/generate/samples/generate_testdata.go
43
41
go generate ./...
44
42
45
43
.PHONY : fix
@@ -142,11 +140,12 @@ e2e_targets := test-e2e $(e2e_tests)
142
140
export KIND_CLUSTER := osdk-test
143
141
144
142
KUBEBUILDER_ASSETS = $(PWD ) /$(shell go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest && $(shell go env GOPATH) /bin/setup-envtest use $(K8S_VERSION ) --bin-dir tools/bin/ -p path)
145
- test-e2e-setup :: operator-sdk build dev-install cluster-create
143
+ test-e2e-setup :: build dev-install cluster-create
146
144
147
145
.PHONY : cluster-create
148
146
cluster-create ::
149
147
[[ " ` $( TOOLS_DIR) /kind get clusters` " =~ " $( KIND_CLUSTER) " ]] || $(TOOLS_DIR ) /kind create cluster --image=" kindest/node:v$( K8S_VERSION) " --name $(KIND_CLUSTER )
148
+ $(TOOLS_DIR ) /kind export kubeconfig --name $(KIND_CLUSTER )
150
149
151
150
.PHONY : dev-install
152
151
dev-install ::
@@ -164,29 +163,12 @@ test-e2e-teardown:
164
163
$(e2e_targets ) :: test-e2e-setup
165
164
test-e2e :: $(e2e_tests ) # # Run e2e tests
166
165
167
- test-e2e-ansible :: operator-sdk image/ansible-operator # # Run Ansible e2e tests
168
- go test -count=1 ./internal/ansible/proxy/...
166
+ test-e2e-ansible :: image/ansible-operator # # Run Ansible e2e tests
169
167
go test ./test/e2e/ansible -v -ginkgo.v
170
168
test-e2e-ansible-molecule :: install dev-install image/ansible-operator # # Run molecule-based Ansible e2e tests
171
169
go run ./hack/generate/samples/molecule/generate.go
172
170
./hack/tests/e2e-ansible-molecule.sh
173
171
174
- # # Location to install dependencies to
175
- LOCALBIN ?= $(shell pwd) /bin
176
- $(LOCALBIN ) :
177
- mkdir -p $(LOCALBIN )
178
-
179
- .PHONY : operator-sdk
180
- OPERATOR_SDK ?= $(LOCALBIN ) /operator-sdk
181
- operator-sdk : # # Download operator-sdk locally if necessary.
182
- @{ \
183
- set -e ; \
184
- mkdir -p $(dir $(OPERATOR_SDK ) ) ; \
185
- OS=$(shell go env GOOS) && ARCH=$(shell go env GOARCH) && \
186
- curl -sSLo $(OPERATOR_SDK ) https://github.com/operator-framework/operator-sdk/releases/download/$(OPERATOR_SDK_VERSION ) /operator-sdk_$$ {OS}_$$ {ARCH} ; \
187
- chmod +x $(OPERATOR_SDK ) ; \
188
- }
189
-
190
172
.DEFAULT_GOAL := help
191
173
.PHONY : help
192
174
help : # # Show this help screen.
0 commit comments