scalesetvms

package
v1.11.5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

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

func (s *Service) Delete(ctx context.Context) error

Delete deletes a scaleset instance asynchronously returning a future which encapsulates the long-running operation.

func (*Service) Name added in v1.3.0

func (s *Service) Name() string

Name returns the service name.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile idempotently gets, creates, and updates a scale set.

type VMSSFlexGetter added in v1.11.0

type VMSSFlexGetter struct {
	Name          string
	ResourceGroup string
}

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.

Jump to

Keyboard shortcuts

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