injector

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToRawYAML

func ToRawYAML(injector Injector, sidecar v1.Container) ([]byte, error)

Calls the given injector's Inject method and returns the result as a YAML bytes.

Types

type Injector

type Injector interface {
	// Injects the given sidecar into all valid Deployment Objects and returns the result as a list of unstructured objects.
	Inject(sidecar v1.Container) ([]*unstructured.Unstructured, error)
	// Returns a list of namespaces that contain injectable objects.
	// This can be used to generate other Kuberenetes objects that need to be created in the same namespace.
	InjectableNamespaces() ([]string, error)
}

func FromYAML

func FromYAML(filePath string) (Injector, error)

Constructs a new Injector with Kubernetes objects derived from the given file path.

Jump to

Keyboard shortcuts

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