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

fix(project/hook)!: hooksecret as reference #156

Merged

Conversation

dariozachow
Copy link
Collaborator

@dariozachow dariozachow commented Aug 21, 2024

Description of your changes

This PR changes the Hook Resource to take a secret reference as an input instead of having the token directly in the spec fields.

Fixes #133 and #153

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

New Unit tests have been added to confirm the proper usage of the secret in the hook controller.
Old Unit tests have been updated to use the token as a secret reference

@dariozachow dariozachow force-pushed the fix/hooksecret-as-reference branch 2 times, most recently from c5f59d2 to 6fcb3f8 Compare August 22, 2024 09:10
@dariozachow dariozachow changed the title Draft: fix: hooksecret as reference fix: hooksecret as reference Aug 22, 2024
@MisterMX MisterMX changed the title fix: hooksecret as reference fix!: hooksecret as reference Aug 23, 2024
@MisterMX MisterMX changed the title fix!: hooksecret as reference fix(project/hook)!: hooksecret as reference Aug 23, 2024
Copy link
Collaborator

@MisterMX MisterMX left a comment

Choose a reason for hiding this comment

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

LGTM so far. Thanks a lot @dariozachow. Could you squash your changes into a single commit?

Copy link
Collaborator

@janwillies janwillies left a comment

Choose a reason for hiding this comment

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

Thanks a lot @dariozachow! We can squash via GH

@janwillies
Copy link
Collaborator

well that was a race condition :)

@janwillies janwillies merged commit 31c53bc into crossplane-contrib:master Aug 23, 2024
8 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.

Hook token as secret reference
3 participants