Skip to content

Conversation

@npecka
Copy link
Contributor

@npecka npecka commented Nov 1, 2021

Added condition where no validations are run and metrics cleared if object is found to have replica count of 0

Signed-off-by: npecka <zangoose107@gmail.com>
@npecka npecka marked this pull request as draft November 1, 2021 19:54
@openshift-ci openshift-ci bot requested review from hlipsig and rrati November 1, 2021 19:54
Signed-off-by: npecka <zangoose107@gmail.com>
Signed-off-by: npecka <zangoose107@gmail.com>
@npecka npecka marked this pull request as ready for review November 3, 2021 20:17
@codecov-commenter
Copy link

codecov-commenter commented Nov 3, 2021

Codecov Report

Merging #118 (fbc896f) into master (102b40f) will increase coverage by 1.83%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
+ Coverage   34.71%   36.54%   +1.83%     
==========================================
  Files          15       15              
  Lines         386      394       +8     
==========================================
+ Hits          134      144      +10     
+ Misses        231      230       -1     
+ Partials       21       20       -1     
Impacted Files Coverage Δ
pkg/validations/base.go 77.55% <100.00%> (+4.38%) ⬆️
pkg/validations/validation_engine.go 57.60% <0.00%> (+2.17%) ⬆️

@npecka
Copy link
Contributor Author

npecka commented Nov 3, 2021

/assign @rrati

Signed-off-by: npecka <zangoose107@gmail.com>
Signed-off-by: npecka <zangoose107@gmail.com>
@npecka npecka requested a review from rrati November 5, 2021 16:57
Signed-off-by: npecka <zangoose107@gmail.com>
Signed-off-by: npecka <zangoose107@gmail.com>
Signed-off-by: npecka <zangoose107@gmail.com>
Signed-off-by: npecka <zangoose107@gmail.com>
Signed-off-by: npecka <zangoose107@gmail.com>
Signed-off-by: npecka <zangoose107@gmail.com>
…h new changes

Signed-off-by: npecka <zangoose107@gmail.com>
Signed-off-by: npecka <zangoose107@gmail.com>
Signed-off-by: npecka <zangoose107@gmail.com>
@npecka npecka requested a review from rrati November 18, 2021 19:56
Signed-off-by: npecka <zangoose107@gmail.com>
@npecka npecka requested a review from rrati November 18, 2021 21:17
@npecka npecka changed the title WIP: Check to clear metrics if 0 replicas Check to clear metrics if 0 replicas Nov 19, 2021
@npecka npecka requested a review from bkez322 November 22, 2021 14:55
@bkez322
Copy link
Contributor

bkez322 commented Nov 22, 2021

Asked a question about the assumption we're making with deployments and the replicas field.

If we plan on assuming that objects with a replicas field are controllers, then this PR LGTM. Thanks for adding a test!

Signed-off-by: npecka <zangoose107@gmail.com>
@npecka npecka requested a review from rrati November 30, 2021 14:17
Copy link

@rrati rrati left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 30, 2021
@openshift-ci
Copy link

openshift-ci bot commented Nov 30, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: npecka, rrati

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:

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

@openshift-merge-robot openshift-merge-robot merged commit edcbe7a into app-sre:master Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants