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

Sets policy as isPolicyUniqueReachable when the latest policy pod is ready. #201

Merged
merged 2 commits into from Apr 6, 2022

Conversation

jvanz
Copy link
Member

@jvanz jvanz commented Apr 4, 2022

Description

Updates the code used to check if a policy is unique reachable only when the pods from the last policy server deployment replicaset are ready.

@jvanz jvanz requested a review from a team as a code owner April 4, 2022 19:40
@jvanz jvanz self-assigned this Apr 4, 2022
@jvanz jvanz added this to Pending review in Development Apr 4, 2022
Copy link
Member

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

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

Thanks @jvanz! Some comments.

controllers/policy_utils.go Outdated Show resolved Hide resolved
controllers/policystatus_utils.go Outdated Show resolved Hide resolved
controllers/policystatus_utils.go Outdated Show resolved Hide resolved
apis/v1alpha2/policy.go Outdated Show resolved Hide resolved
Copy link
Member

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

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

Thanks @jvanz!

controllers/policy_utils.go Outdated Show resolved Hide resolved
controllers/policystatus_utils.go Show resolved Hide resolved
internal/pkg/constants/constants.go Show resolved Hide resolved
verbs:
- get
- list
- watch
Copy link
Contributor

Choose a reason for hiding this comment

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

please don't forget to add this to the helm chart as well

Copy link
Member Author

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@raulcabello raulcabello left a comment

Choose a reason for hiding this comment

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

I agree with @ereslibre comments. Apart from that it looks good to me. Thanks!

Copy link
Member

@viccuad viccuad left a comment

Choose a reason for hiding this comment

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

LGTM, besides Rafa's comments too

@jvanz jvanz requested a review from ereslibre April 6, 2022 12:04
Copy link
Member

@ereslibre ereslibre left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot @jvanz for finding the issue, fixing it and having a lot of patience with the reviews!

Adds the permissions to allow the controller to access the replicaset
resources.
…ready.

Updates the code used to check if a policy is unique reachable only when the
pods from the last policy server deployment replicaset are ready.
@jvanz jvanz merged commit 8c8434c into kubewarden:main Apr 6, 2022
Development automation moved this from Pending review to Done (weekly) Apr 6, 2022
@jvanz jvanz deleted the policy-status-fix branch April 6, 2022 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development
Done (weekly)
Development

Successfully merging this pull request may close these issues.

None yet

4 participants