Skip to content

Commit

Permalink
change err name
Browse files Browse the repository at this point in the history
  • Loading branch information
hashiblaum committed Oct 31, 2024
1 parent 8a3d351 commit 5725e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/hcpvaultsecretsapp_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (r *HCPVaultSecretsAppReconciler) Reconcile(ctx context.Context, req ctrl.R
d, err := parseDurationString(o.Spec.RefreshAfter, ".spec.refreshAfter", r.MinRefreshAfter)
if err != nil {
logger.Error(err, "Field validation failed")
r.Recorder.Eventf(o, corev1.EventTypeWarning, consts.ReasonVaultStaticSecret,
r.Recorder.Eventf(o, corev1.EventTypeWarning, consts.ReasonHVSStaticSecret,

Check failure on line 131 in controllers/hcpvaultsecretsapp_controller.go

View workflow job for this annotation

GitHub Actions / build-pre-checks

undefined: consts.ReasonHVSStaticSecret
"Field validation failed, err=%s", err)
return ctrl.Result{}, err
}
Expand Down Expand Up @@ -189,7 +189,7 @@ func (r *HCPVaultSecretsAppReconciler) Reconcile(ctx context.Context, req ctrl.R
dynamicSecrets, err := getHVSDynamicSecrets(ctx, c, o.Spec.AppName, renewPercent, shadowSecrets)
if err != nil {
logger.Error(err, "Get Dynamic Secrets", "appName", o.Spec.AppName)
r.Recorder.Eventf(o, corev1.EventTypeWarning, consts.ReasonVaultDynamicSecret,
r.Recorder.Eventf(o, corev1.EventTypeWarning, consts.ReasonHVSDynamicSecret,

Check failure on line 192 in controllers/hcpvaultsecretsapp_controller.go

View workflow job for this annotation

GitHub Actions / build-pre-checks

undefined: consts.ReasonHVSDynamicSecret
"Failed to get hvs dynamic secrets: %s", err)
entry, _ := r.BackOffRegistry.Get(req.NamespacedName)
return ctrl.Result{
Expand Down

0 comments on commit 5725e4c

Please sign in to comment.