features

package
v2.85.6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeprecatedInThreePointOh

func DeprecatedInThreePointOh(deprecationMessage string) string

nolint gocritic DeprecatedInThreePointOh returns the deprecation message if the provider is running in 3.0 mode - otherwise is returns an empty string (such that this deprecation should be ignored).

This will be used to signify resources which will be Deprecated in 3.0, but not Removed (which will happen in a later, presumably 4.x release).

func EnhancedValidationEnabled

func EnhancedValidationEnabled() bool

EnhancedValidationEnabled returns whether or not the feature for Enhanced Validation is enabled.

This functionality calls out to the Azure MetaData Service to cache the list of supported Azure Locations for the specified Endpoint - and then uses that to provide enhanced validation

This is enabled by default as of version 2.20 of the Azure Provider, and can be disabled by setting the Environment Variable `ARM_PROVIDER_ENHANCED_VALIDATION` to `false`.

func KubeConfigsAreSensitive

func KubeConfigsAreSensitive() bool

func ThreePointOh

func ThreePointOh() bool

ThreePointOh returns whether this provider is running in 3.0 mode that is to say - that functionality which requires/changes in 3.0 should be conditionally toggled on

At this point in time this exists just to be able to place this infrastructure as required - but in time we'll flip this through a Beta and then GA at 3.0 release.

func ThreePointOhBetaResources

func ThreePointOhBetaResources() bool

ThreePointOhBetaResources returns whether this provider is opted into the Beta Resources coming in v3.0 - or explicitly opted into v3.0.

func UseDynamicTestLocations

func UseDynamicTestLocations() bool

UseDynamicTestLocations returns whether or not the Acceptance Test data should use dynamic values for test locations

In practice this means that of the available test locations, the primary, secondary and ternary locations will change dynamically for each test

The primary benefit of this is to distribute the tests across Azure Regions, to improve the overall reliability. In time this'll become the default value.

It's possible to opt into this by setting `ARM_PROVIDER_DYNAMIC_TEST` to `true`.

Types

type ApiManagementFeatures

type ApiManagementFeatures struct {
	PurgeSoftDeleteOnDestroy bool
}

type CognitiveAccountFeatures

type CognitiveAccountFeatures struct {
	PurgeSoftDeleteOnDestroy bool
}

type KeyVaultFeatures

type KeyVaultFeatures struct {
	PurgeSoftDeleteOnDestroy    bool
	RecoverSoftDeletedKeyVaults bool
}

type LogAnalyticsWorkspaceFeatures

type LogAnalyticsWorkspaceFeatures struct {
	PermanentlyDeleteOnDestroy bool
}

type NetworkFeatures

type NetworkFeatures struct {
	RelaxedLocking bool
}

type ResourceGroupFeatures

type ResourceGroupFeatures struct {
	PreventDeletionIfContainsResources bool
}

type TemplateDeploymentFeatures

type TemplateDeploymentFeatures struct {
	DeleteNestedItemsDuringDeletion bool
}

type UserFeatures

type UserFeatures struct {
	ApiManagement          ApiManagementFeatures
	CognitiveAccount       CognitiveAccountFeatures
	VirtualMachine         VirtualMachineFeatures
	VirtualMachineScaleSet VirtualMachineScaleSetFeatures
	KeyVault               KeyVaultFeatures
	Network                NetworkFeatures
	TemplateDeployment     TemplateDeploymentFeatures
	LogAnalyticsWorkspace  LogAnalyticsWorkspaceFeatures
	ResourceGroup          ResourceGroupFeatures
}

func Default

func Default() UserFeatures

type VirtualMachineFeatures

type VirtualMachineFeatures struct {
	DeleteOSDiskOnDeletion     bool
	GracefulShutdown           bool
	SkipShutdownAndForceDelete bool
}

type VirtualMachineScaleSetFeatures

type VirtualMachineScaleSetFeatures struct {
	ForceDelete               bool
	RollInstancesWhenRequired bool
	ScaleToZeroOnDelete       bool
}

Jump to

Keyboard shortcuts

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