Skip to content

Commit a664816

Browse files
authored
auto-generate configuration CRD (#3102)
* auto-generate configuration CRD * make all subconfig optional * remove field enable crd validation * update field descriptions which use proxy types
1 parent e4e6865 commit a664816

20 files changed

Lines changed: 2601 additions & 2188 deletions

File tree

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2025 Zalando SE
3+
Copyright (c) 2026 Zalando SE
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ $(GENERATED): go.mod $(CRD_SOURCES)
6666

6767
$(GENERATED_CRDS): $(GENERATED)
6868
go tool controller-gen crd:crdVersions=v1,allowDangerousTypes=true paths=./pkg/apis/acid.zalan.do/... output:crd:dir=manifests
69-
# only generate postgresteam.crd.yaml and postgresql.crd.yaml for now
70-
@rm manifests/acid.zalan.do_operatorconfigurations.yaml
7169
@mv manifests/acid.zalan.do_postgresqls.yaml manifests/postgresql.crd.yaml
7270
@# hack to use lowercase kind and listKind
7371
@sed -i -e 's/kind: Postgresql/kind: postgresql/' manifests/postgresql.crd.yaml
7472
@sed -i -e 's/listKind: PostgresqlList/listKind: postgresqlList/' manifests/postgresql.crd.yaml
7573
@hack/adjust_postgresql_crd.sh
74+
@mv manifests/acid.zalan.do_operatorconfigurations.yaml manifests/operatorconfiguration.crd.yaml
7675
@mv manifests/acid.zalan.do_postgresteams.yaml manifests/postgresteam.crd.yaml
7776
@cp manifests/postgresql.crd.yaml pkg/apis/acid.zalan.do/v1/postgresql.crd.yaml
77+
@cp manifests/operatorconfiguration.crd.yaml pkg/apis/acid.zalan.do/v1/operatorconfiguration.crd.yaml
7878

7979
local: ${SOURCES} $(GENERATED_CRDS)
8080
CGO_ENABLED=${CGO_ENABLED} go build -o build/${BINARY} $(LOCAL_BUILD_FLAGS) -ldflags "$(LDFLAGS)" $(SOURCES)

0 commit comments

Comments
 (0)