mirror of
https://github.com/morten-olsen/homelab-nuclei-operator.git
synced 2026-02-08 02:16:23 +01:00
feat: support rescans and backoffs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user