Documentation ¶
Overview ¶
AWS Strategy Setup
A utility to abstract the various strategy map ConfigMaps from the service using CRO (RHMI)
Problem Statement:
- We require an AWS strategy map ConfigMaps to be in place to provide configuration used to provision AWS cloud resources
This utility provides the abstraction necessary, provisioning an AWS strategy map ¶
We accept start times for maintenance and backup times as a level of abstraction Building the correct maintenance and backup times necessary for AWS Maintenance Window format ddd:hh:mm-ddd:hh:mm Backup/Snapshot Window hh:mm-hh:mm
Index ¶
- Constants
- func ReconcileBlobStorage(ctx context.Context, client client.Client, ...) (*v1alpha1.BlobStorage, error)
- func ReconcilePostgres(ctx context.Context, client client.Client, ...) (*v1alpha1.Postgres, error)
- func ReconcileRedis(ctx context.Context, client client.Client, ...) (*v1alpha1.Redis, error)
- func ReconcileStrategyMaps(ctx context.Context, client client.Client, timeConfig *StrategyTimeConfig, ...) error
- type StrategyTimeConfig
Constants ¶
const ( // exported tiers to be used by RHMI operator TierProduction = "production" TierDevelopment = "development" )
Variables ¶
This section is empty.
Functions ¶
func ReconcileBlobStorage ¶
func ReconcileBlobStorage(ctx context.Context, client client.Client, productName, deploymentType, tier, name, ns, secretName, secretNs string, modifyFunc modifyResourceFunc) (*v1alpha1.BlobStorage, error)
ReconcileBlobStorage creates or updates a blob storage custom resource
func ReconcilePostgres ¶
func ReconcilePostgres(ctx context.Context, client client.Client, productName, deploymentType, tier, name, ns, secretName, secretNs string, applyImmediately bool, modifyFunc modifyResourceFunc) (*v1alpha1.Postgres, error)
ReconcilePostgres creates or updates a postgres custom resource
func ReconcileRedis ¶
func ReconcileRedis(ctx context.Context, client client.Client, productName, deploymentType, tier, name, ns, secretName, secretNs string, applyImmediately bool, modifyFunc modifyResourceFunc) (*v1alpha1.Redis, error)
ReconcileRedis creates or updates a redis custom resource
func ReconcileStrategyMaps ¶
func ReconcileStrategyMaps(ctx context.Context, client client.Client, timeConfig *StrategyTimeConfig, tier, namespace string) error
ReconcileStrategyMaps to be used to reconcile strategy maps expected in RHMI installs A single function which can check the infrastructure and provision the correct strategy config map