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 ¶
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
Click to show internal directories.
Click to hide internal directories.