csi-addons

command
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

csi-addons admin and testing tool

The csi-addons executable connects to a socket where the CSI-driver listens for CSI-Addons requests. The tool can be executed in the side-car that is running alongside CSI-driver containers.

When running the tool with the -h parameter, it displays the help text, similar to:

$ kubectl exec -c csi-addons csi-backend-nodeplugin -- csi-addons -h
  -cidrs string
        comma separated list of cidrs
  -clusterid string
        clusterID
  -drivername string
        name of the CSI driver
  -endpoint string
        CSI-Addons endpoint (default "unix:///tmp/csi-addons.sock")
  -legacy
        use legacy format for old Kubernetes versions
  -operation string
        csi-addons operation
  -persistentvolume string
        name of the PersistentVolume
  -secret namespace/name
        kubernetes secret in the format namespace/name
  -stagingpath string
        staging path (default "/var/lib/kubelet/plugins/kubernetes.io/csi/")
  -version
        print Version details

The following operations are supported:
 - ControllerReclaimSpace
 - NodeReclaimSpace
 - GetIdentity
 - GetCapabilities
 - Probe
 - NetworkFence
 - NetworkUnFence
 - EnableVolumeReplication
 - DisableVolumeReplication
 - PromoteVolume
 - DemoteVolume
 - ResyncVolume
 - GetVolumeReplicationInfo

The above command assumes the running csi-backend-nodeplugin Pod has the quay.io/csiaddons/k8s-sidecar as a container named csi-addons. Executing the csi-addons -h command then shows the help text.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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