Skip to content

Commit

Permalink
prohibit etcdImage values from getting populated when not specified
Browse files Browse the repository at this point in the history
Signed-off-by: abhay.tomar <[email protected]>
  • Loading branch information
ApsTomar committed Jan 17, 2025
1 parent fa8b51f commit 634d741
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions config/default_extra_values.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,10 @@ func applyK8SExtraValues(vConfig *Config, options *ExtraValuesOptions) error {
return err
}

// get etcd image
etcdImage, err := getImageByVersion(options.KubernetesVersion, K8SEtcdVersionMap)
if err != nil {
return err
}

// build values
if apiImage != "" {
vConfig.ControlPlane.Distro.K8S.Version = parseImage(apiImage).Tag
}
if etcdImage != "" {
vConfig.ControlPlane.BackingStore.Etcd.Deploy.StatefulSet.Image = parseImage(etcdImage)
}

return nil
}
Expand Down

0 comments on commit 634d741

Please sign in to comment.