mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 20:23:58 +02:00
* initial implementation * describe forcing the rolling upgrade * make parameter name more descriptive * add missing pieces * address review * address review * fix bug in e2e tests * fix cluster name label in e2e test * raise test timeout * load spilo test image * use available spilo image * delete replica pod for lazy update test * fix e2e * fix e2e with a vengeance * lets wait for another 30m * print pod name in error msg * print pod name in error msg 2 * raise timeout, comment other tests * subsequent updates of config * add comma * fix e2e test * run unit tests before e2e * remove conflicting dependency * Revert "remove conflicting dependency" This reverts commit65fc09054b. * improve cdp build * dont run unit before e2e tests * Revert "improve cdp build" This reverts commite2a8fa12aa. Co-authored-by: Sergey Dudoladov <sergey.dudoladov@zalando.de> Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
.PHONY: clean copy docker push tools test
|
|
|
|
BINARY ?= postgres-operator-e2e-tests
|
|
BUILD_FLAGS ?= -v
|
|
CGO_ENABLED ?= 0
|
|
ifeq ($(RACE),1)
|
|
BUILD_FLAGS += -race -a
|
|
CGO_ENABLED=1
|
|
endif
|
|
|
|
LOCAL_BUILD_FLAGS ?= $(BUILD_FLAGS)
|
|
LDFLAGS ?= -X=main.version=$(VERSION)
|
|
|
|
IMAGE ?= registry.opensource.zalan.do/acid/$(BINARY)
|
|
VERSION ?= $(shell git describe --tags --always --dirty)
|
|
TAG ?= $(VERSION)
|
|
GITHEAD = $(shell git rev-parse --short HEAD)
|
|
GITURL = $(shell git config --get remote.origin.url)
|
|
GITSTATU = $(shell git status --porcelain || echo 'no changes')
|
|
TTYFLAGS = $(shell test -t 0 && echo '-it')
|
|
|
|
ifndef GOPATH
|
|
GOPATH := $(HOME)/go
|
|
endif
|
|
|
|
PATH := $(GOPATH)/bin:$(PATH)
|
|
|
|
default: tools
|
|
|
|
clean:
|
|
rm -rf manifests
|
|
|
|
copy: clean
|
|
mkdir manifests
|
|
cp ../manifests -r .
|
|
|
|
docker: copy
|
|
docker build --build-arg "VERSION=$(VERSION)" -t "$(IMAGE):$(TAG)" .
|
|
|
|
push: docker
|
|
docker push "$(IMAGE):$(TAG)"
|
|
|
|
tools: docker
|
|
# install pinned version of 'kind'
|
|
GO111MODULE=on go get sigs.k8s.io/kind@v0.5.1
|
|
|
|
e2etest:
|
|
./run.sh
|