config

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 10 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"
	DefaultTokenSecretName = "branch-planner-token"
)

Variables

This section is empty.

Functions

func GenerateUniqueHash

func GenerateUniqueHash(components ...string) string

func ObjectKeyFromName

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

func PullRequestObjectName

func PullRequestObjectName(name, prID string) string

func RuntimeNamespace

func RuntimeNamespace() string

func SourceName

func SourceName(tfName, sourceName, prID string) 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, configMapObjectKey types.NamespacedName) (Config, error)

Jump to

Keyboard shortcuts

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