populate

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultBackoff = k8swait.Backoff{
		Steps:    5,
		Duration: 2 * time.Second,
		Factor:   2.0,
		Jitter:   0.1,
	}
)

Functions

func GetExternalSecretLocation

func GetExternalSecretLocation(extsec *v1.ExternalSecret) string

func GetSecretKey added in v0.1.15

func GetSecretKey(backendType v1alpha1.BackendType, externalSecretName string, keyName string) string

func GetSecretStore

func GetSecretStore(backendType v1alpha1.BackendType) secretstore.SecretStoreType

func KubectlExecRunner

func KubectlExecRunner(podName string, sidecar string, runner cmdrunner.CommandRunner) func(c *cmdrunner.Command) (string, error)

func ResolveResourceNames

func ResolveResourceNames(name string, currentNamespace string) (string, string)

ResolveResourceNames if the secret name contains a dot then assume its namespace.name otherwise return the name in the current namespace

Types

type Options

type Options struct {
	secretfacade.Options
	WaitDuration        time.Duration
	HelmSecretFolder    string
	Backoff             *k8swait.Backoff
	Results             []*secretfacade.SecretPair
	CommandRunner       cmdrunner.CommandRunner
	QuietCommandRunner  cmdrunner.CommandRunner
	NoWait              bool
	Generators          map[string]generators.Generator
	HelmSecretValues    map[string]map[string]string
	Requirements        *jxcore.RequirementsConfig
	BootSecretNamespace string
}

Options the options for the command

func NewCmdPopulate

func NewCmdPopulate() (*cobra.Command, *Options)

NewCmdPopulate creates a command object for the command

func (*Options) EvaluateTemplate

func (o *Options) EvaluateTemplate(namespace, secretName, property, templateText string, retryTemplate bool) (string, error)

EvaluateTemplate evaluates the go template to create the value

func (*Options) PopulateLoop added in v0.1.20

func (o *Options) PopulateLoop(results []*secretfacade.SecretPair, waited map[string]bool) error

PopulateLoop populates any external secret stores

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) Validate

func (o *Options) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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