Skip to content

CRDs out of sync between operator and repository #1497

@james-callahan

Description

@james-callahan
  • Which image of the operator are you using? registry.opensource.zalan.do/acid/postgres-operator:v1.6.2
  • Where do you run it - cloud or metal? Kubernetes or OpenShift? AWS K8s
  • Are you running Postgres Operator in production? not yet
  • Type of issue? Bug report/inconsistency

The CRD in the repository (https://github.com/zalando/postgres-operator/blob/v1.6.2/manifests/postgresql.crd.yaml) is different to the one the operator installs on start.

Diff:

93	93	  versions:
94	94	    - additionalPrinterColumns:
95		        - description: Team responsible for Postgres cluster
	95	        - description: Team responsible for Postgres CLuster
96	96	          jsonPath: .spec.teamId
97	97	          name: Team
150	150	                        items:
151	151	                          type: string
	152	                        nullable: true
152	153	                        type: array
153	154	                      volumeSource:
182	183	                      type: string
183	184	                    timestamp:
184		                      description: >-
185		                        Date-time format that specifies a timezone as an offset
186		                        relative to UTC e.g. 1996-12-19T16:39:57-08:00
187	185	                      pattern: >-
188	186	                        ^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([+-]([01][0-9]|2[0-3]):[0-5][0-9]))$
206	204	                      type: string
207	205	                    numberOfInstances:
208		                      minimum: 1
	206	                      minimum: 2
209	207	                      type: integer
210	208	                    resources:
213	211	                          properties:
214	212	                            cpu:
215		                              description: >-
216		                                Decimal natural followed by m, or decimal
217		                                natural followed by dot followed by up to three
218		                                decimal digits (precision used by Kubernetes).
219		                                Must be greater than 0
220	213	                              pattern: '^(\\d+m|\\d+(\\.\\d{1,3})?)$'
221	214	                              type: string
222	215	                            memory:
223		                              description: >-
224		                                Plain integer or fixed-point integer using one
225		                                of these suffixes: E, P, T, G, M, k (with or
226		                                without a tailing i). Must be greater than 0
227	216	                              pattern: '^(\\d+(e\\d+)?|\\d+(\\.\\d+)?(e\\d+)?[EPTGMK]i?)$'
228	217	                              type: string
234	223	                          properties:
235	224	                            cpu:
236		                              description: >-
237		                                Decimal natural followed by m, or decimal
238		                                natural followed by dot followed by up to three
239		                                decimal digits (precision used by Kubernetes).
240		                                Must be greater than 0
241	225	                              pattern: '^(\\d+m|\\d+(\\.\\d{1,3})?)$'
242	226	                              type: string
243	227	                            memory:
244		                              description: >-
245		                                Plain integer or fixed-point integer using one
246		                                of these suffixes: E, P, T, G, M, k (with or
247		                                without a tailing i). Must be greater than 0
248	228	                              pattern: '^(\\d+(e\\d+)?|\\d+(\\.\\d+)?(e\\d+)?[EPTGMK]i?)$'
249	229	                              type: string
263	243	                databases:
264	244	                  additionalProperties:
265		                    description: >-
266		                      User names specified here as database owners must be
267		                      declared in the users key of the spec key
268	245	                    type: string
269	246	                  type: object
286	263	                    type: object
287	264	                    x-kubernetes-preserve-unknown-fields: true
	265	                  nullable: true
288	266	                  type: array
289	267	                init_containers:
290		                  description: Deprecated
291	268	                  items:
292	269	                    type: object
293	270	                    x-kubernetes-preserve-unknown-fields: true
	271	                  nullable: true
294	272	                  type: array
295	273	                logicalBackupSchedule:
313	291	                              matchExpressions:
314	292	                                items:
315		                                  additionalProperties: true
	293	                                  properties:
	294	                                    key:
	295	                                      type: string
	296	                                    operator:
	297	                                      type: string
	298	                                    values:
	299	                                      items:
	300	                                        type: string
	301	                                      type: array
	302	                                  required:
	303	                                    - key
	304	                                    - operator
