Documentation
¶
Index ¶
- Variables
- func HasOperationalTag(tags []*crossplaneaws.Tag) bool
- func MakeDeepCopyToOldDB(to *v1.StatusForOldDB, from *v1.Status)
- func NewRequestInfo(cfg *viper.Viper, dbClaim *v1.DatabaseClaim) (requestInfo, error)
- func ReplaceOrAddTag(tags []*crossplaneaws.Tag, key string, value string) []*crossplaneaws.Tag
- type DBClaimTags
- type DBTags
- type DatabaseClaimConfig
- type DatabaseClaimReconciler
- type ModeEnum
Constants ¶
This section is empty.
Variables ¶
var ( // FIXME: remove references to private variables OperationalStatusTagKey string = "operational-status" OperationalStatusInactiveValue string = "inactive" OperationalStatusActiveValue string = "active" )
var ( ErrMaxNameLen = fmt.Errorf("dbclaim name is too long. max length is 44 characters") ErrInvalidDSNName = fmt.Errorf("dsn name must be: %s", v1.DSNKey) )
var (
ErrDoNotUpdateStatus = fmt.Errorf("do not update status for this error")
)
var ErrInvalidCredentialsPasswordMissing = fmt.Errorf("invalid_credentials_password_missing")
Functions ¶
func HasOperationalTag ¶
func HasOperationalTag(tags []*crossplaneaws.Tag) bool
func MakeDeepCopyToOldDB ¶
func MakeDeepCopyToOldDB(to *v1.StatusForOldDB, from *v1.Status)
func NewRequestInfo ¶ added in v1.0.7
func NewRequestInfo(cfg *viper.Viper, dbClaim *v1.DatabaseClaim) (requestInfo, error)
NewRequestInfo creates a new requestInfo struct.
func ReplaceOrAddTag ¶
func ReplaceOrAddTag(tags []*crossplaneaws.Tag, key string, value string) []*crossplaneaws.Tag
Types ¶
type DBClaimTags ¶
type DBClaimTags []persistancev1.Tag
func (DBClaimTags) DBTags ¶
func (r DBClaimTags) DBTags() DBTags
func (DBClaimTags) Len ¶
func (r DBClaimTags) Len() int
implementation of sort interface to allow canolicalization of tags
func (DBClaimTags) Less ¶
func (r DBClaimTags) Less(i, j int) bool
func (DBClaimTags) Swap ¶
func (r DBClaimTags) Swap(i, j int)
type DBTags ¶
type DBTags []*crossplanerds.Tag
type DatabaseClaimConfig ¶
type DatabaseClaimReconciler ¶
type DatabaseClaimReconciler struct { client.Client Config *DatabaseClaimConfig }
DatabaseClaimReconciler reconciles a DatabaseClaim object
func (*DatabaseClaimReconciler) ManageOperationalTagging ¶
func (r *DatabaseClaimReconciler) ManageOperationalTagging(ctx context.Context, logr logr.Logger, dbInstanceName, dbParamGroupName string) (bool, error)
ManageOperationalTagging: Will update operational tags on old DBInstance, DBCluster, DBClusterParamGroup and DBParamGroup. It does not return error for DBCluster, DBClusterParamGroup and DBParamGroup if they fail to update tags. Such error is only logged, but not returned. In case of successful updation, It does not to verify whether those tags got updated.
Unlike other resources, It returns error just for DBinstance failling to update tags. It also verifies whether DBinstance got updated with the tag, and return the signal as boolean.
true: operational tag is updated and verfied. false: operational tag is updated but could not be verified yet.