Skip to content

Commit

Permalink
Rephrase the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Siddhesh Ghadi <[email protected]>
  • Loading branch information
svghadi committed Dec 5, 2024
1 parent 7667f06 commit 2b1b233
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/argocd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -1706,8 +1706,7 @@ func addKubernetesData(source map[string]string, live map[string]string) {
found := glob.MatchStringInList(patterns, key, glob.GLOB)
if found {
// Don't override values already present in the source object.
// This ensures users have control over Kubernetes-managed data
// if they have intentionally set or modified these values in the source object.
// This allows the operator to update Kubernetes specific data when needed.
if _, ok := source[key]; !ok {
source[key] = value
}
Expand Down

0 comments on commit 2b1b233

Please sign in to comment.