@@ -152,12 +152,50 @@ type PersistenceSpec struct {
152152 Type string `json:"type"`
153153 // PersistentVolumeClaim defines the PVC configuration. Will be used as is in case of .spec.persistence.type is pvc.
154154 //+kubebuilder:validation:Optional
155- PersistentVolumeClaim * v1. PersistentVolumeClaim `json:"persistentVolumeClaim,omitempty"`
155+ PersistentVolumeClaim * PersistentVolumeClaim `json:"persistentVolumeClaim,omitempty"`
156156 // HostPath defines the host path configuration. Will be used as is in case of .spec.persistence.type is hostPath.
157157 //+kubebuilder:validation:Optional
158158 HostPath string `json:"hostPath,omitempty"`
159159}
160160
161+ // PersistentVolumeClaim is a user's request for and claim to a persistent volume
162+ type PersistentVolumeClaim struct {
163+ metav1.TypeMeta `json:",inline"`
164+ // Standard object's metadata.
165+ // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
166+ // +optional
167+ ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
168+
169+ // spec defines the desired characteristics of a volume requested by a pod author.
170+ // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
171+ // +optional
172+ Spec v1.PersistentVolumeClaimSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
173+
174+ // status represents the current information/status of a persistent volume claim.
175+ // Read-only.
176+ // More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
177+ // +optional
178+ Status v1.PersistentVolumeClaimStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
179+ }
180+
181+ type ObjectMeta struct {
182+ // +optional
183+ Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
184+
185+ // +optional
186+ Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"`
187+
188+ // +optional
189+ Labels map [string ]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"`
190+
191+ // +optional
192+ Annotations map [string ]string `json:"annotations,omitempty" protobuf:"bytes,12,rep,name=annotations"`
193+
194+ // +optional
195+ // +patchStrategy=merge
196+ Finalizers []string `json:"finalizers,omitempty" patchStrategy:"merge" protobuf:"bytes,14,rep,name=finalizers"`
197+ }
198+
161199type CertificateRef struct {
162200 //+kubebuilder:validation:Enum=ca;sa;proxy
163201 Type string `json:"type"`
0 commit comments