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

refactor(pointer): Use generic pointer functions #1923

Merged

Conversation

MisterMX
Copy link
Collaborator

Description of your changes

Some more refactoring for pointer functions:

  • Add generic functions for late initialize and pointer refs and derefs.
  • Replace calls that are using the pointer.FieldRequired option with ptr.To which as the same effect but is much simpler.
  • Remove pointer functions that are not used anymore.
  • Change pointer functions so they don't depend on the AWS sdk anymore but only k8s.io/utils/ptr.

No behavioral changes to the code have been made.

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

n.a.

@MisterMX MisterMX requested a review from chlunde October 19, 2023 12:05
* Add generic functions for late initialize and pointer refs and derefs.
* Replace calls that are using the `pointer.FieldRequired` option with
  ptr.To which as the same effect but is much simpler.
* Remove pointer functions that are not used anymore.
* Change pointer functions so they don't depend on the AWS sdk anymore
  but only `k8s.io/utils/ptr`.

Signed-off-by: Maximilian Blatt (external expert on behalf of DB Netz) <maximilian.blatt-extern@deutschebahn.com>
@MisterMX MisterMX merged commit c71976a into crossplane-contrib:master Oct 25, 2023
9 checks passed
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.

None yet

2 participants