File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
pkg/apis/postgres-operator.crunchydata.com/v1beta1 Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -139,12 +139,18 @@ func (spec *VolumeClaimSpec) AsPersistentVolumeClaimSpec() corev1.PersistentVolu
139139 return out
140140}
141141
142+ // ---
142143// SchemalessObject is a map compatible with JSON object.
143144//
144145// Use with the following markers:
145- // - kubebuilder:pruning:PreserveUnknownFields
146- // - kubebuilder:validation:Schemaless
147- // - kubebuilder:validation:Type=object
146+ // - kubebuilder:pruning:PreserveUnknownFields
147+ // - kubebuilder:validation:Schemaless
148+ // - kubebuilder:validation:Type=object
149+ //
150+ // NOTE: PreserveUnknownFields allows arbitrary values within fields of this
151+ // type but also prevents any validation rules from reaching inside; its CEL
152+ // type is "object" or "message" with zero fields:
153+ // https://kubernetes.io/docs/reference/using-api/cel/#type-system-integration
148154type SchemalessObject map [string ]any
149155
150156// DeepCopy creates a new SchemalessObject by copying the receiver.
You can’t perform that action at this time.
0 commit comments