Documentation
¶
Index ¶
- Constants
- func New(name string, clSpecs ...*clustermeshv1alpha1.ClusterSpec) *clustermeshv1alpha1.ClusterMesh
- func PopulateClusterSpec(r *ClusterMeshReconciliation, ctx context.Context, ...) (*clustermeshv1alpha1.ClusterSpec, error)
- func ReconcilePeerings(r *ClusterMeshReconciliation, ctx context.Context, ...) error
- func ReconcileRoutes(r *ClusterMeshReconciliation, ctx context.Context, ...) (ctrl.Result, error)
- func ReconcileSecurityGroups(r *ClusterMeshReconciliation, ctx context.Context, ...) error
- type ClusterMeshReconciler
- type ClusterMeshReconciliation
Constants ¶
View Source
const ( GroupLabel = "clusterGroup" EnableAnnotation = "clustermesh.infrastructure.wildlife.io" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(name string, clSpecs ...*clustermeshv1alpha1.ClusterSpec) *clustermeshv1alpha1.ClusterMesh
func PopulateClusterSpec ¶
func PopulateClusterSpec(r *ClusterMeshReconciliation, ctx context.Context, cluster *clusterv1beta1.Cluster) (*clustermeshv1alpha1.ClusterSpec, error)
func ReconcilePeerings ¶
func ReconcilePeerings(r *ClusterMeshReconciliation, ctx context.Context, currentCluster *clustermeshv1alpha1.ClusterSpec) error
func ReconcileRoutes ¶
func ReconcileRoutes(r *ClusterMeshReconciliation, ctx context.Context, clSpec *clustermeshv1alpha1.ClusterSpec) (ctrl.Result, error)
func ReconcileSecurityGroups ¶
func ReconcileSecurityGroups(r *ClusterMeshReconciliation, ctx context.Context, cluster *clustermeshv1alpha1.ClusterSpec) error
Types ¶
type ClusterMeshReconciler ¶
type ClusterMeshReconciler struct {
client.Client
Scheme *runtime.Scheme
NewEC2ClientFactory func(cfg aws.Config) ec2.EC2Client
PopulateClusterSpecFactory func(r *ClusterMeshReconciliation, ctx context.Context, cluster *clusterv1beta1.Cluster) (*clustermeshv1alpha1.ClusterSpec, error)
ReconcilePeeringsFactory func(r *ClusterMeshReconciliation, ctx context.Context, cluster *clustermeshv1alpha1.ClusterSpec) error
ReconcileSecurityGroupsFactory func(r *ClusterMeshReconciliation, ctx context.Context, cluster *clustermeshv1alpha1.ClusterSpec) error
ReconcileRoutesFactory func(r *ClusterMeshReconciliation, ctx context.Context, cluster *clustermeshv1alpha1.ClusterSpec) (ctrl.Result, error)
}
ClusterMeshReconciler reconciles a ClusterMesh object
func DefaultReconciler ¶
func DefaultReconciler(mgr manager.Manager) *ClusterMeshReconciler
func (*ClusterMeshReconciler) SetupWithManager ¶
func (r *ClusterMeshReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ClusterMeshReconciliation ¶
type ClusterMeshReconciliation struct {
ClusterMeshReconciler
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.