kustomize

package
v2.1.155 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KustomizeCLI

type KustomizeCLI struct {
	Runner util.Commander
}

KustomizeCLI implements common kustomize actions based on kustomize CLI

func NewKustomizeCLI

func NewKustomizeCLI() *KustomizeCLI

NewKustomizeCLI creates a new KustomizeCLI instance configured to use the provided kustomize CLI in the given current working directory

func (*KustomizeCLI) ContainsKustomizeConfig

func (k *KustomizeCLI) ContainsKustomizeConfig(dir string) bool

ContainsKustomizeConfig finds out if there is any kustomize resource in the cwd or subdirectories

func (*KustomizeCLI) FindKustomizationYamlPaths

func (k *KustomizeCLI) FindKustomizationYamlPaths(dir string) []string

FindKustomizationYamlPaths looks for the kustomization.yaml i.e. kustomize resources in present and sub-directories

func (*KustomizeCLI) Version

func (k *KustomizeCLI) Version(extraArgs ...string) (string, error)

Version executes the Kustomize version command and returns its output

type Kustomizer

type Kustomizer interface {
	Version(extraArgs ...string) (string, error)
	ContainsKustomizeConfig(dir string) bool
	FindKustomizationYamlPaths(dir string) (resource []string)
}

Kustomizer defines common kustomize actions used within Jenkins X

Jump to

Keyboard shortcuts

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