-
-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add deployment checks #576
Conversation
…be Rolling if targeted by Service Fixes zegl#570 Signed-off-by: BigGold1310 <cyrill.naef@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
In general this looks fantastic, just two changes:
- We should not require the deployment strategy to be explicitly set.
RollingUpdate
is the default value, and that should be OK for us. - Some changes to the copy to make the warnings more actionable.
score/deployment_test.go
Outdated
|
||
func TestServiceNotTargetsDeploymentStrategyNotRelevant(t *testing.T) { | ||
t.Parallel() | ||
// Expecting score 0 as it didn't cot rated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed comment as it should be clear without it.
score/deployment_test.go
Outdated
func TestServiceTargetsDeploymentStrategyNotSet(t *testing.T) { | ||
t.Parallel() | ||
testExpectedScore(t, "service-target-deployment-strategy-not-set.yaml", "Deployment Strategy", scorecard.GradeWarning) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RollingUpdate
is the default strategy, I don't think that we should require users to explicitly set the strategy to get rid of the warning.
If no strategy is set, the grade should be GradeAllOK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, updated to GradeAllOk
…if not HPA managed and targeted by Service Fixes zegl#569 Signed-off-by: BigGold1310 <cyrill.naef@gmail.com>
c3959ae
to
32ce7ab
Compare
Thanks! |
Fixes #569
Fixes #570