config

package
v0.16.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelKey                = "infra.weave.works/branch-planner"
	LabelValue              = "true"
	LabelPRIDKey            = "infra.weave.works/pr-id"
	LabelPrimaryResourceKey = "infra.weave.works/primary-resource"
	AnnotationCommentIDKey  = "infra.weave.works/comment-id"
	AnnotationErrorRevision = "infra.weave.works/error-revision"

	// DefaultNamespace will be used if RUNTIME_NAMESPACE is not defined.
	DefaultNamespace = "flux-system"
)

Variables

This section is empty.

Functions

func ObjectKeyFromName

func ObjectKeyFromName(configMapName string) (client.ObjectKey, error)

func RuntimeNamespace

func RuntimeNamespace() string

Types

type Config

type Config struct {
	Resources       []client.ObjectKey
	SecretNamespace string
	SecretName      string
	Labels          map[string]string
}

func ReadConfig

func ReadConfig(ctx context.Context, clusterClient client.Client, ref types.NamespacedName) (Config, error)

Jump to

Keyboard shortcuts

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