Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the pgbackrest v1 API group +kubebuilder:object:generate=true +groupName=pgbackrest.cnpg.opera.com
Package v1 contains API Schema definitions for the pgbackrest v1 API group +kubebuilder:object:generate=true +groupName=pgbackrest.cnpg.opera.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "pgbackrest.cnpg.opera.com", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Archive struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata"`
Spec ArchiveSpec `json:"spec"`
// +optional
Status ArchiveStatus `json:"status,omitempty"`
}
Archive is the Schema for the archives API.
func (*Archive) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Archive.
func (*Archive) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Archive) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ArchiveList ¶
type ArchiveList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Archive `json:"items"`
}
ArchiveList contains a list of PgbackrestConfig.
func (*ArchiveList) DeepCopy ¶
func (in *ArchiveList) DeepCopy() *ArchiveList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArchiveList.
func (*ArchiveList) DeepCopyInto ¶
func (in *ArchiveList) DeepCopyInto(out *ArchiveList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ArchiveList) DeepCopyObject ¶
func (in *ArchiveList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ArchiveSpec ¶
type ArchiveSpec struct {
Configuration pgbackrestApi.PgbackrestConfiguration `json:"configuration"`
// +optional
InstanceSidecarConfiguration InstanceSidecarConfiguration `json:"instanceSidecarConfiguration,omitempty"`
}
ArchiveSpec defines the desired state of Archive.
func (*ArchiveSpec) DeepCopy ¶
func (in *ArchiveSpec) DeepCopy() *ArchiveSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArchiveSpec.
func (*ArchiveSpec) DeepCopyInto ¶
func (in *ArchiveSpec) DeepCopyInto(out *ArchiveSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArchiveStatus ¶
type ArchiveStatus struct {
}
ArchiveStatus defines the observed state of Archive.
func (*ArchiveStatus) DeepCopy ¶
func (in *ArchiveStatus) DeepCopy() *ArchiveStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArchiveStatus.
func (*ArchiveStatus) DeepCopyInto ¶
func (in *ArchiveStatus) DeepCopyInto(out *ArchiveStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InstanceSidecarConfiguration ¶
type InstanceSidecarConfiguration struct {
// The environment to be explicitly passed to the sidecar
// +optional
Env []corev1.EnvVar `json:"env,omitempty"`
// TODO: Add resources for the restore job sidecar
// Resources allocated for the sidecar
// +optional
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
// SecurityContext for the sidecar container
// +optional
SecurityContext *corev1.SecurityContext `json:"securityContext,omitempty"`
}
InstanceSidecarConfiguration defines the configuration for the sidecar that runs in the instance pods.
func (*InstanceSidecarConfiguration) DeepCopy ¶
func (in *InstanceSidecarConfiguration) DeepCopy() *InstanceSidecarConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InstanceSidecarConfiguration.
func (*InstanceSidecarConfiguration) DeepCopyInto ¶
func (in *InstanceSidecarConfiguration) DeepCopyInto(out *InstanceSidecarConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.