options

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {

	// NodeID is the name of the node which is hosting this driver instance.
	NodeID string

	// DriverName is the name of this CSI driver which will be shared with
	// the Kubelet.
	DriverName string

	// Endpoint is the endpoint that the driver will connect to the Kubelet.
	Endpoint string

	// DataRoot is the directory that the driver will write and mount volumes
	// from.
	DataRoot string

	// UseTokenRequest declares that the CSI driver will use the empty audience
	// token request for creating CertificateRequests. Requires the token request
	// to be defined on the CSIDriver manifest.
	UseTokenRequest bool

	// Logr is the shared base logger.
	Logr logr.Logger

	// RestConfig is the shared base rest config to connect to the Kubernetes
	// API.
	RestConfig *rest.Config

	// CMClient is a rest client for interacting with cert-manager resources.
	CMClient cmclient.Interface
	// contains filtered or unexported fields
}

Options are the main options for the driver. Populated via processing command line flags.

func New

func New() *Options

func (*Options) Complete

func (o *Options) Complete() error

func (*Options) Prepare

func (o *Options) Prepare(cmd *cobra.Command) *Options

Jump to

Keyboard shortcuts

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