Skip to content

Commit 7cbe047

Browse files
committed
chore: fix some typos and serialization per recommendations
Signed-off-by: Matthew H. Irby <[email protected]>
1 parent befcbde commit 7cbe047

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/v1alpha1/issuer_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ type HealthCheckConfig struct {
290290

291291
// The interval at which to health check the issuer when healthy. Defaults to 1 minute. Must not be less than "30s".
292292
// +kubebuilder:validation:Optional
293-
Interval *metav1.Duration `json:"interval"`
293+
Interval *metav1.Duration `json:"interval,omitempty"`
294294
}
295295

296296
func init() {

internal/controller/issuer_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ func (r *IssuerReconciler) getHealthCheckInterval(log logr.Logger, issuer comman
171171
}
172172

173173
if spec.HealthCheck.Interval == nil {
174-
log.Info(fmt.Sprintf("health check spec value is nil, using default: %d seconds", defaultInterval))
174+
log.Info(fmt.Sprintf("health check interval is nil, using default: %d seconds", defaultInterval))
175175
return r.DefaultHealthCheckInterval, nil
176176
}
177177

0 commit comments

Comments
 (0)