Skip to content

Commit fe73201

Browse files
committed
Don't need v1 of that struct
1 parent b70dcf7 commit fe73201

File tree

3 files changed

+26
-62
lines changed

3 files changed

+26
-62
lines changed

config/crd/bases/postgres-operator.crunchydata.com_postgresclusters.yaml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16107,39 +16107,42 @@ spec:
1610716107
items:
1610816108
properties:
1610916109
claimName:
16110-
description: A reference to a preexisting PVC.
16110+
description: Name of an existing PersistentVolumeClaim.
1611116111
maxLength: 253
1611216112
minLength: 1
1611316113
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?([.][a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
1611416114
type: string
1611516115
containers:
1611616116
description: |-
16117-
The containers to attach this volume to.
16118-
An omitted `Containers` field matches all containers.
16119-
An empty `Containers` field matches no containers.
16117+
The names of containers in which to mount this volume.
16118+
The default mounts the volume in *all* containers. An empty list does not mount the volume to any containers.
1612016119
items:
16120+
maxLength: 63
16121+
minLength: 1
16122+
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
1612116123
type: string
1612216124
maxItems: 10
1612316125
type: array
16124-
x-kubernetes-list-type: atomic
16126+
x-kubernetes-list-type: set
1612516127
name:
1612616128
allOf:
1612716129
- maxLength: 63
1612816130
- maxLength: 55
1612916131
description: |-
16130-
The name of the volume used for mounting path.
16131-
Volumes are mounted in the pods at `volumes/<NAME>`
16132-
Must be unique.
16132+
The name of the directory in which to mount this volume.
16133+
Volumes are mounted in containers at `/volumes/{name}`.
1613316134
minLength: 1
1613416135
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
1613516136
type: string
1613616137
readOnly:
16137-
description: Sets the write/read mode of the volume
16138+
description: When true, mount the volume read-only,
16139+
otherwise read-write. Defaults to false.
1613816140
type: boolean
1613916141
required:
1614016142
- claimName
1614116143
- name
1614216144
type: object
16145+
x-kubernetes-map-type: atomic
1614316146
maxItems: 10
1614416147
type: array
1614516148
x-kubernetes-list-map-keys:
@@ -34774,39 +34777,42 @@ spec:
3477434777
items:
3477534778
properties:
3477634779
claimName:
34777-
description: A reference to a preexisting PVC.
34780+
description: Name of an existing PersistentVolumeClaim.
3477834781
maxLength: 253
3477934782
minLength: 1
3478034783
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?([.][a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
3478134784
type: string
3478234785
containers:
3478334786
description: |-
34784-
The containers to attach this volume to.
34785-
An omitted `Containers` field matches all containers.
34786-
An empty `Containers` field matches no containers.
34787+
The names of containers in which to mount this volume.
34788+
The default mounts the volume in *all* containers. An empty list does not mount the volume to any containers.
3478734789
items:
34790+
maxLength: 63
34791+
minLength: 1
34792+
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
3478834793
type: string
3478934794
maxItems: 10
3479034795
type: array
34791-
x-kubernetes-list-type: atomic
34796+
x-kubernetes-list-type: set
3479234797
name:
3479334798
allOf:
3479434799
- maxLength: 63
3479534800
- maxLength: 55
3479634801
description: |-
34797-
The name of the volume used for mounting path.
34798-
Volumes are mounted in the pods at `volumes/<NAME>`
34799-
Must be unique.
34802+
The name of the directory in which to mount this volume.
34803+
Volumes are mounted in containers at `/volumes/{name}`.
3480034804
minLength: 1
3480134805
pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
3480234806
type: string
3480334807
readOnly:
34804-
description: Sets the write/read mode of the volume
34808+
description: When true, mount the volume read-only,
34809+
otherwise read-write. Defaults to false.
3480534810
type: boolean
3480634811
required:
3480734812
- claimName
3480834813
- name
3480934814
type: object
34815+
x-kubernetes-map-type: atomic
3481034816
maxItems: 10
3481134817
type: array
3481234818
x-kubernetes-list-map-keys:

pkg/apis/postgres-operator.crunchydata.com/v1/postgrescluster_types.go

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -525,23 +525,7 @@ type PostgresInstanceSetSpec struct {
525525
// +optional
526526
TablespaceVolumes []TablespaceVolume `json:"tablespaceVolumes,omitempty"`
527527

528-
Volumes *PostgresVolumesSpec `json:"volumes,omitempty"`
529-
}
530-
531-
type PostgresVolumesSpec struct {
532-
// Additional pre-existing volumes to add to the pod.
533-
// ---
534-
// +optional
535-
// +listType=map
536-
// +listMapKey=name
537-
// +kubebuilder:validation:MaxItems=10
538-
Additional []v1beta1.AdditionalVolume `json:"additional,omitempty"`
539-
540-
// An ephemeral volume for temporary files.
541-
// More info: https://kubernetes.io/docs/concepts/storage/ephemeral-volumes
542-
// ---
543-
// +optional
544-
Temp *v1beta1.VolumeClaimSpec `json:"temp,omitempty"`
528+
Volumes *v1beta1.PostgresVolumesSpec `json:"volumes,omitempty"`
545529
}
546530

547531
type TablespaceVolume struct {

pkg/apis/postgres-operator.crunchydata.com/v1/zz_generated.deepcopy.go

Lines changed: 1 addition & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)