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