Documentation ¶
Overview ¶
Package region implements an operatorkit resource that addresses a problem where the tcnp resource would need to fetch the Cluster CR even though the MachineDeployment CR is reconciled. This is only because we need the AWS region to lookup S3 bucket names and EC2 image IDs and the like. So in order to free the tcnp resource from that hustle we implement a separate region resource which does the lookup and puts the region into the controller context. The controller context information are then simply used by the tcnp resource as this is our state of the art primitive for information distribution within a controller's reconciliation.
Index ¶
Constants ¶
const (
Name = "region"
)
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct { Logger micrologger.Logger ToClusterFunc func(ctx context.Context, v interface{}) (infrastructurev1alpha3.AWSCluster, error) }
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}