Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the db v1alpha1 API group +kubebuilder:object:generate=true +groupName=db.movetokube.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "db.movetokube.com", Version: "v1alpha1"} // 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 Postgres ¶
type Postgres struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PostgresSpec `json:"spec,omitempty"`
Status PostgresStatus `json:"status,omitempty"`
}
Postgres is the Schema for the postgres API
func (*Postgres) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Postgres.
func (*Postgres) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Postgres) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresList ¶
type PostgresList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Postgres `json:"items"`
}
PostgresList contains a list of Postgres
func (*PostgresList) DeepCopy ¶
func (in *PostgresList) DeepCopy() *PostgresList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresList.
func (*PostgresList) DeepCopyInto ¶
func (in *PostgresList) DeepCopyInto(out *PostgresList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresList) DeepCopyObject ¶
func (in *PostgresList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresRoles ¶
type PostgresRoles struct {
Owner string `json:"owner"`
Reader string `json:"reader"`
Writer string `json:"writer"`
}
PostgresRoles stores the different group roles for database
func (*PostgresRoles) DeepCopy ¶
func (in *PostgresRoles) DeepCopy() *PostgresRoles
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresRoles.
func (*PostgresRoles) DeepCopyInto ¶
func (in *PostgresRoles) DeepCopyInto(out *PostgresRoles)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresSpec ¶
type PostgresSpec struct {
Database string `json:"database"`
// +optional
MasterRole string `json:"masterRole,omitempty"`
// +optional
DropOnDelete bool `json:"dropOnDelete,omitempty"`
// +optional
// +listType=set
Schemas []string `json:"schemas,omitempty"`
// +optional
// +listType=set
Extensions []string `json:"extensions,omitempty"`
}
PostgresSpec defines the desired state of Postgres
func (*PostgresSpec) DeepCopy ¶
func (in *PostgresSpec) DeepCopy() *PostgresSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSpec.
func (*PostgresSpec) DeepCopyInto ¶
func (in *PostgresSpec) DeepCopyInto(out *PostgresSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresStatus ¶
type PostgresStatus struct {
Succeeded bool `json:"succeeded"`
Roles PostgresRoles `json:"roles"`
// +optional
// +listType=set
Schemas []string `json:"schemas,omitempty"`
// +optional
// +listType=set
Extensions []string `json:"extensions,omitempty"`
}
PostgresStatus defines the observed state of Postgres
func (*PostgresStatus) DeepCopy ¶
func (in *PostgresStatus) DeepCopy() *PostgresStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresStatus.
func (*PostgresStatus) DeepCopyInto ¶
func (in *PostgresStatus) DeepCopyInto(out *PostgresStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresUser ¶
type PostgresUser struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PostgresUserSpec `json:"spec,omitempty"`
Status PostgresUserStatus `json:"status,omitempty"`
}
PostgresUser is the Schema for the postgresusers API
func (*PostgresUser) DeepCopy ¶
func (in *PostgresUser) DeepCopy() *PostgresUser
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresUser.
func (*PostgresUser) DeepCopyInto ¶
func (in *PostgresUser) DeepCopyInto(out *PostgresUser)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresUser) DeepCopyObject ¶
func (in *PostgresUser) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresUserAWSSpec ¶
type PostgresUserAWSSpec struct {
// +optional
EnableIamAuth bool `json:"enableIamAuth,omitempty"`
}
PostgresUserAWSSpec encapsulates AWS specific configuration toggles.
type PostgresUserList ¶
type PostgresUserList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PostgresUser `json:"items"`
}
PostgresUserList contains a list of PostgresUser
func (*PostgresUserList) DeepCopy ¶
func (in *PostgresUserList) DeepCopy() *PostgresUserList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresUserList.
func (*PostgresUserList) DeepCopyInto ¶
func (in *PostgresUserList) DeepCopyInto(out *PostgresUserList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresUserList) DeepCopyObject ¶
func (in *PostgresUserList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresUserSpec ¶
type PostgresUserSpec struct {
Role string `json:"role"`
Database string `json:"database"`
SecretName string `json:"secretName"`
// +optional
SecretTemplate map[string]string `json:"secretTemplate,omitempty"` // key-value, where key is secret field, value is go template
// +optional
Privileges string `json:"privileges"`
// +optional
AWS *PostgresUserAWSSpec `json:"aws,omitempty"`
// +optional
Annotations map[string]string `json:"annotations,omitempty"`
// +optional
Labels map[string]string `json:"labels,omitempty"`
}
PostgresUserSpec defines the desired state of PostgresUser
func (*PostgresUserSpec) DeepCopy ¶
func (in *PostgresUserSpec) DeepCopy() *PostgresUserSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresUserSpec.
func (*PostgresUserSpec) DeepCopyInto ¶
func (in *PostgresUserSpec) DeepCopyInto(out *PostgresUserSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresUserStatus ¶
type PostgresUserStatus struct {
Succeeded bool `json:"succeeded"`
PostgresRole string `json:"postgresRole"`
PostgresLogin string `json:"postgresLogin"`
PostgresGroup string `json:"postgresGroup"`
DatabaseName string `json:"databaseName"`
EnableIamAuth bool `json:"enableIamAuth"`
}
PostgresUserStatus defines the observed state of PostgresUser
func (*PostgresUserStatus) DeepCopy ¶
func (in *PostgresUserStatus) DeepCopy() *PostgresUserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresUserStatus.
func (*PostgresUserStatus) DeepCopyInto ¶
func (in *PostgresUserStatus) DeepCopyInto(out *PostgresUserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.