Documentation ¶
Index ¶
- type Database
- func (m *Database) CheckPodNotReady(labelSelector string) (err error)
- func (m *Database) CreateDatabaseDeployment(name string, c config.DatabaseConfig) (deploy *appsv1.Deployment, err error)
- func (m *Database) CreateDatabaseService(name string, c config.DatabaseConfig) (svc *v1.Service, err error)
- func (m *Database) GetPodIP(labelSelector string) (ip string, err error)
- func (m *Database) ScaleDatabaseResources(name string, scale int32) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database a k8s database representation
func (*Database) CheckPodNotReady ¶
CheckPodNotReady checks if a pod is in state NotReady
func (*Database) CreateDatabaseDeployment ¶
func (m *Database) CreateDatabaseDeployment(name string, c config.DatabaseConfig) (deploy *appsv1.Deployment, err error)
CreateDatabaseDeployment creates a k8s database deployment, based on a yaml file
func (*Database) CreateDatabaseService ¶
func (m *Database) CreateDatabaseService(name string, c config.DatabaseConfig) (svc *v1.Service, err error)
CreateDatabaseService creates a k8s database service, based on a yaml file
Click to show internal directories.
Click to hide internal directories.