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

Generate secret references for the sensitive fields under the spec.initProvider API tree #136

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

ulucinar
Copy link
Collaborator

@ulucinar ulucinar commented Jun 4, 2024

Description of your changes

Depends on: crossplane/upjet#411

This PR bumps upjet to commit f4f87bab8535 from crossplane/upjet#411 and generates the secret references for the sensitive fields under the spec.initProvider API tree. For further context, please refer to crossplane/upjet#406.

This PR also uses the traverser.maxItemsSync schema traverser introduced in crossplane/upjet#411 to sync the MaxItems constraints from the Go schema to the JSON schema. For the current set of configured resources in the provider, this is currently not an issue but we are implementing automatic syncing of this constraint (until the JSON schema usage is removed in a major version bump) in case any future resources will need it.

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

Via uptest: https://github.com/crossplane-contrib/provider-upjet-azuread/actions/runs/9487439963

ulucinar added 2 commits June 4, 2024 14:52
- Generate the secret references for the sensitive fields under
  the spec.initProvider API tree.

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
from the Go resource schema to the JSON schema.

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

ulucinar commented Jun 4, 2024

/test-examples="examples/applications/v1beta2/application.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

/test-examples="examples/applications/v1beta2/application.yaml"

@ulucinar
Copy link
Collaborator Author

/test-examples="examples/applications/v1beta2/application.yaml"

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

/test-examples="examples/applications/v1beta2/application.yaml"

@ulucinar ulucinar merged commit 5d73f74 into crossplane-contrib:main Jun 12, 2024
10 checks passed
@ulucinar ulucinar deleted the sync-maxitems branch June 12, 2024 18:15
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