client

package
v0.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

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

View Source
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

Types

type StrategyTimeConfig

type StrategyTimeConfig struct {
	BackupStartTime      string
	MaintenanceStartTime string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL