populate

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 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 CreateRequirementsMap added in v0.1.25

func CreateRequirementsMap(req *jxcore.RequirementsConfig) (map[string]interface{}, error)

CreateRequirementsMap creates the requirements map thats used to send into

func CreateSecretValue added in v0.1.44

func CreateSecretValue(backendType v1alpha1.BackendType, values []editor.PropertyValue, annotations, labels map[string]string, secretType corev1.SecretType) secretstore.SecretValue

func GetExternalSecretLocation

func GetExternalSecretLocation(extsec *v1.ExternalSecret) string

func GetSecretKey added in v0.1.15

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

func GetSecretStore

func GetSecretStore(backendType v1alpha1.BackendType) secretstore.Type

func KubectlExecRunner

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

func ResolveResourceNames

func ResolveResourceNames(name, 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
	DisableLoadResults  bool
	Generators          map[string]generators.Generator
	HelmSecretValues    map[string]map[string]string
	Requirements        *jxcore.RequirementsConfig
	BootSecretNamespace string
	DisableSecretFolder bool
}

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