-
Notifications
You must be signed in to change notification settings - Fork 192
enable autoscaler in cc-based cluster #3720
Conversation
Cluster Generation A/B Results: |
c01cb52
to
9975553
Compare
Cluster Generation A/B Results: |
//usebom:sandbox/v1.7.0-zshippable/430690895461907853/tkg-compatibility:v12 |
9975553
to
eada599
Compare
Cluster Generation A/B Results: |
Codecov Report
@@ Coverage Diff @@
## main #3720 +/- ##
==========================================
- Coverage 46.22% 45.44% -0.79%
==========================================
Files 400 425 +25
Lines 39642 41221 +1579
==========================================
+ Hits 18326 18731 +405
- Misses 19626 20780 +1154
- Partials 1690 1710 +20
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
//usebom:sandbox/v1.7.0-zshippable/430854692847751580/tkg-compatibility:v12 |
eada599
to
b00c8c5
Compare
Cluster Generation A/B Results: |
b00c8c5
to
805ce55
Compare
Cluster Generation A/B Results: |
805ce55
to
b2bdc86
Compare
Cluster Generation A/B Results: |
b2bdc86
to
2afe651
Compare
Cluster Generation A/B Results: |
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.
LGTM.
@@ -685,6 +691,47 @@ func (c *client) WaitForAutoscalerDeployment(deploymentName, namespace string) e | |||
return c.GetResource(&appsv1.Deployment{}, deploymentName, namespace, VerifyAutoscalerDeploymentAvailable, &PollOptions{Interval: CheckResourceInterval, Timeout: CheckAutoscalerDeploymentTimeout}) | |||
} | |||
|
|||
func (c *client) ApplyPatchForAutoScalerDeployment(tkgBomClient tkgconfigbom.Client, clusterName string, k8sVersion string, namespace string) error { | |||
var autoScalerDeployment appsv1.Deployment | |||
autoscalerDeploymentName := clusterName + "-cluster-autoscaler" |
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.
Use constant value. This can be fixed in a later pr.
Add autoscaler(optional) to the utkg cluster lifecycle. This is done as part of cluster.yaml output. Disable worker replica of clusterclass when autosacler is enabled.
What this PR does / why we need it
Add autoscaler(optional) to the utkg cluster lifecycle.