cloudformation_services_k8s_aws

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingTemplateSpec = coreerrors.New("template or templateUrl must be provided")
)
View Source
var (
	ErrStackNotFound = coreerrors.New("stack not found")
)

Functions

This section is empty.

Types

type ChannelHub

type ChannelHub struct {
	MappingChannel chan *v1alpha1.Stack
	FollowChannel  chan *v1alpha1.Stack
}

type CloudFormationHelper

type CloudFormationHelper struct {
	*servicesk8saws.ConfigReconciler
}

func (*CloudFormationHelper) GetCloudFormation

func (cf *CloudFormationHelper) GetCloudFormation() *cloudformation.Client

func (*CloudFormationHelper) GetStack

func (cf *CloudFormationHelper) GetStack(ctx context.Context, instance *v1alpha1.Stack) (*cfTypes.Stack, error)

func (*CloudFormationHelper) GetStackName

func (cf *CloudFormationHelper) GetStackName(ctx context.Context, instance *v1alpha1.Stack, allowID bool) string

func (*CloudFormationHelper) GetStackResources

func (cf *CloudFormationHelper) GetStackResources(ctx context.Context, stackId string) ([]v1alpha1.StackResource, error)

func (*CloudFormationHelper) StackInTerminalState

func (cf *CloudFormationHelper) StackInTerminalState(status cfTypes.StackStatus) bool

StackInTerminalState Identify if the follower considers the state identified as terminal.

type MapWriter

type MapWriter struct {
	client.Client
	Log logr.Logger
	ChannelHub
	*runtime.Scheme
}

func (*MapWriter) Worker

func (w *MapWriter) Worker()

Worker

type StackFollower

type StackFollower struct {
	client.Client
	ChannelHub
	Log                  logr.Logger
	CloudFormationHelper *CloudFormationHelper
	StacksFollowing      prometheus.Gauge
	StacksFollowed       prometheus.Counter
	// contains filtered or unexported fields
}

StackFollower ensures a Stack object is monitored until it reaches a terminal state

func (*StackFollower) Receiver

func (f *StackFollower) Receiver()

func (*StackFollower) Worker

func (f *StackFollower) Worker()

type StackLoop

type StackLoop struct {
	Log logr.Logger
	// contains filtered or unexported fields
}

type StackReconciler

type StackReconciler struct {
	client.Client
	ChannelHub
	Log                  logr.Logger
	Scheme               *runtime.Scheme
	WatchNamespaces      []string
	CloudFormationHelper *CloudFormationHelper
	DryRun               bool
}

StackReconciler reconciles a Stack object

func (*StackReconciler) Reconcile

func (r *StackReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.3/pkg/reconcile

func (*StackReconciler) SetupWithManager

func (r *StackReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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