Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group. +kubebuilder:object:generate=true +groupName=managed-postgres-operator.hoppscale.com
Index ¶
- Variables
- type PostgresDatabase
- type PostgresDatabaseList
- type PostgresDatabasePrivilegesSpec
- type PostgresDatabaseSpec
- type PostgresDatabaseStatus
- type PostgresRole
- type PostgresRoleList
- type PostgresRolePasswordFromSecret
- type PostgresRoleSpec
- type PostgresRoleStatus
- type PostgresSchema
- type PostgresSchemaList
- type PostgresSchemaPrivilegesSpec
- type PostgresSchemaSpec
- type PostgresSchemaStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "managed-postgres-operator.hoppscale.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 PostgresDatabase ¶
type PostgresDatabase struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PostgresDatabaseSpec `json:"spec,omitempty"`
Status PostgresDatabaseStatus `json:"status,omitempty"`
}
PostgresDatabase is the Schema for the postgresdatabases API.
func (*PostgresDatabase) DeepCopy ¶
func (in *PostgresDatabase) DeepCopy() *PostgresDatabase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresDatabase.
func (*PostgresDatabase) DeepCopyInto ¶
func (in *PostgresDatabase) DeepCopyInto(out *PostgresDatabase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresDatabase) DeepCopyObject ¶
func (in *PostgresDatabase) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresDatabaseList ¶
type PostgresDatabaseList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PostgresDatabase `json:"items"`
}
PostgresDatabaseList contains a list of PostgresDatabase.
func (*PostgresDatabaseList) DeepCopy ¶
func (in *PostgresDatabaseList) DeepCopy() *PostgresDatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresDatabaseList.
func (*PostgresDatabaseList) DeepCopyInto ¶
func (in *PostgresDatabaseList) DeepCopyInto(out *PostgresDatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresDatabaseList) DeepCopyObject ¶
func (in *PostgresDatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresDatabasePrivilegesSpec ¶
type PostgresDatabasePrivilegesSpec struct {
Create bool `json:"create,omitempty"`
Connect bool `json:"connect,omitempty"`
Temporary bool `json:"temporary,omitempty"`
}
PostgresDatabasePrivilegesSpec defines the desired database privileges to grant to roles
func (*PostgresDatabasePrivilegesSpec) DeepCopy ¶
func (in *PostgresDatabasePrivilegesSpec) DeepCopy() *PostgresDatabasePrivilegesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresDatabasePrivilegesSpec.
func (*PostgresDatabasePrivilegesSpec) DeepCopyInto ¶
func (in *PostgresDatabasePrivilegesSpec) DeepCopyInto(out *PostgresDatabasePrivilegesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresDatabaseSpec ¶
type PostgresDatabaseSpec struct {
// Name is the PostgreSQL database's name.
// +kubebuilder:validation:Required
// +kubebuilder:validation:XValidation:message="name is immutable",rule="self == oldSelf"
Name string `json:"name"`
// Owner is the PostgreSQL database's owner. It must be a valid existing role.
Owner string `json:"owner,omitempty"`
// Extensions is the list of database extensions to install on the database.
Extensions []string `json:"extensions,omitempty"`
// KeepOnDelete will determine if the deletion of the resource should drop the remote PostgreSQL database. Default is false.
KeepOnDelete bool `json:"keepOnDelete,omitempty"`
// PreserveConnectionsOnDelete will determine if the deletion of the object should drop the existing connections to the remote PostgreSQL database. Default is false.
PreserveConnectionsOnDelete bool `json:"preserveConnectionsOnDelete,omitempty"`
// PrivilegesByRole will grant privileges to roles
PrivilegesByRole map[string]PostgresDatabasePrivilegesSpec `json:"privilegesByRole,omitempty"`
}
PostgresDatabaseSpec defines the desired state of PostgresDatabase.
func (*PostgresDatabaseSpec) DeepCopy ¶
func (in *PostgresDatabaseSpec) DeepCopy() *PostgresDatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresDatabaseSpec.
func (*PostgresDatabaseSpec) DeepCopyInto ¶
func (in *PostgresDatabaseSpec) DeepCopyInto(out *PostgresDatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresDatabaseStatus ¶
type PostgresDatabaseStatus struct {
Succeeded bool `json:"succeeded"`
}
PostgresDatabaseStatus defines the observed state of PostgresDatabase.
func (*PostgresDatabaseStatus) DeepCopy ¶
func (in *PostgresDatabaseStatus) DeepCopy() *PostgresDatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresDatabaseStatus.
func (*PostgresDatabaseStatus) DeepCopyInto ¶
func (in *PostgresDatabaseStatus) DeepCopyInto(out *PostgresDatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresRole ¶
type PostgresRole struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PostgresRoleSpec `json:"spec,omitempty"`
Status PostgresRoleStatus `json:"status,omitempty"`
}
PostgresRole is the Schema for the postgresroles API.
func (*PostgresRole) DeepCopy ¶
func (in *PostgresRole) DeepCopy() *PostgresRole
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresRole.
func (*PostgresRole) DeepCopyInto ¶
func (in *PostgresRole) DeepCopyInto(out *PostgresRole)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresRole) DeepCopyObject ¶
func (in *PostgresRole) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresRoleList ¶
type PostgresRoleList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PostgresRole `json:"items"`
}
PostgresRoleList contains a list of PostgresRole.
func (*PostgresRoleList) DeepCopy ¶
func (in *PostgresRoleList) DeepCopy() *PostgresRoleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresRoleList.
func (*PostgresRoleList) DeepCopyInto ¶
func (in *PostgresRoleList) DeepCopyInto(out *PostgresRoleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresRoleList) DeepCopyObject ¶
func (in *PostgresRoleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresRolePasswordFromSecret ¶
type PostgresRolePasswordFromSecret struct {
// +kubebuilder:validation:Required
Name string `json:"name"`
// +kubebuilder:validation:Required
Key string `json:"key"`
}
func (*PostgresRolePasswordFromSecret) DeepCopy ¶
func (in *PostgresRolePasswordFromSecret) DeepCopy() *PostgresRolePasswordFromSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresRolePasswordFromSecret.
func (*PostgresRolePasswordFromSecret) DeepCopyInto ¶
func (in *PostgresRolePasswordFromSecret) DeepCopyInto(out *PostgresRolePasswordFromSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresRoleSpec ¶
type PostgresRoleSpec struct {
// PostgreSQL role name
// +kubebuilder:validation:Required
// +kubebuilder:validation:XValidation:message="name is immutable",rule="self == oldSelf"
Name string `json:"name,omitempty"`
SuperUser bool `json:"superUser,omitempty"`
CreateDB bool `json:"createDB,omitempty"`
CreateRole bool `json:"createRole,omitempty"`
Inherit bool `json:"inherit,omitempty"`
Login bool `json:"login,omitempty"`
Replication bool `json:"replication,omitempty"`
BypassRLS bool `json:"bypassRLS,omitempty"`
// KeepOnDelete will determine if the deletion of the resource should drop the remote PostgreSQL role. Default is false.
KeepOnDelete bool `json:"keepOnDelete,omitempty"`
PasswordFromSecret *PostgresRolePasswordFromSecret `json:"passwordFromSecret,omitempty"`
SecretName string `json:"secretName,omitempty"`
SecretTemplate map[string]string `json:"secretTemplate,omitempty"`
MemberOfRoles []string `json:"memberOfRoles,omitempty"`
}
PostgresRoleSpec defines the desired state of PostgresRole.
func (*PostgresRoleSpec) DeepCopy ¶
func (in *PostgresRoleSpec) DeepCopy() *PostgresRoleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresRoleSpec.
func (*PostgresRoleSpec) DeepCopyInto ¶
func (in *PostgresRoleSpec) DeepCopyInto(out *PostgresRoleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresRoleStatus ¶
type PostgresRoleStatus struct {
Succeeded bool `json:"succeeded"`
}
PostgresRoleStatus defines the observed state of PostgresRole.
func (*PostgresRoleStatus) DeepCopy ¶
func (in *PostgresRoleStatus) DeepCopy() *PostgresRoleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresRoleStatus.
func (*PostgresRoleStatus) DeepCopyInto ¶
func (in *PostgresRoleStatus) DeepCopyInto(out *PostgresRoleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresSchema ¶
type PostgresSchema struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PostgresSchemaSpec `json:"spec,omitempty"`
Status PostgresSchemaStatus `json:"status,omitempty"`
}
PostgresSchema is the Schema for the postgresschemas API.
func (*PostgresSchema) DeepCopy ¶
func (in *PostgresSchema) DeepCopy() *PostgresSchema
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSchema.
func (*PostgresSchema) DeepCopyInto ¶
func (in *PostgresSchema) DeepCopyInto(out *PostgresSchema)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresSchema) DeepCopyObject ¶
func (in *PostgresSchema) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresSchemaList ¶
type PostgresSchemaList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PostgresSchema `json:"items"`
}
PostgresSchemaList contains a list of PostgresSchema.
func (*PostgresSchemaList) DeepCopy ¶
func (in *PostgresSchemaList) DeepCopy() *PostgresSchemaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSchemaList.
func (*PostgresSchemaList) DeepCopyInto ¶
func (in *PostgresSchemaList) DeepCopyInto(out *PostgresSchemaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgresSchemaList) DeepCopyObject ¶
func (in *PostgresSchemaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgresSchemaPrivilegesSpec ¶
type PostgresSchemaPrivilegesSpec struct {
Create bool `json:"create,omitempty"`
Usage bool `json:"usage,omitempty"`
}
PostgresSchemaPrivilegesSpec defines the desired schema privileges to grant to roles
func (*PostgresSchemaPrivilegesSpec) DeepCopy ¶
func (in *PostgresSchemaPrivilegesSpec) DeepCopy() *PostgresSchemaPrivilegesSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSchemaPrivilegesSpec.
func (*PostgresSchemaPrivilegesSpec) DeepCopyInto ¶
func (in *PostgresSchemaPrivilegesSpec) DeepCopyInto(out *PostgresSchemaPrivilegesSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresSchemaSpec ¶
type PostgresSchemaSpec struct {
// Database is the PostgreSQL database's name in which the schema exists
// +kubebuilder:validation:Required
// +kubebuilder:validation:XValidation:message="database is immutable",rule="self == oldSelf"
Database string `json:"database"`
// Name is the PostgreSQL schema's name
// +kubebuilder:validation:Required
// +kubebuilder:validation:XValidation:message="name is immutable",rule="self == oldSelf"
Name string `json:"name"`
// Owner is the PostgreSQL schema's owner. It must be a valid existing role.
Owner string `json:"owner,omitempty"`
// KeepOnDelete will determine if the deletion of the resource should drop the remote PostgreSQL schema. Default is false.
KeepOnDelete bool `json:"keepOnDelete,omitempty"`
// PrivilegesByRole will grant privileges to roles on this schema
PrivilegesByRole map[string]PostgresSchemaPrivilegesSpec `json:"privilegesByRole,omitempty"`
}
PostgresSchemaSpec defines the desired state of a PostgreSQL schema
func (*PostgresSchemaSpec) DeepCopy ¶
func (in *PostgresSchemaSpec) DeepCopy() *PostgresSchemaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSchemaSpec.
func (*PostgresSchemaSpec) DeepCopyInto ¶
func (in *PostgresSchemaSpec) DeepCopyInto(out *PostgresSchemaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresSchemaStatus ¶
type PostgresSchemaStatus struct {
Succeeded bool `json:"succeeded"`
}
PostgresSchemaStatus defines the observed state of PostgresSchema.
func (*PostgresSchemaStatus) DeepCopy ¶
func (in *PostgresSchemaStatus) DeepCopy() *PostgresSchemaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSchemaStatus.
func (*PostgresSchemaStatus) DeepCopyInto ¶
func (in *PostgresSchemaStatus) DeepCopyInto(out *PostgresSchemaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.