Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScaleSetVMScope ¶
type ScaleSetVMScope interface { azure.ClusterDescriber azure.AsyncStatusUpdater ScaleSetVMSpec() azure.ResourceSpecGetter SetVMSSVM(vmssvm *azure.VMSSVM) SetVMSSVMState(state infrav1.ProvisioningState) }
ScaleSetVMScope defines the scope interface for a scale sets service.
type ScaleSetVMSpec ¶ added in v1.11.0
type ScaleSetVMSpec struct { Name string InstanceID string ResourceGroup string ScaleSetName string ProviderID string ResourceID string IsFlex bool }
ScaleSetVMSpec defines the specification for a VMSS VM.
func (*ScaleSetVMSpec) OwnerResourceName ¶ added in v1.11.0
func (s *ScaleSetVMSpec) OwnerResourceName() string
OwnerResourceName returns the name of the VMSS that owns this VM.
func (*ScaleSetVMSpec) Parameters ¶ added in v1.11.0
func (s *ScaleSetVMSpec) Parameters(ctx context.Context, existing interface{}) (params interface{}, err error)
Parameters is a no-op for VMSS VMs as this spec is only used to Get().
func (*ScaleSetVMSpec) ResourceGroupName ¶ added in v1.11.0
func (s *ScaleSetVMSpec) ResourceGroupName() string
ResourceGroupName returns the name of the resource group the VMSS that owns this VM.
func (*ScaleSetVMSpec) ResourceName ¶ added in v1.11.0
func (s *ScaleSetVMSpec) ResourceName() string
ResourceName returns the instance ID of the VMSS VM. This is because the it is identified by the instance ID in Azure instead of the name.
type Service ¶
type Service struct { Scope ScaleSetVMScope async.Reconciler VMReconciler async.Reconciler }
Service provides operations on Azure resources.
func NewService ¶
func NewService(scope ScaleSetVMScope) (*Service, error)
NewService creates a new service.
func (*Service) Delete ¶
Delete deletes a scaleset instance asynchronously returning a future which encapsulates the long-running operation.
type VMSSFlexGetter ¶ added in v1.11.0
VMSSFlexGetter defines the specification for a VMSS flex VM.
func (*VMSSFlexGetter) OwnerResourceName ¶ added in v1.11.0
func (s *VMSSFlexGetter) OwnerResourceName() string
OwnerResourceName is a no-op for flex VMs.
func (*VMSSFlexGetter) Parameters ¶ added in v1.11.0
func (s *VMSSFlexGetter) Parameters(ctx context.Context, existing interface{}) (params interface{}, err error)
Parameters is a no-op for flex VMs as this spec is only used to Get().
func (*VMSSFlexGetter) ResourceGroupName ¶ added in v1.11.0
func (s *VMSSFlexGetter) ResourceGroupName() string
ResourceGroupName returns the name of the flex VM.
func (*VMSSFlexGetter) ResourceName ¶ added in v1.11.0
func (s *VMSSFlexGetter) ResourceName() string
ResourceName returns the name of the flex VM.
Directories ¶
Path | Synopsis |
---|---|
Package mock_scalesetvms is a generated GoMock package.
|
Package mock_scalesetvms is a generated GoMock package. |