config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 10 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 {
	Address        string
	CertFile       string
	KeyFile        string
	MetricsAddress string
	Provider       string

	// Configuration for security validation
	AppBlacklist       []string
	CatalogBlacklist   []string
	GroupWhitelist     []string
	NamespaceBlacklist []string
	UserWhitelist      []string

	// Configuration for PSP removal
	PSPConfigFile string
	PSPPatches    []ConfigPatch

	Logger    micrologger.Logger
	K8sClient k8sclient.Interface
}

func Parse

func Parse() (Config, error)

type ConfigPatch added in v0.22.0

type ConfigPatch struct {
	// AppName is used to match against App CR's .ObjectMeta.Name
	AppName string `yaml:"app_name"`
	// ConfigMapSuffix is a suffix of patch ConfigMap's name
	ConfigMapSuffix string `yaml:"configmap_suffix,omitempty"`
	// Patch contains Helm values to use as App's extraConfig
	Values string `yaml:"values"`
}

Jump to

Keyboard shortcuts

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