Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anil-sarodh committed Dec 8, 2023
1 parent bece1c6 commit 4880de9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ func (cp *CrossPlaneApp) configureClusterDelete(ctx context.Context, req *model.
}

dirToDelete := filepath.Join(customerRepo, cp.pluginConfig.ClusterEndpointUpdates.DefaultAppValuesPath, req.ManagedClusterName)
logger.Info("for the culster %s, removing the cluster folder from git repo through path %s", req.ManagedClusterName, dirToDelete)
if err := os.RemoveAll(dirToDelete); err != nil {
return string(agentmodel.WorkFlowStatusFailed), errors.WithMessage(err, "failed to remove cluster folder")
}
Expand All @@ -221,6 +222,7 @@ func (cp *CrossPlaneApp) configureClusterDelete(ctx context.Context, req *model.
}

func removeClusterValues(valuesFileName, clusterName string) error {
logger.Info("for the culster %s, removing the cluster values from %s file", clusterName, valuesFileName)
data, err := os.ReadFile(valuesFileName)
if err != nil {
return err
Expand Down

0 comments on commit 4880de9

Please sign in to comment.