app

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientFromKubeconfig

func NewClientFromKubeconfig(kubeconfig []byte) (client.Client, error)

NewClientFromKubeconfig creates a new Kubernetes client for the given kubeconfig.

func NewClientFromTarget

func NewClientFromTarget(target lsv1alpha1.Target) (client.Client, error)

NewClientFromKubeconfig creates a new Kubernetes client for the kubeconfig in the given target.

func NewCommandVirtualGarden

func NewCommandVirtualGarden() *cobra.Command

NewCommandVirtualGarden creates a *cobra.Command object with default parameters.

Types

type OperationType

type OperationType string

OperationType is a string alias.

const (
	// OperationTypeReconcile is a  constant for the RECONCILE operation type.
	OperationTypeReconcile OperationType = "RECONCILE"
	// OperationTypeDelete is a constant for the DELETE operation type.
	OperationTypeDelete OperationType = "DELETE"
)

type Options

type Options struct {
	// OperationType is the operation to be executed.
	OperationType OperationType
	// ImportsPath is the path to the imports file.
	ImportsPath string
	// ExportsPath is the path to the exports file. The parent directory exists; the export file itself must be created.
	// The format of the exports file must be json or yaml.
	ExportsPath string
	// ComponentDescriptorPath is the path to the component descriptor file.
	ComponentDescriptorPath string
}

Options has all the context and parameters needed to run the virtual garden deployer.

func NewOptions

func NewOptions() *Options

NewOptions returns a new options structure.

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for a specific Scheduler to the specified FlagSet.

func (*Options) InitializeFromEnvironment

func (o *Options) InitializeFromEnvironment()

InitializeFromEnvironment initializes the options from the found environment variables.

Jump to

Keyboard shortcuts

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