namespace

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespaceToPreserveIfShouldKeepIt added in v0.7.0

func GetNamespaceToPreserveIfShouldKeepIt(node *yaml.RNode, path string) string

func MoveToTargetNamespace added in v0.7.0

func MoveToTargetNamespace(rootDir, originalPath, namespace, oldNamespace string, osUtils osTools) error

func ShouldPreserveNamespace added in v0.7.0

func ShouldPreserveNamespace(node *yaml.RNode, path string) bool

func UpdateNamespaceInYamlFiles

func UpdateNamespaceInYamlFiles(rootDir, dir, ns string, filter *kyamls.Filter, shouldMoveFiles bool) ([]string, error)

UpdateNamespaceInYamlFiles updates the namespace in yaml files

Types

type Options

type Options struct {
	kyamls.Filter
	Dir        string
	ClusterDir string
	Namespace  string
	DirMode    bool
}

Options the options for the command

func NewCmdUpdateNamespace

func NewCmdUpdateNamespace() (*cobra.Command, *Options)

NewCmdUpdateNamespace creates a command object for the command

func (*Options) Run

func (o *Options) Run() error

Run implements the command

func (*Options) RunDirMode

func (o *Options) RunDirMode() error

Jump to

Keyboard shortcuts

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