Documentation ¶
Index ¶
- Constants
- Variables
- type Credentials
- func ReadCredentialsFromSecretRef(ctx context.Context, client client.Client, secretRef *corev1.SecretReference) (*Credentials, error)
- func ReadDNSCredentialsFromSecretRef(ctx context.Context, client client.Client, secretRef *corev1.SecretReference) (*Credentials, error)
- func ReadSecretCredentials(secret *corev1.Secret, allowDNSKeys bool) (*Credentials, error)
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" // CSISnapshotValidationWebhookImageName is the name of the csi-snapshot-validation-webhook image. CSISnapshotValidationWebhookImageName = "csi-snapshot-validation-webhook" // 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" // CSISnapshotValidation is the constant for the name of the csi-snapshot-validation-webhook component. CSISnapshotValidation = "csi-snapshot-validation" // 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" // CloudProviderConfigName is the name of the configmap containing the cloud provider config. CloudProviderConfigName = "cloud-provider-config" )
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") // UsernamePrefix is a constant for the username prefix of components deployed by AWS. UsernamePrefix = extensionsv1alpha1.SchemeGroupVersion.Group + ":" + Name + ":" )
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
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.
Click to show internal directories.
Click to hide internal directories.