Skip to content

Commit

Permalink
Merge pull request #1175 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1174-to-release-4.2

Bug 1759611: [release-4.2] lib/resourcemerge: account for proxy changes
  • Loading branch information
openshift-merge-robot authored Nov 21, 2019
2 parents 46f291c + 824a895 commit 43c8d84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/resourcemerge/machineconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ func ensureControllerConfigSpec(modified *bool, existing *mcfgv1.ControllerConfi
setBytesIfSet(modified, &existing.RootCAData, required.RootCAData)
setBytesIfSet(modified, &existing.KubeAPIServerServingCAData, required.KubeAPIServerServingCAData)

if !equality.Semantic.DeepEqual(existing.Proxy, required.Proxy) {
*modified = true
existing.Proxy = required.Proxy
}

if required.PullSecret != nil && !equality.Semantic.DeepEqual(existing.PullSecret, required.PullSecret) {
existing.PullSecret = required.PullSecret
*modified = true
Expand Down

0 comments on commit 43c8d84

Please sign in to comment.