credentials

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AzurePublicCloud            = "AzurePublicCloud"
	AzureChinaCloud             = "AzureChinaCloud"
	ResourceGroupPrefix         = "azurefile-csi-driver-test-"
	TempAzureCredentialFilePath = "/tmp/azure.json"
)

Variables

This section is empty.

Functions

func DeleteAzureCredentialFile

func DeleteAzureCredentialFile() error

DeleteAzureCredentialFile deletes the temporary Azure credential file

Types

type Config

type Config struct {
	Creds FromProw
}

Config is used in Prow to store Azure credentials https://github.com/kubernetes/test-infra/blob/master/kubetest/azure.go#L116-L118

type Credentials

type Credentials struct {
	Cloud                        string
	TenantID                     string
	SubscriptionID               string
	AADClientID                  string
	AADClientSecret              string
	ResourceGroup                string
	Location                     string
	CloudProviderBackoff         bool
	CloudProviderBackoffRetries  int
	CloudProviderBackoffDuration int
}

Credentials is used in Azure File CSI Driver to store Azure credentials

func CreateAzureCredentialFile

func CreateAzureCredentialFile(isAzureChinaCloud bool) (*Credentials, error)

CreateAzureCredentialFile creates a temporary Azure credential file for Azure File CSI driver tests and returns the credentials

type FromProw

type FromProw struct {
	ClientID           string
	ClientSecret       string
	TenantID           string
	SubscriptionID     string
	StorageAccountName string
	StorageAccountKey  string
}

FromProw is used in Prow to store Azure credentials https://github.com/kubernetes/test-infra/blob/master/kubetest/azure.go#L107-L114

Jump to

Keyboard shortcuts

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