feat: support rescans and backoffs

This commit is contained in:
Morten Olsen
2025-12-12 12:07:34 +01:00
parent 8073d0044b
commit 67014b3d16
7 changed files with 278 additions and 14 deletions

View File

@@ -191,6 +191,15 @@ type NucleiScanStatus struct {
// ObservedGeneration is the generation observed by the controller
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// RetryCount tracks the number of consecutive availability check retries
// Used for exponential backoff when waiting for targets
// +optional
RetryCount int `json:"retryCount,omitempty"`
// LastRetryTime is when the last availability check retry occurred
// +optional
LastRetryTime *metav1.Time `json:"lastRetryTime,omitempty"`
}
// +kubebuilder:object:root=true

View File

@@ -185,6 +185,10 @@ func (in *NucleiScanStatus) DeepCopyInto(out *NucleiScanStatus) {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.LastRetryTime != nil {
in, out := &in.LastRetryTime, &out.LastRetryTime
*out = (*in).DeepCopy()
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NucleiScanStatus.