-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement isUpToDate for transfer server #2151
base: master
Are you sure you want to change the base?
feat: implement isUpToDate for transfer server #2151
Conversation
Signed-off-by: Kevin Kendzia <[email protected]>
63926df
to
4f34868
Compare
|
||
} | ||
|
||
func isNotUpToDate(in svcapitypes.ServerParameters, out *svcsdk.DescribedServer) bool { //nolint:gocyclo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HostKey might be missing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HostKey isn't available in DescribedServer, only its fingerprint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be covered by ResourceLateInitialized then :)
} | ||
|
||
if !cmp.Equal(in.Domain, out.Domain) { | ||
return true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Domain can't be changed so it shouldn t trigger an update call. Usually the field is ignored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah true. Will fix it
Description of your changes
Implementation of isUpToDate function for Transfer Server.
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested
Locally ran provider for verification and unit test