Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the postgresql v1 API group +k8s:deepcopy-gen=package,register +groupName=postgresql.openshift.io
Package v1 contains API Schema definitions for the postgresql v1 API group +k8s:deepcopy-gen=package,register +groupName=postgresql.openshift.io
Index ¶
Constants ¶
const ( // Managed means that the operator is actively managing its resources and trying to keep the component active. ManagementStateManaged = "managed" // Unmanaged means that the operator will not take any action related to the component ManagementStateUnmanaged = "unmanaged" )
const ( PostgreSQLNodeRolePrimary = "primary" PostgreSQLNodeRoleStandby = "standby" PostgreSQLNodeRoleUnknown = "unknown" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "postgresql.openshift.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
Types ¶
type ManagementState ¶
type ManagementState string
type PostgreSQL ¶
type PostgreSQL struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PostgreSQLSpec `json:"spec,omitempty"` Status PostgreSQLStatus `json:"status,omitempty"` }
PostgreSQL is the Schema for the postgresqls API +k8s:openapi-gen=true
func (*PostgreSQL) DeepCopy ¶
func (in *PostgreSQL) DeepCopy() *PostgreSQL
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQL.
func (*PostgreSQL) DeepCopyInto ¶
func (in *PostgreSQL) DeepCopyInto(out *PostgreSQL)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgreSQL) DeepCopyObject ¶
func (in *PostgreSQL) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgreSQLList ¶
type PostgreSQLList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PostgreSQL `json:"items"` }
PostgreSQLList contains a list of PostgreSQL
func (*PostgreSQLList) DeepCopy ¶
func (in *PostgreSQLList) DeepCopy() *PostgreSQLList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLList.
func (*PostgreSQLList) DeepCopyInto ¶
func (in *PostgreSQLList) DeepCopyInto(out *PostgreSQLList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgreSQLList) DeepCopyObject ¶
func (in *PostgreSQLList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgreSQLNode ¶
type PostgreSQLNode struct { Image string `json:"image,omitempty"` Priority int `json:"priority"` Resources corev1.ResourceRequirements `json:"resources,omitempty"` Storage PostgreSQLStorageSpec `json:"storage"` }
PostgreSQLNode defines individual node in PostgreSQL cluster +k8s:openapi-gen=true
func (*PostgreSQLNode) DeepCopy ¶
func (in *PostgreSQLNode) DeepCopy() *PostgreSQLNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLNode.
func (*PostgreSQLNode) DeepCopyInto ¶
func (in *PostgreSQLNode) DeepCopyInto(out *PostgreSQLNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgreSQLNodeRole ¶
type PostgreSQLNodeRole string
type PostgreSQLNodeStatus ¶
type PostgreSQLNodeStatus struct { DeploymentName string `json:"deploymentName,omitempty"` ServiceName string `json:"serviceName,omitempty"` PgVersion string `json:"pgversion,omitempty"` Status string `json:"status,omitempty"` Role PostgreSQLNodeRole `json:"role,omitempty"` Priority int `json:"priority"` }
PostgreSQLNodeStatus represents the status of individual node
func (*PostgreSQLNodeStatus) DeepCopy ¶
func (in *PostgreSQLNodeStatus) DeepCopy() *PostgreSQLNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLNodeStatus.
func (*PostgreSQLNodeStatus) DeepCopyInto ¶
func (in *PostgreSQLNodeStatus) DeepCopyInto(out *PostgreSQLNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgreSQLSpec ¶
type PostgreSQLSpec struct { ManagementState ManagementState `json:"managementState"` Nodes map[string]PostgreSQLNode `json:"nodes"` }
PostgreSQLSpec defines the desired state of PostgreSQL +k8s:openapi-gen=true
func (*PostgreSQLSpec) DeepCopy ¶
func (in *PostgreSQLSpec) DeepCopy() *PostgreSQLSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLSpec.
func (*PostgreSQLSpec) DeepCopyInto ¶
func (in *PostgreSQLSpec) DeepCopyInto(out *PostgreSQLSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgreSQLStatus ¶
type PostgreSQLStatus struct {
Nodes map[string]PostgreSQLNodeStatus `json:"nodes"`
}
PostgreSQLStatus defines the observed state of PostgreSQL +k8s:openapi-gen=true
func (*PostgreSQLStatus) DeepCopy ¶
func (in *PostgreSQLStatus) DeepCopy() *PostgreSQLStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLStatus.
func (*PostgreSQLStatus) DeepCopyInto ¶
func (in *PostgreSQLStatus) DeepCopyInto(out *PostgreSQLStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgreSQLStorageSpec ¶
type PostgreSQLStorageSpec struct { StorageClassName *string `json:"storageClassName,omitempty"` Size *resource.Quantity `json:"size,omitempty"` }
func (*PostgreSQLStorageSpec) DeepCopy ¶
func (in *PostgreSQLStorageSpec) DeepCopy() *PostgreSQLStorageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLStorageSpec.
func (*PostgreSQLStorageSpec) DeepCopyInto ¶
func (in *PostgreSQLStorageSpec) DeepCopyInto(out *PostgreSQLStorageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.