vsphere

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the name of the vSphere provider controller.
	Name = "provider-vsphere"

	// MachineControllerManagerImageName is the name of the MachineControllerManager image.
	MachineControllerManagerImageName = "machine-controller-manager"
	// MCMProviderVsphereImageName is the namne of the vSphere provider plugin image.
	MCMProviderVsphereImageName = "machine-controller-manager-provider-vsphere"
	// CloudControllerImageName is the name of the external vSphere CloudProvider image.
	CloudControllerImageName = "vsphere-cloud-controller-manager"

	// CSIAttacherImageName is the name of the CSI attacher image.
	CSIAttacherImageName = "csi-attacher"
	// CSITopologyLabelsDomain is the domain name used to identify  topology labels applied on the node by vSphere CSI driver.
	// See [VSphere CSI Driver Config]
	//
	// [VSphere CSI Driver Config]: https://github.com/kubernetes-sigs/vsphere-csi-driver/blob/a14797738b474d331af96a62783ec94e1c24f53e/pkg/common/config/config.go#L87
	CSITopologyLabelsDomain = "topology.csi.vmware.com"
	// CSITopologyRegionKey is the topology key denoting the region.
	CSITopologyRegionKey = CSITopologyLabelsDomain + "/" + "k8s-region"
	// CSITopologyZoneKey is the topology key denoting the zone.
	CSITopologyZoneKey = CSITopologyLabelsDomain + "/" + "k8s-zone"
	// 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"
	// CSIDriverControllerImageName is the name of the CSI driver controller plugin image.
	CSIDriverControllerImageName = "vsphere-csi-driver-controller"
	// CSIDriverNodeImageName is the name of the CSI driver node plugin image.
	CSIDriverNodeImageName = "vsphere-csi-driver-node"
	// CSIDriverSyncerImageName is the name of the vSphere CSI Syncer image.
	CSIDriverSyncerImageName = "vsphere-csi-driver-syncer"
	// CSIResizerImageName is the name of the csi-resizer image.
	CSIResizerImageName = "csi-resizer"
	// CSISnapshotterImageName is the name of the csi-snapshotter image.
	CSISnapshotterImageName = "csi-snapshotter"
	// LivenessProbeImageName is the name of the liveness-probe image.
	LivenessProbeImageName = "liveness-probe"
	// CSISnapshotControllerImageName is the name of the csi-snapshot-controller image.
	CSISnapshotControllerImageName = "csi-snapshot-controller"
	// CSISnapshotValidationWebhookImageName is the name of the csi-snapshot-validation-webhook image.
	CSISnapshotValidationWebhookImageName = "csi-snapshot-validation-webhook"

	// Host is a constant for the key in a cloud provider secret holding the VSphere host name
	Host = "vsphereHost"
	// Username is a constant for the key in a cloud provider secret holding the VSphere user name (optional, for all components)
	Username = "vsphereUsername"
	// Password is a constant for the key in a cloud provider secret holding the VSphere password (optional, for all components)
	Password = "vspherePassword"
	// Username is a constant for the key in a cloud provider secret holding the VSphere user name (specific for MachineControllerManager)
	UsernameMCM = "vsphereUsernameMCM"
	// Password is a constant for the key in a cloud provider secret holding the VSphere password (specific for MachineControllerManager)
	PasswordMCM = "vspherePasswordMCM"
	// Username is a constant for the key in a cloud provider secret holding the VSphere user name (specific for CloudControllerManager)
	UsernameCCM = "vsphereUsernameCCM"
	// Password is a constant for the key in a cloud provider secret holding the VSphere password (specific for CloudControllerManager)
	PasswordCCM = "vspherePasswordCCM"
	// Username is a constant for the key in a cloud provider secret holding the VSphere user name (specific for CSI)
	UsernameCSI = "vsphereUsernameCSI"
	// Password is a constant for the key in a cloud provider secret holding the VSphere password (specific for CSI)
	PasswordCSI = "vspherePasswordCSI"
	// InsecureSSL is a constant for the key in a cloud provider secret holding the boolean flag to allow insecure HTTPS connections to the VSphere host
	InsecureSSL = "vsphereInsecureSSL"

	// NSXTUsername is a constant for the key in a cloud provider secret holding the NSX-T user name with role 'Enterprise Admin' (optional, for all components)
	NSXTUsername = "nsxtUsername"
	// Password is a constant for the key in a cloud provider secret holding the NSX-T password for user with role 'Enterprise Admin'
	NSXTPassword = "nsxtPassword"

	// CloudProviderConfig is the name of the configmap containing the cloud provider config.
	CloudProviderConfig = "cloud-provider-config"
	// CloudProviderConfigMapKey is the key storing the cloud provider config as value in the cloud provider configmap.
	CloudProviderConfigMapKey = "cloudprovider.conf"
	// SecretCSIVsphereConfig is a constant for the secret containing the CSI vSphere config.
	SecretCSIVsphereConfig = "csi-vsphere-config"
	// 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"

	// CloudControllerManagerName is the constant for the name of the CloudController deployed by the control plane controller.
	CloudControllerManagerName = "cloud-controller-manager"
	// CloudControllerManagerServerName is the constant for the name of the CloudController deployed by the control plane controller.
	CloudControllerManagerServerName = "cloud-controller-manager-server"
	// CSIProvisionerName is a constant for the name of the csi-provisioner component.
	CSIProvisionerName = "csi-provisioner"
	// CSIAttacherName is a constant for the name of the csi-attacher component.
	CSIAttacherName = "csi-attacher"
	// CSIResizerName is a constant for the name of the csi-resizer component.
	CSIResizerName = "csi-resizer"
	// CSISnapshotterName is a constant for the name of the csi-snapshotter component.
	CSISnapshotterName = "csi-snapshotter"
	// CSISnapshotControllerName is a constant for the name of the csi-snapshot-controller component.
	CSISnapshotControllerName = "csi-snapshot-controller"
	// VsphereCSIControllerName is a constant for the name of the vsphere-csi-controller component.
	VsphereCSIControllerName = "vsphere-csi-controller"
	// VsphereCSISyncerName is a constant for the name of the vsphere-csi-syncer component.
	VsphereCSISyncerName = "csi-syncer"
	// CSINodeName is a constant for the chart name for a CSI node deployment in the shoot.
	CSINodeName = "vsphere-csi-node"
	// CSIDriverName is a constant for the name of the csi-driver component.
	CSIDriverName = "csi-driver"
	// CSISnapshotValidation is the constant for the name of the csi-snapshot-validation-webhook component.
	CSISnapshotValidation = "csi-snapshot-validation"
)
View Source
const Type = "vsphere"

Type is the type of resources managed by the vSphere 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")

	// UsernamePrefix is a constant for the username prefix of components deployed by OpenStack.
	UsernamePrefix = extensionsv1alpha1.SchemeGroupVersion.Group + ":" + Name + ":"
)

Functions

This section is empty.

Types

type Credentials

type Credentials struct {
	// contains filtered or unexported fields
}

Credentials contains the necessary vSphere credential information.

func ExtractCredentials

func ExtractCredentials(secret *corev1.Secret) (*Credentials, error)

ExtractCredentials generates a credentials object for a given provider secret.

func GetCredentials

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

GetCredentials computes for a given context and infrastructure the corresponding credentials object.

func (*Credentials) NSXT added in v0.11.0

func (c *Credentials) NSXT() UserPass

func (*Credentials) VsphereCCM

func (c *Credentials) VsphereCCM() UserPass

func (*Credentials) VsphereCSI

func (c *Credentials) VsphereCSI() UserPass

func (*Credentials) VsphereMCM

func (c *Credentials) VsphereMCM() UserPass

type UserPass

type UserPass struct {
	Username string
	Password string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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