Documentation ¶
Index ¶
- Constants
- Variables
- func NewConditionsPatch(existingConditions []metav1.Condition, ...) []*metav1ac.ConditionApplyConfiguration
- func SetControllerReference(owner metav1.Object, controlled *metav1ac.ObjectMetaApplyConfiguration, ...) error
- func SetOwnerReference(owner metav1.Object, owned *metav1ac.ObjectMetaApplyConfiguration, ...) error
- type ContainerImageScanReconciler
- type Indexer
- type PodReconciler
- type RescanTrigger
- type ScanJobReconciler
Constants ¶
const ( ImageShortSHALength = 5 KubernetesNameMaxLength = validation.DNS1123SubdomainMaxLength )
Variables ¶
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 ¶
func (r *ContainerImageScanReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 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 ScanJobReconciler ¶
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.