Skip to content

Commit 8dc33d0

Browse files
author
Tomas
authored
operator-sdk update from v0.17.1 to v0.18.0 (#56)
* operator-sdk update from v0.17.1 to v0.18.0 * Update compatibility info in README.md
1 parent a4e44c7 commit 8dc33d0

File tree

412 files changed

+17112
-9662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

412 files changed

+17112
-9662
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,9 @@ can be found [here](https://github.com/kubernetes/client-go/blob/master/README.m
142142

143143
Postgres operator compatibility with Operator SDK version is in the table below
144144

145-
| | Operator SDK 0.17.x | Operator SDK 1.9.0 |
146-
|-------------------------------|---------------------|--------------------|
147-
| `postgres-operator 0.4.x` | ✓ | - |
148-
| `postgres-operator 1.0.x` | - | ✓ |
149-
| `HEAD` | ✓ | - |
145+
| | Operator SDK version | apiextensions.k8s.io |
146+
|-------------------------------|----------------------|----------------------|
147+
| `postgres-operator 0.4.x` | v0.17 | v1beta1 |
148+
| `postgres-operator 1.0.x` | v0.18 | v1 |
149+
| `HEAD` | v0.18 | v1 |
150+
Lines changed: 72 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: apiextensions.k8s.io/v1beta1
1+
apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
name: postgres.db.movetokube.com
@@ -10,78 +10,81 @@ spec:
1010
plural: postgres
1111
singular: postgres
1212
scope: Namespaced
13-
subresources:
14-
status: {}
15-
validation:
16-
openAPIV3Schema:
17-
description: Postgres is the Schema for the postgres API
18-
properties:
19-
apiVersion:
20-
description: 'APIVersion defines the versioned schema of this representation
21-
of an object. Servers should convert recognized schemas to the latest
22-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
23-
type: string
24-
kind:
25-
description: 'Kind is a string value representing the REST resource this
26-
object represents. Servers may infer this from the endpoint the client
27-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
28-
type: string
29-
metadata:
30-
type: object
31-
spec:
32-
description: PostgresSpec defines the desired state of Postgres
33-
properties:
34-
database:
35-
type: string
36-
dropOnDelete:
37-
type: boolean
38-
extensions:
39-
items:
40-
type: string
41-
type: array
42-
masterRole:
43-
type: string
44-
schemas:
45-
items:
13+
versions:
14+
- name: v1alpha1
15+
schema:
16+
openAPIV3Schema:
17+
description: Postgres is the Schema for the postgres API
18+
properties:
19+
apiVersion:
20+
description: 'APIVersion defines the versioned schema of this representation
21+
of an object. Servers should convert recognized schemas to the latest
22+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
23+
type: string
24+
kind:
25+
description: 'Kind is a string value representing the REST resource this
26+
object represents. Servers may infer this from the endpoint the client
27+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
28+
type: string
29+
metadata:
30+
type: object
31+
spec:
32+
description: PostgresSpec defines the desired state of Postgres
33+
properties:
34+
database:
4635
type: string
47-
type: array
48-
required:
49-
- database
50-
type: object
51-
status:
52-
description: PostgresStatus defines the observed state of Postgres
53-
properties:
54-
extensions:
55-
items:
36+
dropOnDelete:
37+
type: boolean
38+
extensions:
39+
items:
40+
type: string
41+
type: array
42+
x-kubernetes-list-type: set
43+
masterRole:
5644
type: string
57-
type: array
58-
roles:
59-
description: PostgresRoles stores the different group roles for database
60-
properties:
61-
owner:
45+
schemas:
46+
items:
6247
type: string
63-
reader:
48+
type: array
49+
x-kubernetes-list-type: set
50+
required:
51+
- database
52+
type: object
53+
status:
54+
description: PostgresStatus defines the observed state of Postgres
55+
properties:
56+
extensions:
57+
items:
6458
type: string
65-
writer:
59+
type: array
60+
x-kubernetes-list-type: set
61+
roles:
62+
description: PostgresRoles stores the different group roles for database
63+
properties:
64+
owner:
65+
type: string
66+
reader:
67+
type: string
68+
writer:
69+
type: string
70+
required:
71+
- owner
72+
- reader
73+
- writer
74+
type: object
75+
schemas:
76+
items:
6677
type: string
67-
required:
68-
- owner
69-
- reader
70-
- writer
71-
type: object
72-
schemas:
73-
items:
74-
type: string
75-
type: array
76-
succeeded:
77-
type: boolean
78-
required:
79-
- roles
80-
- succeeded
81-
type: object
82-
type: object
83-
version: v1alpha1
84-
versions:
85-
- name: v1alpha1
78+
type: array
79+
x-kubernetes-list-type: set
80+
succeeded:
81+
type: boolean
82+
required:
83+
- roles
84+
- succeeded
85+
type: object
86+
type: object
8687
served: true
8788
storage: true
89+
subresources:
90+
status: {}
Lines changed: 56 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: apiextensions.k8s.io/v1beta1
1+
apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
name: postgresusers.db.movetokube.com
@@ -10,63 +10,62 @@ spec:
1010
plural: postgresusers
1111
singular: postgresuser
1212
scope: Namespaced
13-
subresources:
14-
status: {}
15-
validation:
16-
openAPIV3Schema:
17-
description: PostgresUser is the Schema for the postgresusers API
18-
properties:
19-
apiVersion:
20-
description: 'APIVersion defines the versioned schema of this representation
21-
of an object. Servers should convert recognized schemas to the latest
22-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
23-
type: string
24-
kind:
25-
description: 'Kind is a string value representing the REST resource this
26-
object represents. Servers may infer this from the endpoint the client
27-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
28-
type: string
29-
metadata:
30-
type: object
31-
spec:
32-
description: PostgresUserSpec defines the desired state of PostgresUser
33-
properties:
34-
database:
35-
type: string
36-
privileges:
37-
type: string
38-
role:
39-
type: string
40-
secretName:
41-
type: string
42-
required:
43-
- database
44-
- role
45-
- secretName
46-
type: object
47-
status:
48-
description: PostgresUserStatus defines the observed state of PostgresUser
49-
properties:
50-
databaseName:
51-
type: string
52-
postgresGroup:
53-
type: string
54-
postgresLogin:
55-
type: string
56-
postgresRole:
57-
type: string
58-
succeeded:
59-
type: boolean
60-
required:
61-
- databaseName
62-
- postgresGroup
63-
- postgresLogin
64-
- postgresRole
65-
- succeeded
66-
type: object
67-
type: object
68-
version: v1alpha1
6913
versions:
7014
- name: v1alpha1
15+
schema:
16+
openAPIV3Schema:
17+
description: PostgresUser is the Schema for the postgresusers API
18+
properties:
19+
apiVersion:
20+
description: 'APIVersion defines the versioned schema of this representation
21+
of an object. Servers should convert recognized schemas to the latest
22+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
23+
type: string
24+
kind:
25+
description: 'Kind is a string value representing the REST resource this
26+
object represents. Servers may infer this from the endpoint the client
27+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
28+
type: string
29+
metadata:
30+
type: object
31+
spec:
32+
description: PostgresUserSpec defines the desired state of PostgresUser
33+
properties:
34+
database:
35+
type: string
36+
privileges:
37+
type: string
38+
role:
39+
type: string
40+
secretName:
41+
type: string
42+
required:
43+
- database
44+
- role
45+
- secretName
46+
type: object
47+
status:
48+
description: PostgresUserStatus defines the observed state of PostgresUser
49+
properties:
50+
databaseName:
51+
type: string
52+
postgresGroup:
53+
type: string
54+
postgresLogin:
55+
type: string
56+
postgresRole:
57+
type: string
58+
succeeded:
59+
type: boolean
60+
required:
61+
- databaseName
62+
- postgresGroup
63+
- postgresLogin
64+
- postgresRole
65+
- succeeded
66+
type: object
67+
type: object
7168
served: true
7269
storage: true
70+
subresources:
71+
status: {}

go.mod

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,20 @@ require (
77
github.com/go-logr/logr v0.1.0
88
github.com/go-openapi/spec v0.19.4
99
github.com/golang/mock v1.3.1
10-
github.com/imdario/mergo v0.3.8 // indirect
11-
github.com/lib/pq v1.2.0
12-
github.com/onsi/ginkgo v1.11.0
13-
github.com/onsi/gomega v1.8.1
14-
github.com/operator-framework/operator-sdk v0.17.1
10+
github.com/lib/pq v1.3.0
11+
github.com/onsi/ginkgo v1.12.0
12+
github.com/onsi/gomega v1.9.0
13+
github.com/operator-framework/operator-sdk v0.18.0
1514
github.com/spf13/pflag v1.0.5
16-
k8s.io/api v0.17.4
17-
k8s.io/apimachinery v0.17.4
15+
k8s.io/api v0.18.2
16+
k8s.io/apimachinery v0.18.2
1817
k8s.io/client-go v12.0.0+incompatible
19-
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a
18+
k8s.io/kube-openapi v0.0.0-20200121204235-bf4fb3bd569c
2019
//k8s.io/kubernetes v1.16.2 // indirect
21-
sigs.k8s.io/controller-runtime v0.5.2
20+
sigs.k8s.io/controller-runtime v0.6.0
2221
)
2322

2423
replace (
2524
github.com/Azure/go-autorest => github.com/Azure/go-autorest v13.3.2+incompatible // Required by OLM
26-
k8s.io/client-go => k8s.io/client-go v0.17.4 // Required by prometheus-operator
25+
k8s.io/client-go => k8s.io/client-go v0.18.2 // Required by prometheus-operator
2726
)

0 commit comments

Comments
 (0)