Documentation ¶
Index ¶
- Constants
- type VpcEndpointTemplateReconciler
- func (r *VpcEndpointTemplateReconciler) CreateVpcEndpoint(ctx context.Context, vpcet *avov1alpha2.VpcEndpointTemplate, namespace string) error
- func (r *VpcEndpointTemplateReconciler) FilterHostedControlPlanes(ctx context.Context, vpcet *avov1alpha2.VpcEndpointTemplate) ([]hyperv1beta1.HostedControlPlane, error)
- func (r *VpcEndpointTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *VpcEndpointTemplateReconciler) ReplaceVpcEndpointSpec(ctx context.Context, actual *avov1alpha2.VpcEndpoint, ...) error
- func (r *VpcEndpointTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *VpcEndpointTemplateReconciler) ValidateVpcEndpointForHostedControlPlanes(ctx context.Context, vpcet *avov1alpha2.VpcEndpointTemplate, ...) error
Constants ¶
View Source
const (
ControllerName = "VpcEndpointTemplate"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VpcEndpointTemplateReconciler ¶
type VpcEndpointTemplateReconciler struct { client.Client Scheme *runtime.Scheme // contains filtered or unexported fields }
VpcEndpointTemplateReconciler reconciles a VpcEndpointTemplate object
func (*VpcEndpointTemplateReconciler) CreateVpcEndpoint ¶
func (r *VpcEndpointTemplateReconciler) CreateVpcEndpoint(ctx context.Context, vpcet *avov1alpha2.VpcEndpointTemplate, namespace string) error
CreateVpcEndpoint creates a VpcEndpoint provided a vpcet and a namespace
func (*VpcEndpointTemplateReconciler) FilterHostedControlPlanes ¶
func (r *VpcEndpointTemplateReconciler) FilterHostedControlPlanes(ctx context.Context, vpcet *avov1alpha2.VpcEndpointTemplate) ([]hyperv1beta1.HostedControlPlane, error)
FilterHostedControlPlanes returns a list of all hostedcontrolplane resources in all namespaces. Basically does `oc get hostedcontrolplane -A` TODO: Filter over private hostedcontrolplanes in the future
func (*VpcEndpointTemplateReconciler) ReplaceVpcEndpointSpec ¶
func (r *VpcEndpointTemplateReconciler) ReplaceVpcEndpointSpec(ctx context.Context, actual *avov1alpha2.VpcEndpoint, vpcet *avov1alpha2.VpcEndpointTemplate) error
ReplaceVpcEndpointSpec effectively does a "kubectl replace" if the provided actual VpcEndpoint doesn't match the vpcet
func (*VpcEndpointTemplateReconciler) SetupWithManager ¶
func (r *VpcEndpointTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*VpcEndpointTemplateReconciler) ValidateVpcEndpointForHostedControlPlanes ¶
func (r *VpcEndpointTemplateReconciler) ValidateVpcEndpointForHostedControlPlanes(ctx context.Context, vpcet *avov1alpha2.VpcEndpointTemplate, hcpList []hyperv1beta1.HostedControlPlane) error
Click to show internal directories.
Click to hide internal directories.