Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kkendzia
Copy link

@kkendzia kkendzia commented Jan 23, 2025

Description of your changes

Implementation of isUpToDate function for Transfer Server.

I have:

  • Read and followed Crossplane's contribution process.
  • Run 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

@kkendzia kkendzia force-pushed the feat/transfer_server_isuptodate branch from 63926df to 4f34868 Compare January 24, 2025 06:53

}

func isNotUpToDate(in svcapitypes.ServerParameters, out *svcsdk.DescribedServer) bool { //nolint:gocyclo
Copy link
Collaborator

Choose a reason for hiding this comment

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

HostKey might be missing

Copy link
Author

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.

Copy link
Collaborator

@anagarlau anagarlau Jan 28, 2025

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
Copy link
Collaborator

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

Copy link
Author

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

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