populate

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 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 added in v0.1.0

func GetExternalSecretLocation(extsec *v1.ExternalSecret) string

func GetSecretStore added in v0.1.0

func GetSecretStore(backendType v1alpha1.BackendType) secretstore.SecretStoreType

func KubectlExecRunner added in v0.0.178

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

func ResolveResourceNames added in v0.0.172

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 added in v0.0.87

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

EvaluateTemplate evaluates the go template to create the value

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) Validate added in v0.0.195

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