Skip to content

Commit

Permalink
fix: failed to lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sophon-zt committed Oct 20, 2023
1 parent 8b1e33c commit 309d45a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/apps/configuration/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func initConfiguration(resourceCtx *intctrlutil.ResourceCtx, synthesizedComponen
}).
Prepare().
UpdateConfiguration(). // reconcile Configuration
Configuration(). // sync Configuration
Configuration(). // sync Configuration
CreateConfigTemplate().
UpdateConfigRelatedObject().
UpdateConfigurationStatus().
Expand Down
4 changes: 2 additions & 2 deletions controllers/apps/configuration/reconcile_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ func syncImpl(fetcher *Task,
Sync().
Complete()

status.UpdateRevision = revision
if err != nil {
status.Message = cfgutil.ToPointer(err.Error())
status.Phase = appsv1alpha1.CMergeFailedPhase
} else {
status.Message = nil
status.Phase = appsv1alpha1.CMergedPhase
}
return
status.UpdateRevision = revision
return err
}

func syncStatus(configMap *corev1.ConfigMap, status *appsv1alpha1.ConfigurationItemDetailStatus) (err error) {
Expand Down

0 comments on commit 309d45a

Please sign in to comment.