pub struct PerconaPgClusterDataSourcePostgresCluster {
pub affinity: Option<PerconaPgClusterDataSourcePostgresClusterAffinity>,
pub cluster_name: Option<String>,
pub cluster_namespace: Option<String>,
pub options: Option<Vec<String>>,
pub priority_class_name: Option<String>,
pub repo_name: String,
pub resources: Option<PerconaPgClusterDataSourcePostgresClusterResources>,
pub tolerations: Option<Vec<PerconaPgClusterDataSourcePostgresClusterTolerations>>,
}Expand description
Defines a pgBackRest data source that can be used to pre-populate the PostgreSQL data directory for a new PostgreSQL cluster using a pgBackRest restore. The PGBackRest field is incompatible with the PostgresCluster field: only one data source can be used for pre-populating a new PostgreSQL cluster
Fields§
§affinity: Option<PerconaPgClusterDataSourcePostgresClusterAffinity>Scheduling constraints of the pgBackRest restore Job. More info: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node
cluster_name: Option<String>The name of an existing PostgresCluster to use as the data source for the new PostgresCluster. Defaults to the name of the PostgresCluster being created if not provided.
cluster_namespace: Option<String>The namespace of the cluster specified as the data source using the clusterName field. Defaults to the namespace of the PostgresCluster being created if not provided.
options: Option<Vec<String>>Command line options to include when running the pgBackRest restore command. https://pgbackrest.org/command.html#command-restore
priority_class_name: Option<String>Priority class name for the pgBackRest restore Job pod. Changing this value causes PostgreSQL to restart. More info: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
repo_name: StringThe name of the pgBackRest repo within the source PostgresCluster that contains the backups that should be utilized to perform a pgBackRest restore when initializing the data source for the new PostgresCluster.
resources: Option<PerconaPgClusterDataSourcePostgresClusterResources>Resource requirements for the pgBackRest restore Job.
tolerations: Option<Vec<PerconaPgClusterDataSourcePostgresClusterTolerations>>Tolerations of the pgBackRest restore Job. More info: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration
Trait Implementations§
Source§impl Clone for PerconaPgClusterDataSourcePostgresCluster
impl Clone for PerconaPgClusterDataSourcePostgresCluster
Source§fn clone(&self) -> PerconaPgClusterDataSourcePostgresCluster
fn clone(&self) -> PerconaPgClusterDataSourcePostgresCluster
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for PerconaPgClusterDataSourcePostgresCluster
impl Default for PerconaPgClusterDataSourcePostgresCluster
Source§fn default() -> PerconaPgClusterDataSourcePostgresCluster
fn default() -> PerconaPgClusterDataSourcePostgresCluster
Source§impl<'de> Deserialize<'de> for PerconaPgClusterDataSourcePostgresCluster
impl<'de> Deserialize<'de> for PerconaPgClusterDataSourcePostgresCluster
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PerconaPgClusterDataSourcePostgresCluster
impl PartialEq for PerconaPgClusterDataSourcePostgresCluster
Source§fn eq(&self, other: &PerconaPgClusterDataSourcePostgresCluster) -> bool
fn eq(&self, other: &PerconaPgClusterDataSourcePostgresCluster) -> bool
self and other values to be equal, and is used by ==.