config

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Scheme = scheme.Scheme
)

Functions

This section is empty.

Types

type Config

type Config struct {
	BackupCaBundlePath string
	SystemCaBundlePath string
	// contains filtered or unexported fields
}

Config is populated from the cluster's Secret or ConfigMap and sets behavior of kapp-controller. NOTE because config may be populated from a Secret use caution if you're tempted to serialize.

func GetConfig

func GetConfig(client kubernetes.Interface) (*Config, error)

GetConfig populates the Config struct from k8s resources. GetConfig prefers a secret named kcConfigName but if that does not exist falls back to a configMap of same name.

func (*Config) Apply

func (gc *Config) Apply() error

func (*Config) ShouldSkipTLSForAuthority added in v0.30.3

func (gc *Config) ShouldSkipTLSForAuthority(candidateAuthority string) bool

ShouldSkipTLSForAuthority compares a candidate host or host:port against a stored set of allow-listed authorities. the allow-list is built from the user-facing flag `dangerousSkipTLSVerify`. Note that in some cases the allow-list may contain ports, so the function name could also be ShouldSkipTLSForDomainAndPort Note that "authority" is defined in: https://www.rfc-editor.org/rfc/rfc3986#section-3 to mean "host and port"

type Reconciler added in v0.36.0

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

Reconciler is responsible for reconciling Kapp-controllers config.

func NewReconciler added in v0.36.0

func NewReconciler(coreClient kubernetes.Interface, log logr.Logger) *Reconciler

NewReconciler constructs new Reconciler.

func (*Reconciler) AttachWatches added in v0.36.0

func (r *Reconciler) AttachWatches(controller controller.Controller, ns string) error

AttachWatches configures watches needed for reconciler to reconcile the kapp-controller Config.

func (*Reconciler) Reconcile added in v0.36.0

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile gets the current config from the cluster and applies any changes.

Jump to

Keyboard shortcuts

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