diff --git a/pkg/operator/credentialsrequest/credentialsrequest_controller.go b/pkg/operator/credentialsrequest/credentialsrequest_controller.go index 986c0645c..3c83dad8c 100644 --- a/pkg/operator/credentialsrequest/credentialsrequest_controller.go +++ b/pkg/operator/credentialsrequest/credentialsrequest_controller.go @@ -808,11 +808,16 @@ func (r *ReconcileCredentialsRequest) Reconcile(ctx context.Context, request rec cr.Status.LastSyncInfrastructureResourceVersion = infra.ResourceVersion } + resourceVersion := "unset" + if infra != nil && infra.ResourceVersion != nil { + resourceVersion = *infra.ResourceVersion + } + log.WithFields(log.Fields{ "NOT cloudCredsSecretUpdated": cloudCredsSecretUpdated, "NOT isStale": isStale, "NOT isInfrastructureUpdated": isInfrastructureUpdated, - "infraResourceVersion": infra.ResourceVersion, + "infraResourceVersion": resourceVersion, "infraResourceVersionSynced": cr.Status.LastSyncInfrastructureResourceVersion, "name": cr.Name, "hasRecentlySynced": hasRecentlySynced,