azure

package
v0.0.0-...-6783019 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TenantIDConfigItem         = "tenant-id"
	ClientIDConfigItem         = "client-id"
	AADHostConfigItem          = "aad-host"
	SubscriptionIDConfigItem   = "subscription-id"
	SubscriptionNameConfigItem = "subscription-name"
	ResourceGroupConfigItem    = "resource-group"
	AdminConfigItem            = "admin"
	ClusterNameConfigItem      = "cluster-name"
	LoginTypeConfigItem        = "login-type"
	AzureEnvironmentConfigItem = "azure-env"
	ServerFqdnTypeConfigItem   = "server-fqdn-type"
)
View Source
const (
	ProviderName = "aks"
	UsageExample = `` /* 302-byte string literal not displayed */

)
View Source
const (
	AKSAADServerAppID = "6dae42f8-4368-4678-94ff-3960e28e3630"
)

Variables

View Source
var (
	ErrUnsupportedIdentity  = errors.New("unsupported identity, oidc.Identity orazure.AuthorizerIdentity required")
	ErrNoKubeconfigs        = errors.New("no kubeconfigs available for the managed cluster")
	ErrNoSubscriptions      = errors.New("no subscriptions found")
	ErrSubscriptionNameOrID = errors.New("subscription name and id cannot be both supplied")
	ErrSubscriptionNotFound = errors.New("subscription not found")
	ErrTokenNeedsAD         = errors.New("the 'token' login type requires using aad idp-protocol")
)
View Source
var (
	// EnvironmentPublicCloud is the general Azure public cloud
	EnvironmentPublicCloud = Environment("public")
	// EnvironmentChinaCloud is the public Azure cloud in China
	EnvironmentChinaCloud = Environment("china")
	// EnvironmentUSGovCloud is the US Government specific Azure cloud
	EnvironmentUSGovCloud = Environment("usgov")
	// EnvironmentStackCloud is the Azure stack cloud
	EnvironmentStackCloud = Environment("stack")
)
View Source
var (
	// LoginTypeDeviceCode is for using a device code to login
	LoginTypeDeviceCode = LoginType("devicecode")
	// LoginTypeServicePrincipal is for using a service principal to login
	LoginTypeServicePrincipal = LoginType("spn")
	// LoginTypeResourceOwnerPassword is for using the resource owner password type
	LoginTypeResourceOwnerPassword = LoginType("ropc")
	// LoginTypeManagedServiceIdentity is for using the managed service identity to login
	LoginTypeManagedServiceIdentity = LoginType("msi")
	// LoginTypeToken is for an embedded token login type
	LoginTypeToken = LoginType("token")
	// LoginTypeAzureCli is for an using the azurecli to login
	LoginTypeAzureCli = LoginType("azurecli")
)

Functions

func ConfigurationItems

func ConfigurationItems(scopeTo string) (config.ConfigurationSet, error)

ConfigurationItems returns the configuration items for this provider

func New

New will create a new Azure discovery plugin

Types

type Environment

type Environment string

Environment is a type that represents an Azure environment

type LoginType

type LoginType string

LoginType is a type that denotes the type of user login

Jump to

Keyboard shortcuts

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