Skip to content

Commit 65c12e3

Browse files
committed
Embed CRD to be submitted by the operator
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
1 parent 1e824d6 commit 65c12e3

4 files changed

Lines changed: 60 additions & 1100 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,6 @@ mocks
106106
ui/.npm/
107107

108108
.DS_Store
109+
110+
# temp build files
111+
pkg/apis/acid.zalan.do/v1/postgresql.crd.yaml

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ default: local
5555
clean:
5656
rm -rf build
5757
rm $(GENERATED)
58+
rm pkg/apis/acid.zalan.do/v1/postgresql.crd.yaml
5859

5960
verify:
6061
hack/verify-codegen.sh
@@ -72,6 +73,7 @@ $(GENERATED_CRDS): $(GENERATED)
7273
@sed -i -e 's/listKind: PostgresqlList/listKind: postgresqlList/' manifests/postgresql.crd.yaml
7374
@hack/adjust_postgresql_crd.sh
7475
@mv manifests/acid.zalan.do_postgresteams.yaml manifests/postgresteam.crd.yaml
76+
@cp manifests/postgresql.crd.yaml pkg/apis/acid.zalan.do/v1/postgresql.crd.yaml
7577

7678
local: ${SOURCES} $(GENERATED_CRDS)
7779
CGO_ENABLED=${CGO_ENABLED} go build -o build/${BINARY} $(LOCAL_BUILD_FLAGS) -ldflags "$(LDFLAGS)" $(SOURCES)
@@ -103,7 +105,7 @@ vet:
103105
@go vet $(PKG)
104106
@staticcheck $(PKG)
105107

106-
test: mocks $(GENERATED)
108+
test: mocks $(GENERATED) $(GENERATED_CRDS)
107109
GO111MODULE=on go test ./...
108110

109111
codegen: $(GENERATED)

0 commit comments

Comments
 (0)