-
Notifications
You must be signed in to change notification settings - Fork 379
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
refactor: service group resource subscribe ration #6479
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Ash <[email protected]>
Add assignees failed, err: Post "https://api.github.com/repos/erda-project/erda/pulls/6479/requested_reviewers": proxyconnect tcp: dial tcp 8.218.184.45:34894: i/o timeout |
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Signed-off-by: Ash <[email protected]>
Add assignees failed, err: Post "https://api.github.com/repos/erda-project/erda/pulls/6479/requested_reviewers": proxyconnect tcp: dial tcp 8.218.184.45:34895: i/o timeout |
Add assignees failed, err: Post "https://api.github.com/repos/erda-project/erda/pulls/6479/requested_reviewers": proxyconnect tcp: dial tcp 8.218.184.45:34895: i/o timeout |
|
||
return nil | ||
} | ||
|
||
func (k *Kubernetes) UpdateContainerResourceEnv(originResource apistructs.Resources, container *corev1.Container) { | ||
for index, env := range container.Env { | ||
var needToUpdate = false |
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.
This file is too large, it should be split.
@@ -458,9 +447,9 @@ func New(name executortypes.Name, clusterName string, options map[string]string) | |||
k.elasticsearchoperator = elasticsearchoperator | |||
redisoperator := redis.New(k, deploy, sts, svc, ns, k, k8ssecret, client) | |||
k.redisoperator = redisoperator | |||
mysqloperator := mysql.New(k, ns, k8ssecret, pvc, client) | |||
mysqloperator := mysql.New(k, ns, k, k8ssecret, pvc, client) |
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.
two k
is strange.
@@ -0,0 +1,201 @@ | |||
// Copyright (c) 2021 Terminus, Inc. |
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.
why the file name is subscriberations
?
DefaultRatio = 1.0 | ||
) | ||
|
||
type SubscribeRatios struct { |
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 OverSubscribeRatios
is better.
What this PR does / why we need it:
fix mysql resource config error
optimize resources getter
Global SubscribeRatio
If the SubscribeRatio isn't configured in the non-production workspace, we'll go with the global settings.
Otherwise, we'll stick to the workspace-specific configuration.
Also affects in the production workspace.
Init container not set resource limit
Sidecar container set similar subscribe ration rule
Which issue(s) this PR fixes:
Specified Reviewers:
/assign @sfwn @luobily
ChangeLog
Need cherry-pick to release versions?
Add comment like
/cherry-pick release/1.0
when this PR is merged.