clusterconfigmap

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name is the identifier of the resource.
	Name = "clusterconfigmap"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsWrongType

func IsWrongType(err error) bool

IsWrongType asserts wrongTypeError.

Types

type Config

type Config struct {
	// Dependencies.
	GetClusterConfigFunc     func(obj interface{}) (v1alpha1.ClusterGuestConfig, error)
	GetClusterObjectMetaFunc func(obj interface{}) (metav1.ObjectMeta, error)
	GetWorkerCountFunc       func(obj interface{}) (int, error)
	K8sClient                kubernetes.Interface
	Logger                   micrologger.Logger

	// Settings.
	CalicoAddress      string
	CalicoPrefixLength string
	ClusterIPRange     string
	Provider           string
}

Config represents the configuration used to create a new clusterConfigMap resource.

type StateGetter

type StateGetter struct {
	// contains filtered or unexported fields
}

Resource implements the clusterConfigMap resource.

func New

func New(config Config) (*StateGetter, error)

New creates a new configured clusterConfigMap resource.

func (*StateGetter) GetCurrentState

func (r *StateGetter) GetCurrentState(ctx context.Context, obj interface{}) ([]*corev1.ConfigMap, error)

func (*StateGetter) GetDesiredState

func (r *StateGetter) GetDesiredState(ctx context.Context, obj interface{}) ([]*corev1.ConfigMap, error)

func (*StateGetter) Name

func (r *StateGetter) Name() string

Jump to

Keyboard shortcuts

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