arm

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PollerResumeTokenAnnotation = "serviceoperator.azure.com/poller-resume-token"
	PollerResumeIDAnnotation    = "serviceoperator.azure.com/poller-resume-id"
)
View Source
const (
	CreateOrUpdateActionNoAction        = CreateOrUpdateAction("NoAction")
	CreateOrUpdateActionBeginCreation   = CreateOrUpdateAction("BeginCreateOrUpdate")
	CreateOrUpdateActionMonitorCreation = CreateOrUpdateAction("MonitorCreateOrUpdate")
)
View Source
const (
	DeleteActionBeginDelete   = DeleteAction("BeginDelete")
	DeleteActionMonitorDelete = DeleteAction("MonitorDelete")
)
View Source
const (
	WatchResource  = CreateOrUpdateSuccessMode("watch")
	ManageResource = CreateOrUpdateSuccessMode("manage")
)

Variables

This section is empty.

Functions

func ClearPollerResumeToken

func ClearPollerResumeToken(obj genruntime.MetaObject)

ClearPollerResumeToken clears the poller resume token and ID annotations

func ConvertToARMResourceImpl

func ConvertToARMResourceImpl(
	ctx context.Context,
	metaObject genruntime.ARMMetaObject,
	scheme *runtime.Scheme,
	resolver *resolver.Resolver,
	subscriptionID string) (genruntime.ARMResource, error)

ConvertToARMResourceImpl factored out of AzureDeploymentReconciler.ConvertResourceToARMResource to allow for testing

func GetPollerResumeToken

func GetPollerResumeToken(obj genruntime.MetaObject) (string, string, bool)

GetPollerResumeToken returns a poller ID and the poller token

func NoAction

func NoAction(_ context.Context) (ctrl.Result, error)

func SetPollerResumeToken

func SetPollerResumeToken(obj genruntime.MetaObject, id string, token string)

Types

type ARMClientCache

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

ARMClientCache is a cache for armClients to hold multiple credential clients and global credential client.

func NewARMClientCache

func NewARMClientCache(
	credentialProvider identity.CredentialProvider,
	kubeClient kubeclient.Client,
	configuration cloud.Configuration,
	httpClient *http.Client,
	armMetrics *metrics.ARMClientMetrics) *ARMClientCache

func (*ARMClientCache) GetConnection added in v2.1.0

func (c *ARMClientCache) GetConnection(ctx context.Context, obj genruntime.ARMMetaObject) (Connection, error)

GetConnection finds and returns connection details to be used for a given resource

type ARMConnectionFactory added in v2.1.0

type ARMConnectionFactory func(context.Context, genruntime.ARMMetaObject) (Connection, error)

type AzureDeploymentReconciler

type AzureDeploymentReconciler struct {
	reconcilers.ARMOwnedResourceReconcilerCommon
	ARMConnectionFactory ARMConnectionFactory
	KubeClient           kubeclient.Client
	ResourceResolver     *resolver.Resolver
	PositiveConditions   *conditions.PositiveConditionBuilder
	Config               config.Values
	Extension            genruntime.ResourceExtension
}

func NewAzureDeploymentReconciler

func NewAzureDeploymentReconciler(
	armConnectionFactory ARMConnectionFactory,
	kubeClient kubeclient.Client,
	resourceResolver *resolver.Resolver,
	positiveConditions *conditions.PositiveConditionBuilder,
	cfg config.Values,
	extension genruntime.ResourceExtension) *AzureDeploymentReconciler

func (*AzureDeploymentReconciler) Claim

func (*AzureDeploymentReconciler) CreateOrUpdate

func (r *AzureDeploymentReconciler) CreateOrUpdate(
	ctx context.Context,
	log logr.Logger,
	eventRecorder record.EventRecorder,
	obj genruntime.MetaObject,
) (ctrl.Result, error)

func (*AzureDeploymentReconciler) Delete

func (*AzureDeploymentReconciler) UpdateStatus

func (r *AzureDeploymentReconciler) UpdateStatus(
	ctx context.Context,
	log logr.Logger,
	eventRecorder record.EventRecorder,
	obj genruntime.MetaObject,
) error

type Connection

type Connection interface {
	Client() *genericarmclient.GenericClient
	CredentialFrom() types.NamespacedName
	SubscriptionID() string
}

type CreateOrUpdateAction

type CreateOrUpdateAction string

type CreateOrUpdateActionFunc

type CreateOrUpdateActionFunc = func(ctx context.Context) (ctrl.Result, error)

type CreateOrUpdateSuccessMode added in v2.2.0

type CreateOrUpdateSuccessMode string

type DeleteAction

type DeleteAction string

type DeleteActionFunc

type DeleteActionFunc = func(ctx context.Context) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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