cloudconfigblob

package
v6.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the identifier of the resource.
	Name = "cloudconfigblob"
)

Variables

This section is empty.

Functions

func IsBootstrapCRNotReady

func IsBootstrapCRNotReady(err error) bool

IsMissingCloudConfigSecret asserts bootstrapCRNotReady.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsMissingOrganizationLabel

func IsMissingOrganizationLabel(err error) bool

IsMissingOrganizationLabel asserts missingOrganizationLabel.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts storage account not found error from upstream's API message.

func IsOwnerReferenceNotSet

func IsOwnerReferenceNotSet(err error) bool

IsOwnerReferenceNotSet asserts ownerReferenceNotSet.

func IsStorageAccountNotProvisioned

func IsStorageAccountNotProvisioned(err error) bool

IsStorageAccountNotProvisioned asserts storage account not provisioned error from upstream's API message.

func IsTimeout

func IsTimeout(err error) bool

IsTimeout asserts timeoutError.

func IsTooManyCredentialsError

func IsTooManyCredentialsError(err error) bool

IsTooManyCredentialsError asserts tooManyCredentialsError.

Types

type Config

type Config struct {
	ClientFactory client.OrganizationFactory
	CtrlClient    ctrlclient.Client
	Logger        micrologger.Logger
}

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

Resource manages the blob saved in Azure Storage Account that contains the cloudconfig files to bootstrap our virtual machines.

func New

func New(config Config) (*Resource, error)

func (*Resource) EnsureCreated

func (r *Resource) EnsureCreated(ctx context.Context, obj interface{}) error

EnsureCreated will make sure that a blob is saved in the Storage Account containing the cloud config for the node pool.

func (*Resource) EnsureDeleted

func (r *Resource) EnsureDeleted(ctx context.Context, obj interface{}) error

EnsureDeleted will delete the blob in the Storage Account containing the cloud config for the node pool.

func (*Resource) Name

func (r *Resource) Name() string

Name returns the resource name.

Jump to

Keyboard shortcuts

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