cmd

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArtifacts added in v0.4.0

func CreateArtifacts(paths []string, generate bool, skipValidation bool, args ...string) error

GenerateArtifacts either writes to file or uses kubectl/oc to deploy. TODO: Refactor into two separate functions (remove `generate bool`).

func GetAllYAMLFiles

func GetAllYAMLFiles(paths []string) ([]string, error)

GetAllYAMLFiles if path in argument is directory get all *.yml and *.yaml files in that directory. If path is file just add it to output list as it is.

func RunClusterCommand added in v0.6.0

func RunClusterCommand(args []string, data []byte, useOC bool) error

runClusterCommand calls kubectl or oc binary. Boolean flag useOC controls if oc or kubectl will be used

func SubstituteVariables added in v0.3.0

func SubstituteVariables(kedgeFileContent []byte) ([]byte, error)

SubstituteVariables handles environment variable substitution Expression [[ NAME ]] or [[NAME]] is used for defining variables. [[NAME]] will be replaced with the value from NAME environment variable. Returns new byte array with all variables replaced with values. If no matching variable is found, an error is raised.

Types

This section is empty.

Jump to

Keyboard shortcuts

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