Documentation
¶
Index ¶
- func CreateJob(ctx context.Context, c client.Client, namespacedName types.NamespacedName) (ctrl.Result, error)
- func EndDelayZAPJob(ctx context.Context, c client.Client, namespacedName types.NamespacedName) (ctrl.Result, error)
- func JobReady(ctx context.Context, c client.Client, namespacedName types.NamespacedName) (ctrl.Result, error)
- func WaitForJobCompletion(ctx context.Context, c client.Client, namespacedName types.NamespacedName) (ctrl.Result, error)
- func WaitForJobReady(ctx context.Context, c client.Client, namespacedName types.NamespacedName) (ctrl.Result, error)
- type ZAProxyReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateJob ¶
func CreateJob(ctx context.Context, c client.Client, namespacedName types.NamespacedName) (ctrl.Result, error)
CreateJob creates a ZAP instance for a ZAProxy resource as a Job.
func EndDelayZAPJob ¶
func EndDelayZAPJob(ctx context.Context, c client.Client, namespacedName types.NamespacedName) (ctrl.Result, error)
EndDelayZAPJob handles requests to end the ZAP automation plan delay job for a ZAProxy resource.
func JobReady ¶
func JobReady(ctx context.Context, c client.Client, namespacedName types.NamespacedName) (ctrl.Result, error)
JobReady checks if a ZAP instance job is ready.
Types ¶
type ZAProxyReconciler ¶
type ZAProxyReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder }
ZAProxyReconciler reconciles a ZAProxy object
func (*ZAProxyReconciler) Reconcile ¶
Reconcile is part of the main Kubernetes reconciliation loop. It compares the desired state specified by the ZAProxy object against the actual cluster state. It then performs operations to align the cluster state with the desired state. Specifically, it ensures that a ConfigMap and a PersistentVolumeClaim (PVC) exist for each ZAProxy.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*ZAProxyReconciler) SetupWithManager ¶
func (r *ZAProxyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.