Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagEngineImage = "engine-image" FlagManagerImage = "manager-image" FlagServiceAccount = "service-account" FlagKubeConfig = "kube-config" )
View Source
const ( LonghornFlexvolumeDriver = "longhorn-flexvolume-driver" EnvFlexvolumeDir = "FLEXVOLUME_DIR" EnvKubeletRootDir = "KUBELET_ROOT_DIR" FlagManagerURL = "manager-url" FlagDriver = "driver" FlagDriverCSI = "csi" FlagDriverFlexvolume = "flexvolume" FlagFlexvolumeDir = "flexvolume-dir" FlagKubeletRootDir = "kubelet-root-dir" FlagCSIAttacherImage = "csi-attacher-image" FlagCSIProvisionerImage = "csi-provisioner-image" FlagCSIDriverRegistrarImage = "csi-driver-registrar-image" FlagCSIProvisionerName = "csi-provisioner-name" EnvCSIAttacherImage = "CSI_ATTACHER_IMAGE" EnvCSIProvisionerImage = "CSI_PROVISIONER_IMAGE" EnvCSIDriverRegistrarImage = "CSI_DRIVER_REGISTRAR_IMAGE" EnvCSIProvisionerName = "CSI_PROVISIONER_NAME" FlagCSIAttacherReplicaCount = "csi-attacher-replica-count" FlagCSIProvisionerReplicaCount = "csi-provisioner-replica-count" EnvCSIAttacherReplicaCount = "CSI_ATTACHER_REPLICA_COUNT" EnvCSIProvisionerReplicaCount = "CSI_PROVISIONER_REPLICA_COUNT" )
View Source
const ( DetectPodMaxPolls = 120 ArgFlexvolumePluginDir = "volume-plugin-dir" ArgKubeletRootDir = "root-dir" ArgNameFlexvolumePluginDir = "--volume-plugin-dir" ArgNameKubeletRootDir = "--root-dir" ArgNameK3SDataDir = "--data-dir" ArgShortNameK3SDataDir = "-d" DefaultFlexvolumeDir = "/usr/libexec/kubernetes/kubelet-plugins/volume/exec/" DefaultKubeletRootDir = "/var/lib/kubelet" DefaultK3SDataDir = "/var/lib/rancher/k3s" KubeletDetectionPodName = "discover-proc-kubelet-cmdline" K3SDetectionPodName = "discover-proc-k3s-cmdline" GetKubeletCmdlineScript = `` /* 453-byte string literal not displayed */ GetK3SCmdlineScript = `` /* 602-byte string literal not displayed */ )
View Source
const ( FlagFromVersion = "from-version" FlagToVersion = "to-version" )
View Source
const ( FlagForce = "force" FlagNamespace = "namespace" EnvLonghornNamespace = "LONGHORN_NAMESPACE" )
View Source
const ( FlagSnapshotName = "snapshot-name" FlagLabels = "labels" FlagRetain = "retain" FlagBackupTarget = "backuptarget" )
Variables ¶
View Source
var VERSION = "v0.3.0"
Functions ¶
func CSICommand ¶
func DeployDriverCmd ¶
func PostUpgradeCmd ¶ added in v0.3.3
func SnapshotCmd ¶
func UninstallCmd ¶ added in v0.3.2
Types ¶
type DaemonSetOps ¶
type DaemonSetOps struct {
// contains filtered or unexported fields
}
func (*DaemonSetOps) Create ¶
func (ops *DaemonSetOps) Create(name string, d *appsv1beta2.DaemonSet) (*appsv1beta2.DaemonSet, error)
func (*DaemonSetOps) Delete ¶
func (ops *DaemonSetOps) Delete(name string) error
func (*DaemonSetOps) Get ¶
func (ops *DaemonSetOps) Get(name string) (*appsv1beta2.DaemonSet, error)
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
type NameWithTimestamp ¶
Click to show internal directories.
Click to hide internal directories.