configmap

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WcpClusterConfigMapNamespace is the namespace of the wcp-cluster-config
	// ConfigMap.
	WcpClusterConfigMapNamespace = "kube-system"

	// WcpClusterConfigMapName is the name of the wcp-cluster-config ConfigMap.
	WcpClusterConfigMapName = "wcp-cluster-config"

	// WcpClusterConfigFileName is the name of the key specified in the wcp-cluster-config ConfigMap containing the cluster config.
	WcpClusterConfigFileName = "wcp-cluster-config.yaml"
)

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(ctx *context.ControllerManagerContext, mgr manager.Manager) error

AddToManager adds this package's controller to the provided manager.

func NewWcpClusterConfigMap

func NewWcpClusterConfigMap(wcpClusterConfig WcpClusterConfig) (*corev1.ConfigMap, error)

Types

type Reconciler

type Reconciler struct {
	client.Client
	Context  goctx.Context
	Logger   logr.Logger
	Recorder record.Recorder
	// contains filtered or unexported fields
}

func NewReconciler

func NewReconciler(
	ctx goctx.Context,
	client client.Client,
	logger logr.Logger,
	recorder record.Recorder,
	vmOpNamespace string,
	provider provider) *Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx goctx.Context, req ctrl.Request) (ctrl.Result, error)

type WcpClusterConfig

type WcpClusterConfig struct {
	VcPNID string `yaml:"vc_pnid"`
	VcPort string `yaml:"vc_port"`
}

func ParseWcpClusterConfig

func ParseWcpClusterConfig(wcpClusterCfgData map[string]string) (*WcpClusterConfig, error)

ParseWcpClusterConfig builds and returns the cluster config.

Jump to

Keyboard shortcuts

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