manifest

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClientConfig

func BuildClientConfig(kubeconfig, context string) (*rest.Config, error)

BuildClientConfig is a helper function that builds client config from a kubeconfig filepath. It overrides the current context with the one provided (empty to use default).

This is a modified version of k8s.io/client-go/tools/clientcmd/BuildConfigFromFlags with the difference that it loads default configs if not running in-cluster.

func ParseK8SYAMLToIstioControlPlaneSpec

func ParseK8SYAMLToIstioControlPlaneSpec(yml string) (*v1alpha2.IstioControlPlaneSpec, *schema.GroupVersionKind, error)

ParseK8SYAMLToIstioControlPlaneSpec parses a YAML string IstioControlPlane CustomResource and unmarshals in into an IstioControlPlaneSpec object. It returns the object and an API group/version with it.

func RenderToDir

func RenderToDir(manifests name.ManifestMap, outputDir string, dryRun, verbose bool) error

RenderToDir writes manifests to a local filesystem directory tree.

Types

type ComponentApplyOutput

type ComponentApplyOutput struct {
	// Stdout is the stdout output.
	Stdout string
	// Stderr is the stderr output.
	Stderr string
	// Error is the error output.
	Err error
	// Manifest is the manifest applied to the cluster.
	Manifest string
}

ComponentApplyOutput is used to capture errors and stdout/stderr outputs for a command, per component.

type CompositeOutput

type CompositeOutput map[name.ComponentName]*ComponentApplyOutput

func ApplyAll

func ApplyAll(manifests name.ManifestMap, version version.Version, dryRun, verbose, wait bool, timeout time.Duration) (CompositeOutput, error)

ApplyAll applies all given manifests using kubectl client.

Jump to

Keyboard shortcuts

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