Documentation ¶
Index ¶
- Constants
- func AddBackupMandatorySpecs(bkp *v1alpha1.Backup)
- func AddDatabaseMandatorySpecs(db *v1alpha1.Database)
- func BuildDatabaseNameEnvVar(db *v1alpha1.Database) corev1.EnvVar
- func BuildDatabasePasswordEnvVar(db *v1alpha1.Database) corev1.EnvVar
- func BuildDatabaseUserEnvVar(db *v1alpha1.Database) corev1.EnvVar
- func GetAWSSecretName(bkp *v1alpha1.Backup) string
- func GetAwsSecretNamespace(bkp *v1alpha1.Backup) string
- func GetEncSecretName(bkp *v1alpha1.Backup) string
- func GetEncSecretNamespace(bkp *v1alpha1.Backup) string
- func GetEnvVarKey(cgfKey, defaultKey string) string
- func GetLabels(name string) map[string]string
- func GetLoggerByRequestAndController(request reconcile.Request, controllerName string) logr.Logger
- func IsAwsKeySetupByName(bkp *v1alpha1.Backup) bool
- func IsEncKeySetupByName(bkp *v1alpha1.Backup) bool
- func IsEncKeySetupByNameAndNamespace(bkp *v1alpha1.Backup) bool
- func IsEncryptionKeyOptionConfig(bkp *v1alpha1.Backup) bool
Constants ¶
const ( AwsSecretPrefix = "aws-" DbSecretPrefix = "db-" EncSecretPrefix = "encryption-" BackupControllerName = "controller_backup" DatabaseControllerName = "controller_database" )
Variables ¶
This section is empty.
Functions ¶
func AddBackupMandatorySpecs ¶
AddBackupMandatorySpecs will add the specs which are mandatory for Backup CR in the case them not be applied
func AddDatabaseMandatorySpecs ¶
AddDatabaseMandatorySpecs will add the specs which are mandatory for Database CR in the case them not be applied
func BuildDatabaseNameEnvVar ¶
BuildDatabaseNameEnvVar return the corev1.EnvVar object wth the key:value for the database name
func BuildDatabasePasswordEnvVar ¶
BuildDatabasePasswordEnvVar return the corev1.EnvVar object wth the key:value for the database pwd
func BuildDatabaseUserEnvVar ¶
BuildDatabaseUserEnvVar return the corev1.EnvVar object wth the key:value for the database user
func GetAWSSecretName ¶
GetAWSSecretName returns the name of the secret NOTE: The user can just inform the name and namespace of the Secret which is already applied in the cluster OR the data required for the operator be able to create one in the same namespace where the backup is applied
func GetAwsSecretNamespace ¶
GetAwsSecretNamespace returns the namespace where the secret is applied already NOTE: The user can just inform the name and namespace of the Secret which is already applied in the cluster OR the data required for the operator be able to create one in the same namespace where the backup is applied
func GetEncSecretName ¶
GetEncSecretName returns the name of the secret NOTE: The user can just inform the name and namespace of the Secret which is already applied in the cluster OR the data required for the operator be able to create one in the same namespace where the backup is applied
func GetEncSecretNamespace ¶
GetEncSecretNamespace returns the namespace where the secret is applied already NOTE: The user can just inform the name and namespace of the Secret which is already applied in the cluster OR the data required for the operator be able to create one in the same namespace where the backup is applied
func GetEnvVarKey ¶
GetEnvVarKey check if the customized key is in place for the configMap and returned the valid key
func IsAwsKeySetupByName ¶
IsAwsKeySetupByName returns true when it is setup to get an pre-existing secret applied in the cluster. NOTE: The user can just inform the name of the Secret which is already applied in the cluster OR the data required for the operator be able to create one
func IsEncKeySetupByName ¶
IsEncKeySetupByName returns true when it is setup to get an pre-existing secret applied in the cluster. NOTE: The user can just inform the name of the Secret which is already applied in the cluster OR the data required for the operator be able to create one
func IsEncKeySetupByNameAndNamespace ¶
IsEncKeySetupByNameAndNamespace it will return true when the Enc Key is setup by using an preexisting secret applied in the cluster.
func IsEncryptionKeyOptionConfig ¶
IsEncryptionKeyOptionConfig returns true when the CR has the configuration to allow it be used
Types ¶
This section is empty.