configmap

package
v1.14.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ContourCfgMapName is the name of Contour's ConfigMap resource.
	// [TODO] danehans: Remove and use contour.Name when
	// https://github.com/projectcontour/contour/issues/2122 is fixed.
	ContourCfgMapName = "contour"
)

Variables

This section is empty.

Functions

func Delete added in v1.14.0

func Delete(ctx context.Context, cli client.Client, cfg *Config) error

Delete deletes a ConfigMap for the provided cfg, if the configured owner labels exist.

func Ensure added in v1.14.0

func Ensure(ctx context.Context, cli client.Client, cfg *Config) error

Ensure ensures that a ConfigMap exists for the given cfg.

Types

type Config added in v1.14.0

type Config struct {
	// Namespace is the namespace of the ConfigMap.
	Namespace string
	// Name is the name of the ConfigMap. Defaults to "contour".
	Name string
	// Labels are labels to apply to the ConfigMap.
	Labels map[string]string
	// Contour contains Contour configuration parameters.
	Contour contourConfig
}

Config contains everything needed to manage a ConfigMap.

func NewCfgForContour added in v1.14.0

func NewCfgForContour(contour *operatorv1alpha1.Contour) *Config

NewCfgForContour returns a ConfigMap Config with default fields set for contour.

func NewCfgForGateway added in v1.14.0

func NewCfgForGateway(gw *gatewayv1alpha1.Gateway) *Config

NewCfgForGateway returns a ConfigMap Config with default fields set for gw.

func NewConfig added in v1.14.0

func NewConfig() *Config

NewConfig returns a Config with default fields set.

Jump to

Keyboard shortcuts

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