actipinner

package module
v0.0.0-...-25fc7ea Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

README

acti-pinner-go

Go Reference Go Report Card Go Version GitHub License Docker Image Version Docker Image Version

Build

To build the acti-pinner binary locally, pick one of:

$ make build/containerd
$ make build/dockershim

OCI Images

To build all images:

$ make OWNER=... image

Modify the OWNER variable accordingly (it defaults to $USER).

To build the image for a specific tag:

$ make OWNER=... image/containerd
$ make OWNER=... image/dockershim

Push to Local Registry

You may pass in a LOCAL_REGISTRY variable to point to your local registry's HOST:PORT.

Apart from that, as above, to push them all:

$ make OWNER=... LOCAL_REGISTRY=... push-local

Or to push the image of a specific build tag:

$ make OWNER=... LOCAL_REGISTRY=... push-local/containerd
$ make OWNER=... LOCAL_REGISTRY=... push-local/dockershim

Push to Public Registry

You may push them to a public registry one-by-one; e.g.:

$ make OWNER=... push-public/containerd

The PUBLIC_REGISTRY variable contains the registry's URL, and defaults to docker.io.

Documentation

Index

Constants

View Source
const (
	ActiLabel = "acti"
)

Variables

This section is empty.

Functions

func SetupSignalHandlers

func SetupSignalHandlers() (stopCh <-chan struct{})

SetupSignalHandlers registered for SIGTERM and SIGINT. A stop channel is returned which is closed on one of these signals. If a second signal is caught, the program is terminated with exit code 1.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(
	actiNamespace string,
	nodeName string,
	podName string,
	klient kubernetes.Interface,
	actiKlient acticlientset.Interface,
	podInformer coreinformers.PodInformer,
	actiNodeInformer actinformers.ActiNodeInformer,
) (controller *Controller, err error)

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh <-chan struct{}) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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