scalesetvms

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 16 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
	InstanceID() string
	ProviderID() string
	ScaleSetName() string
	OrchestrationMode() infrav1.OrchestrationModeType
	SetVMSSVM(vmssvm *azure.VMSSVM)
}

ScaleSetVMScope defines the scope interface for a scale sets service.

type Service

type Service struct {
	Client   client
	VMClient virtualmachines.Client
	Scope    ScaleSetVMScope
}

Service provides operations on Azure resources.

func NewService

func NewService(scope ScaleSetVMScope) *Service

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 VMSSFlexVMGetter added in v1.7.0

type VMSSFlexVMGetter struct {
	Name          string
	ResourceGroup string
}

VMSSFlexVMGetter gets the information required to create, update, or delete an Azure resource.

func (*VMSSFlexVMGetter) OwnerResourceName added in v1.7.0

func (vm *VMSSFlexVMGetter) OwnerResourceName() string

OwnerResourceName returns the name of the resource that owns this Azure subresource.

func (*VMSSFlexVMGetter) Parameters added in v1.7.0

func (vm *VMSSFlexVMGetter) Parameters(ctx context.Context, existing interface{}) (params interface{}, err error)

Parameters takes the existing resource and returns the desired parameters of the resource. If the resource does not exist, or we do not care about existing parameters to update the resource, existing should be `nil`. If no update is needed on the resource, Parameters should return `nil`. NOTE: Not yet implemented, see kubernetes-sigs/cluster-api-provider-azure#2720.

func (*VMSSFlexVMGetter) ResourceGroupName added in v1.7.0

func (vm *VMSSFlexVMGetter) ResourceGroupName() string

ResourceGroupName returns the name of the resource group the resource is in.

func (*VMSSFlexVMGetter) ResourceName added in v1.7.0

func (vm *VMSSFlexVMGetter) ResourceName() string

ResourceName returns the name of the resource.

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