Add support for CAS 1.21.0

This commit is contained in:
Ole Markus With 2021-05-12 08:10:36 +02:00
parent 57cd9c964e
commit 103e3f3b7e
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ func (b *ClusterAutoscalerOptionsBuilder) BuildOptions(o interface{}) error {
v, err := util.ParseKubernetesVersion(clusterSpec.KubernetesVersion)
if err == nil {
switch v.Minor {
case 21:
image = "k8s.gcr.io/autoscaling/cluster-autoscaler:v1.21.0"
case 20:
image = "k8s.gcr.io/autoscaling/cluster-autoscaler:v1.20.0"
case 19: