stas

package
v0.8.24 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 48 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageShortSHALength     = 5
	KubernetesNameMaxLength = validation.DNS1123SubdomainMaxLength
)

Variables

View Source
var FieldValidationStrict = fieldValidationStrict{}

FieldValidationStrict instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Functions

func NewConditionsPatch added in v0.8.15

func NewConditionsPatch(existingConditions []metav1.Condition, conditions ...*metav1ac.ConditionApplyConfiguration) []*metav1ac.ConditionApplyConfiguration

func SetControllerReference added in v0.8.15

func SetControllerReference(owner metav1.Object, controlled *metav1ac.ObjectMetaApplyConfiguration, scheme *runtime.Scheme) error

SetControllerReference sets owner as a Controller OwnerReference on controlled. This is used for garbage collection of the controlled object and for reconciling the owner object on changes to controlled (with a Watch + EnqueueRequestForOwner).

func SetOwnerReference added in v0.8.12

func SetOwnerReference(owner metav1.Object, owned *metav1ac.ObjectMetaApplyConfiguration, scheme *runtime.Scheme) error

SetOwnerReference is a helper method to make sure the given object contains an object reference to the object provided. This allows you to declare that owner has a dependency on the object without specifying it as a controller. If a reference to the same object already exists, it'll be overwritten with the newly provided version.

Types

type ContainerImageScanReconciler

type ContainerImageScanReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	config.Config
	EventChan chan event.GenericEvent
}

ContainerImageScanReconciler reconciles a ContainerImageScan object.

func (*ContainerImageScanReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*ContainerImageScanReconciler) SetupWithManager

func (r *ContainerImageScanReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Indexer

type Indexer struct{}

func (*Indexer) SetupWithManager

func (r *Indexer) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the indexer with the Manager.

type PodReconciler

type PodReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	config.Config
	WorkloadKinds []schema.GroupVersionKind
}

func (*PodReconciler) SetupWithManager

func (r *PodReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controllers with the Manager.

type RescanTrigger added in v0.4.0

type RescanTrigger struct {
	client.Client
	config.Config
	EventChan     chan event.GenericEvent
	CheckInterval time.Duration
}

func (*RescanTrigger) Start added in v0.4.0

func (r *RescanTrigger) Start(ctx context.Context) error

type ScanJobReconciler

type ScanJobReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	config.Config
	pod.LogsReader
}

ScanJobReconciler reconciles a finished image scan Job object.

func (*ScanJobReconciler) SetupWithManager

func (r *ScanJobReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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