postgres-operator/pkg/apis/acid.zalan.do/v1
Camilo Schöningh 44f08bc217
fix: add missing json tags to the MaintenanceWindow type struct. (#2148)
If you import the zalando postgresql v1 api with kubebuilder, it
complains about the missing tags.

```
❯ make manifests
test -s /.../bin/controller-gen && /.../bin/controller-gen --version | grep -q v0.10.0 || \
        GOBIN=/.../bin go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.10.0
/.../bin/controller-gen rbac:roleName=manager-role crd:allowDangerousTypes=true webhook paths="./..." output:crd:artifacts:config=config/crd/bases
/.../go/pkg/mod/github.com/zalando/postgres-operator@v1.8.2/pkg/apis/acid.zalan.do/v1/postgresql_type.go:116:2: encountered struct field "Everyday" without JSON tag in type "MaintenanceWindow"
/.../go/pkg/mod/github.com/zalando/postgres-operator@v1.8.2/pkg/apis/acid.zalan.do/v1/postgresql_type.go:117:2: encountered struct field "Weekday" without JSON tag in type "MaintenanceWindow"
/.../go/pkg/mod/github.com/zalando/postgres-operator@v1.8.2/pkg/apis/acid.zalan.do/v1/postgresql_type.go:118:2: encountered struct field "StartTime" without JSON tag in type "MaintenanceWindow"
/.../go/pkg/mod/github.com/zalando/postgres-operator@v1.8.2/pkg/apis/acid.zalan.do/v1/postgresql_type.go:119:2: encountered struct field "EndTime" without JSON tag in type "MaintenanceWindow"
Error: not all generators ran successfully
run `controller-gen rbac:roleName=manager-role crd:allowDangerousTypes=true webhook paths=./... output:crd:artifacts:config=config/crd/bases -w` to see all available markers, or `controller-gen rbac:roleName=manager-role crd:allowDangerousTypes=true webhook paths=./... output:crd:artifacts:config=config/crd/bases -h` for usage
make: *** [manifests] Error 1
```
2022-12-30 14:45:14 +01:00
..
const.go Use /status subresource instead of plain manifest field (#534) 2019-05-07 12:01:45 +02:00
crds.go enable operator support for pg15 and drop support for 9.5 and 9.6 (#2140) 2022-12-15 12:17:27 +01:00
doc.go Fix golint failures 2019-01-08 13:04:48 +01:00
marshal.go Make teamId in cluster name optional (#2001) 2022-08-24 10:12:50 +02:00
operator_configuration_type.go enable operator support for pg15 and drop support for 9.5 and 9.6 (#2140) 2022-12-15 12:17:27 +01:00
postgres_team_type.go PostgresTeam CRD for advanced team management (#1165) 2020-10-28 10:40:10 +01:00
postgresql_type.go fix: add missing json tags to the MaintenanceWindow type struct. (#2148) 2022-12-30 14:45:14 +01:00
register.go PostgresTeam CRD for advanced team management (#1165) 2020-10-28 10:40:10 +01:00
util.go Make teamId in cluster name optional (#2001) 2022-08-24 10:12:50 +02:00
util_test.go enable operator support for pg15 and drop support for 9.5 and 9.6 (#2140) 2022-12-15 12:17:27 +01:00
zz_generated.deepcopy.go Add Patroni failsafe_mode parameter (#2076) 2022-12-02 13:33:02 +01:00