@@ -900,7 +900,7 @@ func getEmbeddedCerts(tmpDir, kubeConfig string) ([]*x509.Certificate, error) {
900
900
901
901
func TestGetPathManagerForUpgrade (t * testing.T ) {
902
902
903
- haEtcd := & kubeadmapi.InitConfiguration {
903
+ externalEtcd := & kubeadmapi.InitConfiguration {
904
904
ClusterConfiguration : kubeadmapi.ClusterConfiguration {
905
905
Etcd : kubeadmapi.Etcd {
906
906
External : & kubeadmapi.ExternalEtcd {
@@ -910,7 +910,7 @@ func TestGetPathManagerForUpgrade(t *testing.T) {
910
910
},
911
911
}
912
912
913
- noHAEtcd := & kubeadmapi.InitConfiguration {}
913
+ stackedEtcd := & kubeadmapi.InitConfiguration {}
914
914
915
915
tests := []struct {
916
916
name string
@@ -919,23 +919,29 @@ func TestGetPathManagerForUpgrade(t *testing.T) {
919
919
shouldDeleteEtcd bool
920
920
}{
921
921
{
922
- name : "ha etcd but no etcd upgrade" ,
923
- cfg : haEtcd ,
922
+ name : "external etcd but no etcd upgrade" ,
923
+ cfg : externalEtcd ,
924
924
etcdUpgrade : false ,
925
925
shouldDeleteEtcd : true ,
926
926
},
927
927
{
928
- name : "non-ha etcd with etcd upgrade" ,
929
- cfg : noHAEtcd ,
928
+ name : "external etcd with etcd upgrade" ,
929
+ cfg : externalEtcd ,
930
930
etcdUpgrade : true ,
931
- shouldDeleteEtcd : false ,
931
+ shouldDeleteEtcd : true ,
932
932
},
933
933
{
934
- name : "ha etcd and etcd upgrade" ,
935
- cfg : haEtcd ,
936
- etcdUpgrade : true ,
934
+ name : "stacked etcd but no etcd upgrade" ,
935
+ cfg : stackedEtcd ,
936
+ etcdUpgrade : false ,
937
937
shouldDeleteEtcd : true ,
938
938
},
939
+ {
940
+ name : "stacked etcd with etcd upgrade" ,
941
+ cfg : stackedEtcd ,
942
+ etcdUpgrade : true ,
943
+ shouldDeleteEtcd : false ,
944
+ },
939
945
}
940
946
941
947
for _ , test := range tests {
0 commit comments