annotations

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Enabled           = "kubernetes-git-sync/enabled"
	TargetNamespace   = "kubernetes-git-sync/target-namespace"
	SopsAgeRecipients = "kubernetes-git-sync/sops-age-recipients"
	GitSecret         = "kubernetes-git-sync/git-secret"
	GitFilepath       = "kubernetes-git-sync/git-filepath" //TODO add multiple paths
	GitBranch         = "kubernetes-git-sync/git-branch"   //TODO No work
	GitUrl            = "kubernetes-git-sync/git-url"
	GitCommitOptions  = "kubernetes-git-sync/git-commit-options"
)

Variables

This section is empty.

Functions

func GetAgeRecipients

func GetAgeRecipients(object ObjectMeta) string

func GetGitBranch

func GetGitBranch(object ObjectMeta) string

func GetGitCloneOptions

func GetGitCloneOptions(object ObjectMeta) *git.CloneOptions

func GetGitCommitOptions

func GetGitCommitOptions(obj ObjectMeta) *git.CommitOptions

func GetGitFilepath

func GetGitFilepath(object ObjectMeta) string

func GetGitSecret

func GetGitSecret(object ObjectMeta) types.NamespacedName

func GetTargetNamespace added in v0.0.2

func GetTargetNamespace(object ObjectMeta) string

func HasAgeRecipients

func HasAgeRecipients(object ObjectMeta) bool

func IsEnabled

func IsEnabled(object ObjectMeta) bool

Types

type ObjectMeta

type ObjectMeta interface {
	GetLabels() map[string]string
	GetAnnotations() map[string]string
}

Jump to

Keyboard shortcuts

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