native

package
v0.0.0-...-9cd73b5 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KubeApply

func KubeApply(trcKubeDeploymentConfig *TrcKubeConfig, driverConfig *eUtils.DriverConfig) error

KubeApply applies an in memory yaml file to a kubernetes cluster

func KubeCtl

func KubeCtl(trcKubeDeploymentConfig *TrcKubeConfig, driverConfig *eUtils.DriverConfig) error

Types

type TrcKubeConfig

type TrcKubeConfig struct {
	// .kube/config
	KubeConfigBytes []byte
	// .kube/config is parsed into these fields...
	RestConfig *rest.Config
	ApiConfig  map[string]*clientcmdapi.Config

	// config context stuff..
	KubeContext *TrcKubeContext
	// Current kubectl directive... configmap, secret, apply, etc...
	KubeDirective *TrcKubeDirective

	PipeOS billy.File // Where to send output.
}

func InitTrcKubeConfig

func InitTrcKubeConfig(trcshConfig *capauth.TrcShConfig, config *core.CoreConfig) (*TrcKubeConfig, error)

func LoadFromKube

func LoadFromKube(kubeConfigBytes []byte, config *core.CoreConfig) (*TrcKubeConfig, error)

type TrcKubeContext

type TrcKubeContext struct {
	User      string
	Cluster   string
	Context   string
	Namespace string
}

func ParseTrcKubeContext

func ParseTrcKubeContext(trcKubeContext *TrcKubeContext, deployArgs []string) *TrcKubeContext

type TrcKubeDirective

type TrcKubeDirective struct {
	Action       string // Probably not used...
	Object       string
	Type         string
	Name         string
	FromFilePath string
	DryRun       bool
}

func ParseTrcKubeDeployDirective

func ParseTrcKubeDeployDirective(trcKubeDirective *TrcKubeDirective, deployArgs []string) *TrcKubeDirective

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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