config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInventoryInfo

func GetInventoryInfo(path string) (*unstructured.Unstructured, error)

func InventoryPath

func InventoryPath(path string) string

Types

type Config

type Config struct {

	// Template string; must be a valid k8s resource.
	Template string
	// Package directory argument; must be valid directory.
	Dir string
	// Namespace for inventory object; Kform is fixed to kform-system.
	Namespace string
	// Inventory object label value; must be a valid k8s label value.
	InventoryID string
	// contains filtered or unexported fields
}

InitOptions contains the fields necessary to generate a inventory object template ConfigMap.

func New

func New(ioStreams genericclioptions.IOStreams) *Config

func (*Config) Complete

func (r *Config) Complete(ctx context.Context, path string) error

func (*Config) Run

func (r *Config) Run(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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