deployment

package
v0.32.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Client     *client.Kubernetesp
	Clientset  kubernetes.Interface
	Restconfig *rest.Config
	Opts       *DeployOpts

	log15.Logger
	// contains filtered or unexported fields
}

Controller defines a deployment controller and it's options

func (*Controller) HasSynced

func (c *Controller) HasSynced() bool

HasSynced is required for cache.Controller interface.

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, stopCh <-chan struct{})

Run starts SharedInformer watching for pods, and sends their keys to workqueue. StopCh used to send interrupt.

type DeployOpts

type DeployOpts struct {
	ContainerImage  string             // docker hub image
	TempMountPath   string             // where to mount the binary
	Files           []client.FilePair  // Files to tar across
	BinaryPath      string             // full path to the binary to be executed
	BinaryArgs      []string           // arguments to the binary
	ConfigMapName   string             // name of the configmap to execute
	ConfigMountPath string             // path to the configmap
	RequiredPorts   []int              // ports that require forwarding
	AttachCmdOpts   *client.CmdOptions // relevant options for the attachCmd
	ResourcePath    string             // Path to the resource file kubeCmd creates
	Logger          log15.Logger
}

DeployOpts specify the options for the deployment

Jump to

Keyboard shortcuts

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