Skip to content

Commit

Permalink
Merge pull request #865 from medha-kumar/feature-trackDrifts
Browse files Browse the repository at this point in the history
Feature track drifts -- fixed clustername
  • Loading branch information
gianlucam76 authored Dec 1, 2024
2 parents 67a9bcd + 1380ee1 commit 1e0bdec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions controllers/resourcesummary_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,23 +199,23 @@ func processResourceSummary(ctx context.Context, c, remoteClient client.Client,
l.V(logs.LogDebug).Info("redeploy helm")
clusterSummary.Status.FeatureSummaries[i].Hash = nil
clusterSummary.Status.FeatureSummaries[i].Status = configv1beta1.FeatureStatusProvisioning
trackDrifts(clusterSummaryNamespace, clusterSummaryName, string(clusterSummary.Status.FeatureSummaries[i].FeatureID),
trackDrifts(clusterSummaryNamespace, clusterSummary.Spec.ClusterName, string(clusterSummary.Status.FeatureSummaries[i].FeatureID),
string(clusterSummary.Spec.ClusterType), logger)
}
} else if clusterSummary.Status.FeatureSummaries[i].FeatureID == configv1beta1.FeatureResources {
if rs.Status.ResourcesChanged {
l.V(logs.LogDebug).Info("redeploy resources")
clusterSummary.Status.FeatureSummaries[i].Hash = nil
clusterSummary.Status.FeatureSummaries[i].Status = configv1beta1.FeatureStatusProvisioning
trackDrifts(clusterSummaryNamespace, clusterSummaryName, string(clusterSummary.Status.FeatureSummaries[i].FeatureID),
trackDrifts(clusterSummaryNamespace, clusterSummary.Spec.ClusterName, string(clusterSummary.Status.FeatureSummaries[i].FeatureID),
string(clusterSummary.Spec.ClusterType), logger)
}
} else if clusterSummary.Status.FeatureSummaries[i].FeatureID == configv1beta1.FeatureKustomize {
if rs.Status.KustomizeResourcesChanged {
l.V(logs.LogDebug).Info("redeploy kustomization resources")
clusterSummary.Status.FeatureSummaries[i].Hash = nil
clusterSummary.Status.FeatureSummaries[i].Status = configv1beta1.FeatureStatusProvisioning
trackDrifts(clusterSummaryNamespace, clusterSummaryName, string(clusterSummary.Status.FeatureSummaries[i].FeatureID),
trackDrifts(clusterSummaryNamespace, clusterSummary.Spec.ClusterName, string(clusterSummary.Status.FeatureSummaries[i].FeatureID),
string(clusterSummary.Spec.ClusterType), logger)
}
}
Expand Down

0 comments on commit 1e0bdec

Please sign in to comment.