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

Add readiness check for resources #51

Merged
merged 1 commit into from
Oct 18, 2024
Merged

Add readiness check for resources #51

merged 1 commit into from
Oct 18, 2024

Conversation

michaelhtm
Copy link
Contributor

Issue #16

Description of changes:
This feature ensures users are allowed to define
when a resource is ready or not.

For now this feature only allows to look within itself to
see whether it's ready or not, so only its spec and status
can be accessed using CEL fields.

An example with deployement-service RG will be included i
n this PR

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow bot requested review from a-hilaly and TiberiuGC October 16, 2024 06:10
@ack-prow ack-prow bot added the approved label Oct 16, 2024
@michaelhtm michaelhtm force-pushed the readiness-check branch 2 times, most recently from e6f04d7 to f08a3c6 Compare October 16, 2024 17:04
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

Good job on this Michael :) i left a few comments/questions bellow

@michaelhtm michaelhtm force-pushed the readiness-check branch 6 times, most recently from 5352664 to 64c732b Compare October 16, 2024 23:55
Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

Nice iteration, i left a few more comments!

Comment on lines +21 to +24
// This function parses resource condition expressions.
// These expressions need to be standalone expressions
// so, this function also does some validation.
// At the end we return the expressions with '${}' removed
Copy link
Member

Choose a reason for hiding this comment

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

I suggest to do a quick read on https://go.dev/blog/godoc

@a-hilaly
Copy link
Member

@michaelhtm also golangci-lint has a few comments on this.

@michaelhtm michaelhtm force-pushed the readiness-check branch 3 times, most recently from 2150720 to dcaa031 Compare October 17, 2024 16:53
This feature ensures users are allowed to define when a
resource is ready or not.

For now this feature only allows to look within itself to see
whether it's ready or not, so only its spec and status can be
accessed using CEL fields.

An example with deployement-service RG will be included in this PR
@michaelhtm
Copy link
Contributor Author

/retest

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

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

Great work Michael! i'll rebase on top of this for my next patch~

Copy link

ack-prow bot commented Oct 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: a-hilaly, michaelhtm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [a-hilaly,michaelhtm]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@a-hilaly a-hilaly merged commit d4bacf4 into main Oct 18, 2024
2 of 4 checks passed
@a-hilaly a-hilaly deleted the readiness-check branch October 23, 2024 05:38
ack-prow bot pushed a commit that referenced this pull request Oct 30, 2024
Issue #51 

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
a-hilaly pushed a commit that referenced this pull request Nov 12, 2024
Issue #51

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
a-hilaly pushed a commit that referenced this pull request Nov 12, 2024
Issue #51

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
a-hilaly added a commit that referenced this pull request Nov 12, 2024
a-hilaly pushed a commit that referenced this pull request Nov 12, 2024
Issue #51

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants