-
Notifications
You must be signed in to change notification settings - Fork 96
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
MGDAPI-6415 move 3scale from dc to deployments #3488
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3488 +/- ##
==========================================
- Coverage 47.77% 47.69% -0.09%
==========================================
Files 95 95
Lines 13515 13534 +19
==========================================
- Hits 6457 6455 -2
- Misses 6349 6369 +20
- Partials 709 710 +1
|
/retest |
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.
I left a few minor comments but overall the changes look good to me
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
k8sclient "sigs.k8s.io/controller-runtime/pkg/client" | ||
) | ||
|
||
var ( | ||
commonApiDeploymentsList = []string{ | ||
"threeScaleDeployment", | ||
"threeScaleProductDeployment", | ||
"cloudResourceOperatorDeployment", | ||
"observabilityDeployment", |
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.
@trepel just fyi, the observability deployment does not have it's representation in the getDeploymentConfiguration - meaning we are not testing it.
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.
Since we live with this for some time I don't think this needs to be addressed as part of this PR
|
||
defer func() { | ||
err = scaleDeploymentsConfig(t, "system-app", ThreeScaleProductNamespace, 1, client) | ||
err = scaleDeployments(context.TODO(), t, client, ThreeScaleProductNamespace, "system-app", 1) |
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.
@trepel fyi, I think this could use also an improvement to actually return to the replica count prior to the scale down.
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.
I think that the most common no. of replicas for system-app is 3, so let's hard-code 3 rather than 1 as a quick improvement. And make a proper fix in a different PR since it is not related to moving away from DeploymentConfig, wdyt?
I ran the tests that were changed in this PR and all passed! |
Thanks, lets hold them for new 3scale + CRO. Thanks @trepel |
8238ecb
to
bd60897
Compare
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.
/test rhoam-e2e |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carlkyrillos 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 |
Issue link
https://issues.redhat.com/browse/MGDAPI-6415
What
Move 3scale from deployment configs to deployments
Note: Requires new version of 3scale to pass prow/work
Verification steps
make cluster/prepare/local