Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: abhay.tomar <[email protected]>
  • Loading branch information
ApsTomar committed Jan 28, 2025
1 parent 634d741 commit aadcf7c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions config/default_extra_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,17 @@ func applyK8SExtraValues(vConfig *Config, options *ExtraValuesOptions) error {
vConfig.ControlPlane.Distro.K8S.Version = parseImage(apiImage).Tag
}

if vConfig.ControlPlane.BackingStore.Etcd.Deploy.Enabled {
// get etcd image
etcdImage, err := getImageByVersion(options.KubernetesVersion, K8SEtcdVersionMap)
if err != nil {
return err
}
if etcdImage != "" {
vConfig.ControlPlane.BackingStore.Etcd.Deploy.StatefulSet.Image = parseImage(etcdImage)
}
}

return nil
}

Expand Down

0 comments on commit aadcf7c

Please sign in to comment.