Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the infra v1beta1 API group +kubebuilder:object:generate=true +groupName=dbprovisioning.infra.doodle.com
Index ¶
- Constants
- Variables
- func DatabaseNotReadyCondition(in conditionalResource, reason, message string)
- func DatabaseReadyCondition(in conditionalResource, reason, message string)
- func ExtensionNotReadyCondition(in conditionalResource, reason, message string)
- func UserNotReadyCondition(in conditionalResource, reason, message string)
- func UserReadyCondition(in conditionalResource, reason, message string)
- type DatabaseReference
- type DatabaseSpec
- type Extension
- type Extensions
- type Grant
- type MongoDBDatabase
- func (in *MongoDBDatabase) DeepCopy() *MongoDBDatabase
- func (in *MongoDBDatabase) DeepCopyInto(out *MongoDBDatabase)
- func (in *MongoDBDatabase) DeepCopyObject() runtime.Object
- func (in *MongoDBDatabase) GetDatabaseName() string
- func (in *MongoDBDatabase) GetRootDatabaseName() string
- func (in *MongoDBDatabase) GetRootSecret() *SecretReference
- func (in *MongoDBDatabase) GetStatusConditions() *[]metav1.Condition
- func (d *MongoDBDatabase) SetDefaults() error
- type MongoDBDatabaseList
- type MongoDBDatabaseSpec
- type MongoDBDatabaseStatus
- type MongoDBUser
- func (in *MongoDBUser) DeepCopy() *MongoDBUser
- func (in *MongoDBUser) DeepCopyInto(out *MongoDBUser)
- func (in *MongoDBUser) DeepCopyObject() runtime.Object
- func (in *MongoDBUser) GetCredentials() *SecretReference
- func (in *MongoDBUser) GetDatabase() string
- func (in *MongoDBUser) GetRoles() []MongoDBUserRole
- func (in *MongoDBUser) GetStatusConditions() *[]metav1.Condition
- type MongoDBUserList
- type MongoDBUserRole
- type MongoDBUserSpec
- type MongoDBUserStatus
- type PostgreSQLDatabase
- func (in *PostgreSQLDatabase) DeepCopy() *PostgreSQLDatabase
- func (in *PostgreSQLDatabase) DeepCopyInto(out *PostgreSQLDatabase)
- func (in *PostgreSQLDatabase) DeepCopyObject() runtime.Object
- func (in *PostgreSQLDatabase) GetDatabaseName() string
- func (in *PostgreSQLDatabase) GetRootDatabaseName() string
- func (in *PostgreSQLDatabase) GetRootSecret() *SecretReference
- func (in *PostgreSQLDatabase) GetStatusConditions() *[]metav1.Condition
- func (d *PostgreSQLDatabase) SetDefaults() error
- type PostgreSQLDatabaseList
- type PostgreSQLDatabaseSpec
- type PostgreSQLDatabaseStatus
- type PostgreSQLUser
- func (in *PostgreSQLUser) DeepCopy() *PostgreSQLUser
- func (in *PostgreSQLUser) DeepCopyInto(out *PostgreSQLUser)
- func (in *PostgreSQLUser) DeepCopyObject() runtime.Object
- func (in *PostgreSQLUser) GetCredentials() *SecretReference
- func (in *PostgreSQLUser) GetDatabase() string
- func (in *PostgreSQLUser) GetStatusConditions() *[]metav1.Condition
- type PostgreSQLUserList
- type PostgreSQLUserSpec
- type PostgreSQLUserStatus
- type Privilege
- type SecretReference
Constants ¶
const ( DatabaseReadyConditionType = "DatabaseReady" UserReadyConditionType = "UserReady" ExtensionReadyConditionType = "ExtensionReady" )
Status conditions
const ( SecretNotFoundReason = "SecretNotFoundFailed" ConnectionFailedReason = "ConnectionFailed" DatabaseProvisioningFailedReason = "DatabaseProvisioningFailed" DatabaseProvisioningSuccessfulReason = "DatabaseProvisiningSuccessful" DatabaseNotFoundReason = "DatabaseNotFoundReason" UserNotProvisionedReason = "UserNotProvisioned" UserProvisioningSuccessfulReason = "UserProvisioningSuccessful" CredentialsNotFoundReason = "CredentialsNotFound" CreateDatabaseFailedReason = "CreateDatabaseFailed" CreateExtensionFailedReason = "CreateExtensionFailed" ProgressingReason = "ProgressingReason" )
Status reasons
const (
Finalizer = "infra.finalizers.doodle.com"
)
Finalizer
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "dbprovisioning.infra.doodle.com", Version: "v1beta1"} // 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 ¶
func DatabaseNotReadyCondition ¶
func DatabaseNotReadyCondition(in conditionalResource, reason, message string)
func DatabaseReadyCondition ¶
func DatabaseReadyCondition(in conditionalResource, reason, message string)
func ExtensionNotReadyCondition ¶
func ExtensionNotReadyCondition(in conditionalResource, reason, message string)
func UserNotReadyCondition ¶
func UserNotReadyCondition(in conditionalResource, reason, message string)
func UserReadyCondition ¶
func UserReadyCondition(in conditionalResource, reason, message string)
Types ¶
type DatabaseReference ¶
type DatabaseReference struct { // Name referrs to the name of the database kind, mist be located within the same namespace // +required Name string `json:"name"` }
DatabaseReference is a named reference to a database kind
func (*DatabaseReference) DeepCopy ¶
func (in *DatabaseReference) DeepCopy() *DatabaseReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseReference.
func (*DatabaseReference) DeepCopyInto ¶
func (in *DatabaseReference) DeepCopyInto(out *DatabaseReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseSpec ¶
type DatabaseSpec struct { // DatabaseName is by default the same as metata.name // +optional DatabaseName string `json:"databaseName"` // The connect URI // +optional Address string `json:"address,omitempty"` // Contains a credentials set of a user with enough permission to manage databases and user accounts // +required RootSecret *SecretReference `json:"rootSecret"` }
DatabaseSpec defines the desired state of a *Database
func (*DatabaseSpec) DeepCopy ¶
func (in *DatabaseSpec) DeepCopy() *DatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseSpec.
func (*DatabaseSpec) DeepCopyInto ¶
func (in *DatabaseSpec) DeepCopyInto(out *DatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Extension ¶
type Extension struct {
Name string `json:"name"`
}
Extension is a resource representing database extension
func (*Extension) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Extension.
func (*Extension) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Extensions ¶
type Extensions []Extension
Extensions is a collection of Extension types
func (Extensions) DeepCopy ¶
func (in Extensions) DeepCopy() Extensions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Extensions.
func (Extensions) DeepCopyInto ¶
func (in Extensions) DeepCopyInto(out *Extensions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Grant ¶ added in v0.2.0
type Grant struct { Object string `json:"object,omitempty"` ObjectName string `json:"objectName,omitempty"` User string `json:"user,omitempty"` Privileges []Privilege `json:"privileges,omitempty"` }
func (*Grant) DeepCopy ¶ added in v0.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Grant.
func (*Grant) DeepCopyInto ¶ added in v0.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBDatabase ¶
type MongoDBDatabase struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MongoDBDatabaseSpec `json:"spec,omitempty"` Status MongoDBDatabaseStatus `json:"status,omitempty"` }
MongoDBDatabase is the Schema for the mongodbs API
func (*MongoDBDatabase) DeepCopy ¶
func (in *MongoDBDatabase) DeepCopy() *MongoDBDatabase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBDatabase.
func (*MongoDBDatabase) DeepCopyInto ¶
func (in *MongoDBDatabase) DeepCopyInto(out *MongoDBDatabase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBDatabase) DeepCopyObject ¶
func (in *MongoDBDatabase) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MongoDBDatabase) GetDatabaseName ¶
func (in *MongoDBDatabase) GetDatabaseName() string
func (*MongoDBDatabase) GetRootDatabaseName ¶
func (in *MongoDBDatabase) GetRootDatabaseName() string
func (*MongoDBDatabase) GetRootSecret ¶
func (in *MongoDBDatabase) GetRootSecret() *SecretReference
func (*MongoDBDatabase) GetStatusConditions ¶
func (in *MongoDBDatabase) GetStatusConditions() *[]metav1.Condition
GetStatusConditions returns a pointer to the Status.Conditions slice
func (*MongoDBDatabase) SetDefaults ¶
func (d *MongoDBDatabase) SetDefaults() error
type MongoDBDatabaseList ¶
type MongoDBDatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MongoDBDatabase `json:"items"` }
MongoDBDatabaseList contains a list of MongoDBDatabase
func (*MongoDBDatabaseList) DeepCopy ¶
func (in *MongoDBDatabaseList) DeepCopy() *MongoDBDatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBDatabaseList.
func (*MongoDBDatabaseList) DeepCopyInto ¶
func (in *MongoDBDatabaseList) DeepCopyInto(out *MongoDBDatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBDatabaseList) DeepCopyObject ¶
func (in *MongoDBDatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MongoDBDatabaseSpec ¶
type MongoDBDatabaseSpec struct { *DatabaseSpec `json:",inline"` AtlasGroupId string `json:"atlasGroupId,omitempty"` }
MongoDBDatabaseSpec defines the desired state of MongoDBDatabase
func (*MongoDBDatabaseSpec) DeepCopy ¶
func (in *MongoDBDatabaseSpec) DeepCopy() *MongoDBDatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBDatabaseSpec.
func (*MongoDBDatabaseSpec) DeepCopyInto ¶
func (in *MongoDBDatabaseSpec) DeepCopyInto(out *MongoDBDatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBDatabaseStatus ¶
type MongoDBDatabaseStatus struct { // Conditions holds the conditions for the MongoDBDatabase. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // ObservedGeneration is the last generation reconciled by the controller ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
MongoDBDatabaseStatus defines the observed state of MongoDBDatabase IMPORTANT: Run "make" to regenerate code after modifying this file
func (*MongoDBDatabaseStatus) DeepCopy ¶
func (in *MongoDBDatabaseStatus) DeepCopy() *MongoDBDatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBDatabaseStatus.
func (*MongoDBDatabaseStatus) DeepCopyInto ¶
func (in *MongoDBDatabaseStatus) DeepCopyInto(out *MongoDBDatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBUser ¶
type MongoDBUser struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MongoDBUserSpec `json:"spec,omitempty"` Status MongoDBUserStatus `json:"status,omitempty"` }
MongoDBUser is the Schema for the mongodbs API
func (*MongoDBUser) DeepCopy ¶
func (in *MongoDBUser) DeepCopy() *MongoDBUser
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBUser.
func (*MongoDBUser) DeepCopyInto ¶
func (in *MongoDBUser) DeepCopyInto(out *MongoDBUser)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBUser) DeepCopyObject ¶
func (in *MongoDBUser) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MongoDBUser) GetCredentials ¶
func (in *MongoDBUser) GetCredentials() *SecretReference
func (*MongoDBUser) GetDatabase ¶
func (in *MongoDBUser) GetDatabase() string
func (*MongoDBUser) GetRoles ¶
func (in *MongoDBUser) GetRoles() []MongoDBUserRole
func (*MongoDBUser) GetStatusConditions ¶
func (in *MongoDBUser) GetStatusConditions() *[]metav1.Condition
GetStatusConditions returns a pointer to the Status.Conditions slice
type MongoDBUserList ¶
type MongoDBUserList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MongoDBUser `json:"items"` }
MongoDBUserList contains a list of MongoDBUser
func (*MongoDBUserList) DeepCopy ¶
func (in *MongoDBUserList) DeepCopy() *MongoDBUserList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBUserList.
func (*MongoDBUserList) DeepCopyInto ¶
func (in *MongoDBUserList) DeepCopyInto(out *MongoDBUserList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MongoDBUserList) DeepCopyObject ¶
func (in *MongoDBUserList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MongoDBUserRole ¶
type MongoDBUserRole struct { Name string `json:"name"` // +optional DB string `json:"db,omitempty"` }
func (*MongoDBUserRole) DeepCopy ¶
func (in *MongoDBUserRole) DeepCopy() *MongoDBUserRole
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBUserRole.
func (*MongoDBUserRole) DeepCopyInto ¶
func (in *MongoDBUserRole) DeepCopyInto(out *MongoDBUserRole)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBUserSpec ¶
type MongoDBUserSpec struct { // +required Database *DatabaseReference `json:"database"` // +required Credentials *SecretReference `json:"credentials"` // +optional // +kubebuilder:default:={{name: readWrite}} Roles *[]MongoDBUserRole `json:"roles"` }
func (*MongoDBUserSpec) DeepCopy ¶
func (in *MongoDBUserSpec) DeepCopy() *MongoDBUserSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBUserSpec.
func (*MongoDBUserSpec) DeepCopyInto ¶
func (in *MongoDBUserSpec) DeepCopyInto(out *MongoDBUserSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBUserStatus ¶
type MongoDBUserStatus struct { // Conditions holds the conditions for the MongoDBUser. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // Username of the created user. // +optional Username string `json:"username,omitempty"` // ObservedGeneration is the last generation reconciled by the controller ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
MongoDBUserStatus defines the observed state of MongoDBUser IMPORTANT: Run "make" to regenerate code after modifying this file
func (*MongoDBUserStatus) DeepCopy ¶
func (in *MongoDBUserStatus) DeepCopy() *MongoDBUserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBUserStatus.
func (*MongoDBUserStatus) DeepCopyInto ¶
func (in *MongoDBUserStatus) DeepCopyInto(out *MongoDBUserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgreSQLDatabase ¶
type PostgreSQLDatabase struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PostgreSQLDatabaseSpec `json:"spec,omitempty"` Status PostgreSQLDatabaseStatus `json:"status,omitempty"` }
PostgreSQLDatabase is the Schema for the postgresqls API
func (*PostgreSQLDatabase) DeepCopy ¶
func (in *PostgreSQLDatabase) DeepCopy() *PostgreSQLDatabase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLDatabase.
func (*PostgreSQLDatabase) DeepCopyInto ¶
func (in *PostgreSQLDatabase) DeepCopyInto(out *PostgreSQLDatabase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgreSQLDatabase) DeepCopyObject ¶
func (in *PostgreSQLDatabase) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PostgreSQLDatabase) GetDatabaseName ¶
func (in *PostgreSQLDatabase) GetDatabaseName() string
func (*PostgreSQLDatabase) GetRootDatabaseName ¶
func (in *PostgreSQLDatabase) GetRootDatabaseName() string
func (*PostgreSQLDatabase) GetRootSecret ¶
func (in *PostgreSQLDatabase) GetRootSecret() *SecretReference
func (*PostgreSQLDatabase) GetStatusConditions ¶
func (in *PostgreSQLDatabase) GetStatusConditions() *[]metav1.Condition
GetStatusConditions returns a pointer to the Status.Conditions slice
func (*PostgreSQLDatabase) SetDefaults ¶
func (d *PostgreSQLDatabase) SetDefaults() error
type PostgreSQLDatabaseList ¶
type PostgreSQLDatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PostgreSQLDatabase `json:"items"` }
PostgreSQLDatabaseList contains a list of PostgreSQLDatabase
func (*PostgreSQLDatabaseList) DeepCopy ¶
func (in *PostgreSQLDatabaseList) DeepCopy() *PostgreSQLDatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLDatabaseList.
func (*PostgreSQLDatabaseList) DeepCopyInto ¶
func (in *PostgreSQLDatabaseList) DeepCopyInto(out *PostgreSQLDatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgreSQLDatabaseList) DeepCopyObject ¶
func (in *PostgreSQLDatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgreSQLDatabaseSpec ¶
type PostgreSQLDatabaseSpec struct { *DatabaseSpec `json:",inline"` // Database extensions // +optional Extensions Extensions `json:"extensions,omitempty"` }
PostgreSQLDatabaseSpec defines the desired state of PostgreSQLDatabase
func (*PostgreSQLDatabaseSpec) DeepCopy ¶
func (in *PostgreSQLDatabaseSpec) DeepCopy() *PostgreSQLDatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLDatabaseSpec.
func (*PostgreSQLDatabaseSpec) DeepCopyInto ¶
func (in *PostgreSQLDatabaseSpec) DeepCopyInto(out *PostgreSQLDatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgreSQLDatabaseStatus ¶
type PostgreSQLDatabaseStatus struct { // Conditions holds the conditions for the PostgreSQLDatabase. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // ObservedGeneration is the last generation reconciled by the controller ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
PostgreSQLDatabaseStatus defines the observed state of PostgreSQLDatabase IMPORTANT: Run "make" to regenerate code after modifying this file
func (*PostgreSQLDatabaseStatus) DeepCopy ¶
func (in *PostgreSQLDatabaseStatus) DeepCopy() *PostgreSQLDatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLDatabaseStatus.
func (*PostgreSQLDatabaseStatus) DeepCopyInto ¶
func (in *PostgreSQLDatabaseStatus) DeepCopyInto(out *PostgreSQLDatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgreSQLUser ¶
type PostgreSQLUser struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PostgreSQLUserSpec `json:"spec,omitempty"` Status PostgreSQLUserStatus `json:"status,omitempty"` }
PostgreSQLUser is the Schema for the mongodbs API
func (*PostgreSQLUser) DeepCopy ¶
func (in *PostgreSQLUser) DeepCopy() *PostgreSQLUser
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLUser.
func (*PostgreSQLUser) DeepCopyInto ¶
func (in *PostgreSQLUser) DeepCopyInto(out *PostgreSQLUser)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgreSQLUser) DeepCopyObject ¶
func (in *PostgreSQLUser) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PostgreSQLUser) GetCredentials ¶
func (in *PostgreSQLUser) GetCredentials() *SecretReference
func (*PostgreSQLUser) GetDatabase ¶
func (in *PostgreSQLUser) GetDatabase() string
func (*PostgreSQLUser) GetStatusConditions ¶
func (in *PostgreSQLUser) GetStatusConditions() *[]metav1.Condition
GetStatusConditions returns a pointer to the Status.Conditions slice
type PostgreSQLUserList ¶
type PostgreSQLUserList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PostgreSQLUser `json:"items"` }
PostgreSQLUserList contains a list of PostgreSQLUser
func (*PostgreSQLUserList) DeepCopy ¶
func (in *PostgreSQLUserList) DeepCopy() *PostgreSQLUserList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLUserList.
func (*PostgreSQLUserList) DeepCopyInto ¶
func (in *PostgreSQLUserList) DeepCopyInto(out *PostgreSQLUserList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PostgreSQLUserList) DeepCopyObject ¶
func (in *PostgreSQLUserList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PostgreSQLUserSpec ¶
type PostgreSQLUserSpec struct { // +required Database *DatabaseReference `json:"database"` // +required Credentials *SecretReference `json:"credentials"` // +kubebuilder:default:={{privileges: {ALL}, object: SCHEMA, objectName: public}} Grants []Grant `json:"grants,omitempty"` // Roles are postgres roles granted to this user Roles []string `json:"roles,omitempty"` }
func (*PostgreSQLUserSpec) DeepCopy ¶
func (in *PostgreSQLUserSpec) DeepCopy() *PostgreSQLUserSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLUserSpec.
func (*PostgreSQLUserSpec) DeepCopyInto ¶
func (in *PostgreSQLUserSpec) DeepCopyInto(out *PostgreSQLUserSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgreSQLUserStatus ¶
type PostgreSQLUserStatus struct { // Conditions holds the conditions for the PostgreSQLUser. // +optional Conditions []metav1.Condition `json:"conditions,omitempty"` // Username of the created user. // +optional Username string `json:"username,omitempty"` // ObservedGeneration is the last generation reconciled by the controller ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
PostgreSQLUserStatus defines the observed state of PostgreSQLUser IMPORTANT: Run "make" to regenerate code after modifying this file
func (*PostgreSQLUserStatus) DeepCopy ¶
func (in *PostgreSQLUserStatus) DeepCopy() *PostgreSQLUserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgreSQLUserStatus.
func (*PostgreSQLUserStatus) DeepCopyInto ¶
func (in *PostgreSQLUserStatus) DeepCopyInto(out *PostgreSQLUserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Privilege ¶ added in v0.2.0
type Privilege string
var AlPrivilege Privilege = "ALL"
var SelectPrivilege Privilege = "SELECT"
type SecretReference ¶
type SecretReference struct { // Name referrs to the name of the secret, must be located whithin the same namespace // +required Name string `json:"name"` // Namespace, by default the same namespace is used. // +optional Namespace string `json:"namespace,omitempty"` // +optional // +kubebuilder:default:=username UserField string `json:"userField"` // +optional // +kubebuilder:default:=password PasswordField string `json:"passwordField"` }
SecretReference is a named reference to a secret which contains user credentials
func (*SecretReference) DeepCopy ¶
func (in *SecretReference) DeepCopy() *SecretReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretReference.
func (*SecretReference) DeepCopyInto ¶
func (in *SecretReference) DeepCopyInto(out *SecretReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.