controllers

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0, Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLOUD_PROVIDER_INIT_TAINT_KEY = "node.cloudprovider.kubernetes.io/uninitialized"
	TAINT_NOSCHEDULE_KEY          = "NoSchedule"
	VDO_NODE_LABEL_KEY            = "vdo.vmware.com/vdoconfig"
	CPI_DEPLOYMENT_NAME           = "vsphere-cloud-controller-manager"
	DEPLOYMENT_NS                 = "kube-system"
	CPI_DAEMON_POD_KEY            = "k8s-app"
	SECRET_NAME                   = "cpi-global-secret"
	CONFIGMAP_NAME                = "cloud-config"
	CSI_DAEMONSET_NAME            = "vsphere-csi-node"
	CSI_DAEMON_POD_KEY            = "app"
	CSI_SECRET_NAME               = "vsphere-config-secret"
	CSI_FSS_CONFIGMAP             = "internal-feature-states.csi.vsphere.vmware.com"
	CSI_NODE_ID                   = "use-csinode-id"
	CSI_SECRET_CONFIG_FILE        = "/tmp/csi-vsphere.conf"
	COMPAT_MATRIX_CONFIG_URL      = "MATRIX_CONFIG_URL"
	COMPAT_MATRIX_CONFIG_CONTENT  = "MATRIX_CONFIG_CONTENT"

	CM_NAME        = "compat-matrix-config"
	CM_URL_KEY     = "versionConfigURL"
	CM_CONTENT_KEY = "versionConfigContent"

	CSI_DRIVER_REG_PATH = "DRIVER_REG_SOCK_PATH"
)
View Source
const VC_CREDS_SECRET_NS = "kube-system"

Variables

View Source
var (
	SessionFn     = session.GetOrCreate
	GetVMFn       = session.GetVMByIP
	VDO_NAMESPACE = ""
	CsiNamespace  = "kube-system"
)

Functions

This section is empty.

Types

type StatusType

type StatusType string

type VDOConfigReconciler

type VDOConfigReconciler struct {
	client.Client
	Logger                    logr.Logger
	Scheme                    *runtime.Scheme
	ClientConfig              *restclient.Config
	CsiDeploymentYamls        []string
	CpiDeploymentYamls        []string
	CurrentCSIDeployedVersion string
	CurrentCPIDeployedVersion string
}

VDOConfigReconciler reconciles a VDOConfig object

func (*VDOConfigReconciler) CheckCompatAndRetrieveSpec

func (r *VDOConfigReconciler) CheckCompatAndRetrieveSpec(ctx vdocontext.VDOContext, req ctrl.Request, vdoConfig *vdov1alpha1.VDOConfig, matrixConfig string) error

func (*VDOConfigReconciler) FetchCpiDeploymentYamls

func (r *VDOConfigReconciler) FetchCpiDeploymentYamls(ctx vdocontext.VDOContext, matrix CompatMatrix, vSphereVersions []string, k8sVersion string) error

func (*VDOConfigReconciler) FetchCsiDeploymentYamls

func (r *VDOConfigReconciler) FetchCsiDeploymentYamls(ctx vdocontext.VDOContext, matrix CompatMatrix, vSphereVersions []string, k8sVersion string) error

func (*VDOConfigReconciler) FetchVsphereVersions

func (r *VDOConfigReconciler) FetchVsphereVersions(vdoctx vdocontext.VDOContext, req ctrl.Request, vdoConfig *vdov1alpha1.VDOConfig) (versions []string, err error)

func (*VDOConfigReconciler) Fetchk8sVersions

func (r *VDOConfigReconciler) Fetchk8sVersions(vdoctx vdocontext.VDOContext) (string, error)

func (*VDOConfigReconciler) Reconcile

func (r *VDOConfigReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*VDOConfigReconciler) SetupWithManager

func (r *VDOConfigReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type VsphereCloudConfigReconciler

type VsphereCloudConfigReconciler struct {
	client.Client
	Logger logr.Logger
	Scheme *runtime.Scheme
}

VsphereCloudConfigReconciler reconciles a VsphereCloudConfig object

func (*VsphereCloudConfigReconciler) Reconcile

func (*VsphereCloudConfigReconciler) SetupWithManager

func (r *VsphereCloudConfigReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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