Skip to content

Commit

Permalink
Update common/flagdproxy/flagdproxy.go
Browse files Browse the repository at this point in the history
Co-authored-by: Giovanni Liva <[email protected]>
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT and thisthat authored Jan 23, 2024
1 parent 31b5b49 commit 8e59ea5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/flagdproxy/flagdproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,11 @@ func (f *FlagdProxyHandler) doesFlagdProxyExist(ctx context.Context) (bool, *app
}

func (f *FlagdProxyHandler) shouldUpdateFlagdProxy(old, new *appsV1.Deployment) bool {
return isDeployedByOFO(old) && !reflect.DeepEqual(old.Spec, new.Spec)
if !isDeployedByOFO(old) {
f.Log.Info("flagd-proxy Deployment not managed by OFO")
return false
}
return !reflect.DeepEqual(old.Spec, new.Spec)
}

func (f *FlagdProxyHandler) getOperatorDeployment(ctx context.Context) (*appsV1.Deployment, error) {
Expand Down

0 comments on commit 8e59ea5

Please sign in to comment.