envmapping

package
v1.12.7 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Config

Documentation

Index

Constants

View Source
const (
	Name                 = "rigdev.env_mapping"
	AnnotationEnvMapping = "plugin.rig.dev/env-mapping"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationSource

type AnnotationSource struct {
	// Container name default to capsule name.
	Container string `json:"container,omitempty"`
	// Optional ConfigMap reference.
	ConfigMap string `json:"configMap,omitempty"`
	// Optional Secret reference.
	Secret string `json:"secret,omitempty"`
	// Mappings ENV:KEY
	Mappings map[string]string `json:"mappings"`
}

type AnnotationValue

type AnnotationValue struct {
	Sources []AnnotationSource `json:"sources"`
}

type Config

type Config struct{}

Configuration for the env_mapping plugin +kubebuilder:object:root=true

type Plugin

type Plugin struct {
	plugin.NoWatchObjectStatus
}

func (*Plugin) ComputeConfig added in v1.12.0

func (p *Plugin) ComputeConfig(ctx context.Context, req pipeline.CapsuleRequest, logger hclog.Logger) (string, error)

func (*Plugin) Initialize

func (p *Plugin) Initialize(_ plugin.InitializeRequest) error

func (*Plugin) Run

Jump to

Keyboard shortcuts

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