316	305	                                  type: object
317	306	                                type: array
318	307	                              matchFields:
319	308	                                items:
320		                                  additionalProperties: true
	309	                                  properties:
	310	                                    key:
	311	                                      type: string
	312	                                    operator:
	313	                                      type: string
	314	                                    values:
	315	                                      items:
	316	                                        type: string
	317	                                      type: array
	318	                                  required:
	319	                                    - key
	320	                                    - operator
321	321	                                  type: object
322	322	                                type: array
326	326	                            type: integer
327	327	                        required:
	328	                          - weight
328	329	                          - preference
329		                          - weight
330	330	                        type: object
331	331	                      type: array
337	337	                              matchExpressions:
338	338	                                items:
339		                                  additionalProperties: true
	339	                                  properties:
	340	                                    key:
	341	                                      type: string
	342	                                    operator:
	343	                                      type: string
	344	                                    values:
	345	                                      items:
	346	                                        type: string
	347	                                      type: array
	348	                                  required:
	349	                                    - key
	350	                                    - operator
340	351	                                  type: object
341	352	                                type: array
342	353	                              matchFields:
343	354	                                items:
344		                                  additionalProperties: true
	355	                                  properties:
	356	                                    key:
	357	                                      type: string
	358	                                    operator:
	359	                                      type: string
	360	                                    values:
	361	                                      items:
	362	                                        type: string
	363	                                      type: array
	364	                                  required:
	365	                                    - key
	366	                                    - operator
345	367	                                  type: object
346	368	                                type: array
390	412	                  type: string
391	413	                pod_priority_class_name:
392		                  description: Deprecated
393	414	                  type: string
394	415	                postgresql:
433	454	                  type: object
434	455	                replicaLoadBalancer:
435		                  description: Deprecated
436	456	                  type: boolean
437	457	                resources:
440	460	                      properties:
441	461	                        cpu:
442		                          description: >-
443		                            Decimal natural followed by m, or decimal natural
444		                            followed by dot followed by up to three decimal
445		                            digits (precision used by Kubernetes). Must be
446		                            greater than 0
447	462	                          pattern: '^(\\d+m|\\d+(\\.\\d{1,3})?)$'
448	463	                          type: string
449	464	                        memory:
450		                          description: >-
451		                            Plain integer or fixed-point integer using one of
452		                            these suffixes: E, P, T, G, M, k (with or without a
453		                            tailing i). Must be greater than 0
454	465	                          pattern: '^(\\d+(e\\d+)?|\\d+(\\.\\d+)?(e\\d+)?[EPTGMK]i?)$'
455	466	                          type: string
461	472	                      properties:
462	473	                        cpu:
463		                          description: >-
464		                            Decimal natural followed by m, or decimal natural
465		                            followed by dot followed by up to three decimal
466		                            digits (precision used by Kubernetes). Must be
467		                            greater than 0
468	474	                          pattern: '^(\\d+m|\\d+(\\.\\d{1,3})?)$'
469	475	                          type: string
470	476	                        memory:
471		                          description: >-
472		                            Plain integer or fixed-point integer using one of
473		                            these suffixes: E, P, T, G, M, k (with or without a
474		                            tailing i). Must be greater than 0
475	477	                          pattern: '^(\\d+(e\\d+)?|\\d+(\\.\\d+)?(e\\d+)?[EPTGMK]i?)$'
476	478	                          type: string
493	495	                    type: object
494	496	                    x-kubernetes-preserve-unknown-fields: true
	497	                  nullable: true
495	498	                  type: array
496	499	                spiloFSGroup:
551	554	                  type: array
552	555	                useLoadBalancer:
553		                  description: Deprecated
554	556	                  type: boolean
555	557	                users:
595	597	                      type: integer
596	598	                    size:
597		                      description: Value must not be zero
598	599	                      pattern: '^(\\d+(e\\d+)?|\\d+(\\.\\d+)?(e\\d+)?[EPTGMK]i?)$'
599	600	                      type: string

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions