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

Function type config.ConfigurationInjector now returns an error #1150

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Feb 14, 2024

Description of your changes

Depends on: crossplane/upjet#344

There's a breaking change in crossplane/upjet#344 and config.ConfigurationInjector now returns an error. This PR updates the usages of the old API.

This PR also bumps the uptest version to v0.11.0 and adds the uptest.upbound.io/disable-import: "true" annotation to the example manifest examples/s3/v1beta1/object.yaml. Please see this comment.

I have:

  • Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Via the following uptest runs:

@ulucinar
Copy link
Collaborator Author

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

@ulucinar ulucinar force-pushed the change-configinjector branch from 28297b9 to 3fad811 Compare February 14, 2024 15:06
@ulucinar
Copy link
Collaborator Author

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

Copy link
Collaborator

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

@ulucinar
Copy link
Collaborator Author

ulucinar commented Feb 14, 2024

Looks like we've hit this issue with the Object.s3 uptest run. This is a known issue of uptest being unable to deal with the changing IDs before and after a resource import.

- Disable the import test for examples/s3/v1beta1/object.yaml
  Please see: crossplane-contrib#978

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
@ulucinar
Copy link
Collaborator Author

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

1 similar comment
@ulucinar
Copy link
Collaborator Author

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

@ulucinar
Copy link
Collaborator Author

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

- Consumes the config.ConfigurationInjector signature change

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
@ulucinar
Copy link
Collaborator Author

/test-examples="examples/ec2/v1beta1/securitygrouprule-self-true.yaml"

@ulucinar ulucinar merged commit a49330c into crossplane-contrib:main Feb 14, 2024
9 of 10 checks passed
@ulucinar ulucinar deleted the change-configinjector branch February 14, 2024 19:20
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