Skip to content

Issue #136 - Use custom formatter to get desired state of deployment and service#145

Merged
alexmt merged 2 commits intoargoproj:masterfrom
alexmt:132-false-out-of-sync
Apr 30, 2018
Merged

Issue #136 - Use custom formatter to get desired state of deployment and service#145
alexmt merged 2 commits intoargoproj:masterfrom
alexmt:132-false-out-of-sync

Conversation

@alexmt
Copy link
Collaborator

@alexmt alexmt commented Apr 30, 2018

Closes #132
Closes #136

@alexmt alexmt requested a review from jessesuen April 30, 2018 18:41
Copy link
Member

@jessesuen jessesuen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor changes requested

switch obj.GetAPIVersion() + ":" + obj.GetKind() {
case "apps/v1beta1:Deployment":
newObj = &v1beta1.Deployment{}
break
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style nit: in go, you don't need to stay break after each case.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! fixed

if err != nil {
return err
}
obj.Object = diff.RemoveMapFields(oldObj, obj.Object)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please document the reason for all the back and forth marshaling/unmarshalling going on here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@alexmt alexmt merged commit a36cc89 into argoproj:master Apr 30, 2018
@alexmt alexmt deleted the 132-false-out-of-sync branch June 7, 2018 16:41
leoluz pushed a commit to leoluz/argo-cd that referenced this pull request Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants