config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	*csiv1.Config
}

Config is the wrapper for csiv1.Config type

func New

func New(c *csiv1.Config) *Config

New returns a wrapper for csiv1.Config

func (*Config) GetNodeAgentImage

func (c *Config) GetNodeAgentImage() string

func (*Config) GetNodeAgentPodLabels

func (c *Config) GetNodeAgentPodLabels() labels.Set

func (*Config) SetDefaults

func (c *Config) SetDefaults() bool

SetDefaults set defaults if omitted in spec, returns true means CR should be updated on cluster. Replace it with kubernetes native default setter when it is available. https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#defaulting

func (*Config) Unwrap

func (c *Config) Unwrap() *csiv1.Config

Unwrap returns the csiv1.Config object

func (*Config) Validate

func (c *Config) Validate() error

Validate checks if the spec is valid Replace it with kubernetes native default setter when it is available. https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#validation

Jump to

Keyboard shortcuts

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