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