@@ -979,16 +979,22 @@ func walkChartsAndDeploy(ctx context.Context, c client.Client, clusterSummary *c
979979 return releaseReports , chartDeployed , err
980980 }
981981
982- err = updateValueHashOnHelmChartSummary (ctx , instantiatedChart , clusterSummary , mgmtResources , logger )
982+ valueHash , err : = updateValueHashOnHelmChartSummary (ctx , instantiatedChart , clusterSummary , mgmtResources , logger )
983983 if err != nil {
984984 return releaseReports , chartDeployed , err
985985 }
986986
987987 releaseReports = append (releaseReports , * report )
988988
989989 if currentRelease != nil {
990- logger .V (logs .LogInfo ).Info (fmt .Sprintf ("release %s/%s (version %s) status: %s" ,
991- currentRelease .ReleaseNamespace , currentRelease .ReleaseName , currentRelease .ChartVersion , currentRelease .Status ))
990+ if valueHash != nil {
991+ logger .V (logs .LogInfo ).Info (fmt .Sprintf ("release %s/%s (version %s) (value hash %x) status: %s" ,
992+ currentRelease .ReleaseNamespace , currentRelease .ReleaseName , currentRelease .ChartVersion ,
993+ valueHash , currentRelease .Status ))
994+ } else {
995+ logger .V (logs .LogInfo ).Info (fmt .Sprintf ("release %s/%s (version %s) status: %s" ,
996+ currentRelease .ReleaseNamespace , currentRelease .ReleaseName , currentRelease .ChartVersion , currentRelease .Status ))
997+ }
992998 if currentRelease .Status == release .StatusDeployed .String () {
993999 // Deployed chart is used for updating ClusterConfiguration. There is no ClusterConfiguration for mgmt cluster
9941000 chartDeployed = append (chartDeployed , configv1beta1.Chart {
@@ -3573,13 +3579,13 @@ func getHelmChartValuesHash(ctx context.Context, c client.Client, instantiatedCh
35733579
35743580func updateValueHashOnHelmChartSummary (ctx context.Context , requestedChart * configv1beta1.HelmChart ,
35753581 clusterSummary * configv1beta1.ClusterSummary , mgmtResources map [string ]* unstructured.Unstructured ,
3576- logger logr.Logger ) error {
3582+ logger logr.Logger ) ([] byte , error ) {
35773583
35783584 c := getManagementClusterClient ()
35793585
35803586 helmChartValuesHash , err := getHelmChartValuesHash (ctx , c , requestedChart , clusterSummary , mgmtResources , logger )
35813587 if err != nil {
3582- return err
3588+ return nil , err
35833589 }
35843590
35853591 err = retry .RetryOnConflict (retry .DefaultRetry , func () error {
@@ -3602,7 +3608,7 @@ func updateValueHashOnHelmChartSummary(ctx context.Context, requestedChart *conf
36023608 return c .Status ().Update (ctx , currentClusterSummary )
36033609 })
36043610
3605- return err
3611+ return helmChartValuesHash , err
36063612}
36073613
36083614// getValueHashFromHelmChartSummary returns the valueHash stored for this chart
0 commit comments