alicloud

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AccessKeyID is the data field in a secret where the access key id is stored at.
	AccessKeyID = "accessKeyID"
	// AccessKeySecret is the data field in a secret where the access key secret is stored at.
	AccessKeySecret = "accessKeySecret"
)
View Source
const (
	// Name is the name of the Alicloud provider.
	Name = "provider-alicloud"

	// InfraRelease is the name of the alicloud-infra chart.
	InfraRelease = "alicloud-infra"

	// MachineControllerManagerImageName is the name of the MachineControllerManager image.
	MachineControllerManagerImageName = "machine-controller-manager"
	// MachineControllerManagerProviderAlicloudImageName is the name of the MachineControllerManagerProviderAlicloud image.
	MachineControllerManagerProviderAlicloudImageName = "machine-controller-manager-provider-alicloud"
	// CloudControllerManagerImageName is the name of the CloudControllerManager image.
	CloudControllerManagerImageName = "alicloud-controller-manager"
	// CSIAttacherImageName is the name of the CSI attacher image.
	CSIAttacherImageName = "csi-attacher"
	// CSINodeDriverRegistrarImageName is the name of the CSI driver registrar image.
	CSINodeDriverRegistrarImageName = "csi-node-driver-registrar"
	// CSIProvisionerImageName is the name of the CSI provisioner image.
	CSIProvisionerImageName = "csi-provisioner"
	// CSISnapshotterImageName is the name of the CSI snapshotter image.
	CSISnapshotterImageName = "csi-snapshotter"
	// CSISnapshotControllerImageName is the name of the CSI snapshot controller image.
	CSISnapshotControllerImageName = "csi-snapshot-controller"
	// CSIResizerImageName is the name of the CSI resizer image.
	CSIResizerImageName = "csi-resizer"
	// CSILivenessProbeImageName is the name of the CSI liveness probe image.
	CSILivenessProbeImageName = "csi-liveness-probe"

	// CSIPluginImageName is the name of the CSI plugin image.
	CSIPluginImageName = "csi-plugin-alicloud"

	// BucketName is a constant for the key in a backup secret that holds the bucket name.
	// The bucket name is written to the backup secret by Gardener as a temporary solution.
	// TODO In the future, the bucket name should come from a BackupBucket resource (see https://github.com/gardener/gardener/blob/master/docs/proposals/02-backupinfra.md)
	BucketName = "bucketName"

	// MachineControllerManagerName is a constant for the name of the machine-controller-manager.
	MachineControllerManagerName = "machine-controller-manager"
	// MachineControllerManagerVpaName is the name of the VerticalPodAutoscaler of the machine-controller-manager deployment.
	MachineControllerManagerVpaName = "machine-controller-manager-vpa"
	// MachineControllerManagerMonitoringConfigName is the name of the ConfigMap containing monitoring stack configurations for machine-controller-manager.
	MachineControllerManagerMonitoringConfigName = "machine-controller-manager-monitoring-config"
	// BackupSecretName is the name of the secret containing the credentials for storing the backups of Shoot clusters.
	BackupSecretName = "etcd-backup"
	// StorageEndpoint is the data field in a secret where the storage endpoint is stored at.
	StorageEndpoint = "storageEndpoint"
	//CloudControllerManagerName is the a constant for the name of the CloudController.
	CloudControllerManagerName = "cloud-controller-manager"
	// CSIPluginController is the a constant for the name of the csi-plugin-controller Deployment in the Seed.
	CSIPluginController = "csi-plugin-controller"
	// CSISnapshotControllerName is a constant for the name of the csi-snapshot-controller Deployment in the Seed.
	CSISnapshotControllerName = "csi-snapshot-controller"

	// CRDVolumeSnapshotClasses is a constant for the name of VolumeSnapshotClasses CRD.
	CRDVolumeSnapshotClasses = "volumesnapshotclasses.snapshot.storage.k8s.io"
	// CRDVolumeSnapshotContents is a constant for the name of VolumeSnapshotContents CRD.
	CRDVolumeSnapshotContents = "volumesnapshotcontents.snapshot.storage.k8s.io"
	// CRDVolumeSnapshots is a constant for the name of CRDVolumeSnapshots CRD.
	CRDVolumeSnapshots = "volumesnapshots.snapshot.storage.k8s.io"

	// ServiceLinkedRoleForNATGateway is a constant for the name of service linked role of NAT gateway.
	ServiceLinkedRoleForNATGateway = "AliyunServiceRoleForNatgw"
	// ServiceForNATGateway is a constant for the name of service of NAT gateway.
	ServiceForNATGateway = "nat.aliyuncs.com"

	//ErrorCodeNoPermission is a constant for the error code of no permission.
	ErrorCodeNoPermission = "NoPermission"
	// ErrorCodeRoleEntityNotExist is a constant for the error code of role entity not exist.
	ErrorCodeRoleEntityNotExist = "EntityNotExist.Role"
	// ErrorCodeDomainRecordNotBelongToUser is a constant for the error code of domain record not belong to user.
	ErrorCodeDomainRecordNotBelongToUser = "DomainRecordNotBelongToUser"

	// DefaultDNSRegion is the default region to be used if a region is not specified in the DNS secret
	// or in the DNSRecord resource.
	DefaultDNSRegion = "cn-shanghai"
)
View Source
const DNSType = "alicloud-dns"

DNSType is the type of resources managed by the DNSRecord Alicloud actuator.

View Source
const Type = "alicloud"

Type is the type of resources managed by the Alicloud actuator.

Variables

View Source
var (
	// ChartsPath is the path to the charts
	ChartsPath = filepath.Join("charts")
	// InternalChartsPath is the path to the internal charts
	InternalChartsPath = filepath.Join(ChartsPath, "internal")
	// InfraChartPath is the path to the alicloud-infra chart.
	InfraChartPath = filepath.Join(InternalChartsPath, "alicloud-infra")
)

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	AccessKeyID     string
	AccessKeySecret string
}

Credentials are the credentials to access the Alicloud API.

func ReadCredentialsFromSecretRef

func ReadCredentialsFromSecretRef(ctx context.Context, client client.Client, secretRef *corev1.SecretReference) (*Credentials, error)

ReadCredentialsFromSecretRef reads the credentials from the secret referred by given <secretRef>.

func ReadDNSCredentialsFromSecretRef added in v1.26.0

func ReadDNSCredentialsFromSecretRef(ctx context.Context, client client.Client, secretRef *corev1.SecretReference) (*Credentials, error)

ReadDNSCredentialsFromSecretRef reads the credentials from the DNS secret referred by given <secretRef>.

func ReadSecretCredentials

func ReadSecretCredentials(secret *corev1.Secret, allowDNSKeys bool) (*Credentials, error)

ReadSecretCredentials reads the Credentials from the given secret.

Directories

Path Synopsis
mock
Package client is a generated GoMock package.
Package client is a generated GoMock package.
ros

Jump to

Keyboard shortcuts

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