kube

package
v0.0.1-alpha.5 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 16 Imported by: 14

Documentation

Index

Constants

View Source
const (
	NamespaceStarboard = "starboard"
	// ServiceAccountPolaris the name of the ServiceAccount used to run Polaris scan Jobs.
	ServiceAccountPolaris = "polaris"
	ConfigMapPolaris      = "polaris"
)
View Source
const (
	LabelResourceKind  = "starboard.resource.kind"
	LabelResourceName  = "starboard.resource.name"
	LabelContainerName = "starboard.container.name"

	LabelScannerName   = "starboard.scanner.name"
	LabelScannerVendor = "starboard.scanner.vendor"

	LabelHistoryLatest = "starboard.history.latest"
)
View Source
const (
	AnnotationHistoryLimit = "starboard.history.limit"
)

Variables

This section is empty.

Functions

func NewRunnableJob

func NewRunnableJob(clientset kubernetes.Interface, spec *batch.Job) runner.Runnable

NewRunnableJob constructs a new Runnable task which runs a Kubernetes Job with the given spec and waits for the completion or failure.

Types

type CRManager

type CRManager interface {
	Init() error
	Cleanup() error
}

TODO This is no longer CRManager as we're creating other resources, such as ClusterRoles and ConfigMaps CRManager defined methods for managing Kubernetes custom resources.

func NewCRManager

func NewCRManager(clientset kubernetes.Interface, clientsetext extapi.ApiextensionsV1beta1Interface) CRManager

NewCRManager constructs a CRManager with the given Kubernetes interface.

type Workload

type Workload struct {
	Namespace string
	Kind      WorkloadKind
	Name      string
}

func (Workload) String

func (t Workload) String() string

type WorkloadKind

type WorkloadKind int

WorkloadKind is an enum defining the different kinds of Kubernetes workloads.

const (
	WorkloadKindUnknown WorkloadKind = iota
	WorkloadKindPod
	WorkloadKindReplicaSet
	WorkloadKindReplicationController
	WorkloadKindDeployment
	WorkloadKindStatefulSet
	WorkloadKindDaemonSet
	WorkloadKindCronJob
	WorkloadKindJob
)

func WorkloadKindFromString

func WorkloadKindFromString(s string) (WorkloadKind, error)

func (WorkloadKind) String

func (t WorkloadKind) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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