Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: CRDGroup, Version: CRDVersion}
Functions ¶
func NewDatabaseCRD ¶
func NewDatabaseCRD() *apiextv1beta1.CustomResourceDefinition
Types ¶
type Database ¶
type Database struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata"` Spec DatabaseSpec `json:"spec"` Status DatabaseStatus `json:"status,omitempty"` }
Database is the definition of our CRD Database
func (*Database) DeepCopyObject ¶
type DatabaseList ¶
type DatabaseList struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ListMeta `json:"metadata"` Items []Database `json:"items"` }
func (*DatabaseList) DeepCopyObject ¶
func (d *DatabaseList) DeepCopyObject() runtime.Object
type DatabaseSpec ¶
type DatabaseSpec struct { Username string `json:"username"` Password v1.SecretKeySelector `json:"password"` DBName string `json:"dbname"` Engine string `json:"engine"` // "postgres" Version string `json:"version"` // version of the engine / database Class string `json:"class"` // like "db.t2.micro" Size int64 `json:"size"` // size in gb MaxAllocatedSize int64 `json:"MaxAllocatedSize"` // size in gb MultiAZ bool `json:"multiaz,omitempty"` PubliclyAccessible bool `json:"publicaccess,omitempty"` StorageEncrypted bool `json:"encrypted,omitempty"` StorageType string `json:"storagetype,omitempty"` Iops int64 `json:"iops,omitempty"` BackupRetentionPeriod int64 `json:"backupretentionperiod,omitempty"` // between 0 and 35, zero means disable DeleteProtection bool `json:"deleteprotection,omitempty"` Tags string `json:"tags,omitempty"` // key=value,key1=value1 Provider string `json:"provider,omitempty"` // local or aws }
DatabaseSpec main structure describing the database instance
type DatabaseStatus ¶
Click to show internal directories.
Click to hide internal directories.