populate

package
v0.0.174 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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
	Results             []*secretfacade.SecretPair
	CommandRunner       cmdrunner.CommandRunner
	NoWait              bool
	Generators          map[string]generators.Generator
	Requirements        *config.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) (string, error)

EvaluateTemplate evaluates the go template to create the value

func (*Options) Run

func (o *Options) Run() error

Run implements the command

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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