config

package
v1.2.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HarborClassKey            = "classname"
	ReconciliationKey         = "max-concurrent-reconciliation"
	NetworkPoliciesEnabledKey = "network-policies"
	CtrlConfigDirectoryKey    = "controllers-config-directory"
	TemplateDirectoryKey      = "template-directory"
)
View Source
const (
	DefaultPriority = 5

	DefaultConcurrentReconcile    = 1
	DefaultHarborClass            = ""
	DefaultNetworkPoliciesEnabled = false
	DefaultConfigDirectory        = "/etc/harbor-operator"
	DefaultTemplateDirectory      = DefaultConfigDirectory + "/templates"

	// DefaultImagePullPolicy specifies the policy to image pulls.
	DefaultImagePullPolicy = corev1.PullIfNotPresent
)

Variables

View Source
var ErrNotReady = errors.New("configuration not ready")

Functions

func GetBool added in v1.0.1

func GetBool(configStore *configstore.Store, name string, defaultValue bool) (bool, error)

func GetInt added in v1.0.1

func GetInt(configStore *configstore.Store, name string, defaultValue int) (int, error)

func GetItem added in v1.0.1

func GetItem(configStore *configstore.Store, name string, defaultValue string) (configstore.Item, error)

func GetString added in v1.0.1

func GetString(configStore *configstore.Store, name string, defaultValue string) (string, error)

func IsNotFound

func IsNotFound(err error, key string) bool

func NewConfigWithDefaults

func NewConfigWithDefaults() *configstore.Store

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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