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

Consume EC2 Instance panic fix and address perpetual diff #1625

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

mergenci
Copy link
Collaborator

@mergenci mergenci commented Jan 2, 2025

Description of your changes

Fixes #1579. See upbound/terraform-provider-aws#279 for a detailed explanation of the problem and the fix.

I modularized the custom diff code in crossplane-contrib/provider-upjet-azure#816, so that we can simply call this function to ignore empty diffs, as in the example.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Uptest runs:

  1. examples/ec2/v1beta1/instance.yaml
  2. examples/ec2/v1beta2/instance.yaml
  3. examples/s3/v1beta1/bucket.yaml
  4. examples/ec2/v1beta2/vpcendpoint.yaml

@mergenci
Copy link
Collaborator Author

mergenci commented Jan 2, 2025

/test-examples="examples/ec2/v1beta1/instance.yaml"

@mergenci mergenci force-pushed the fix-ec2-instance-panic branch from e3d79dc to 972f8ce Compare January 2, 2025 14:57
@mergenci
Copy link
Collaborator Author

mergenci commented Jan 2, 2025

/test-examples="examples/ec2/v1beta1/instance.yaml"

@mergenci
Copy link
Collaborator Author

mergenci commented Jan 2, 2025

/test-examples="examples/ec2/v1beta2/instance.yaml"

@mergenci
Copy link
Collaborator Author

mergenci commented Jan 2, 2025

/test-examples="examples/s3/v1beta1/bucket.yaml"

@mergenci
Copy link
Collaborator Author

mergenci commented Jan 2, 2025

/test-examples="examples/ec2/v1beta2/vpcendpoint.yaml"

@mergenci mergenci marked this pull request as ready for review January 2, 2025 22:23
@turkenf
Copy link
Collaborator

turkenf commented Jan 3, 2025

Thank you @mergenci, LGTM 🙌

@mergenci mergenci merged commit 1f3a24c into crossplane-contrib:main Jan 3, 2025
12 checks passed
@mergenci mergenci deleted the fix-ec2-instance-panic branch January 3, 2025 07:22
Copy link

github-actions bot commented Jan 3, 2025

Successfully created backport PR for release-1.18:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ec2 instance not ready and not syncing with Observed a panic: value is null
2 participants