Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetIstioVersion (0.12 sec)

  1. pkg/bootstrap/config_test.go

    				},
    			},
    			expectedVersion: "metadata-version",
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			ret := SetIstioVersion(tc.meta)
    			if ret.IstioVersion != tc.expectedVersion {
    				t.Fatalf("SetIstioVersion: expected '%s', got '%s'", tc.expectedVersion, ret.IstioVersion)
    			}
    		})
    	}
    }
    
    func TestConvertNodeMetadata(t *testing.T) {
    	node := &model.Node{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. pkg/bootstrap/config.go

    		}
    	}, untypedMeta)
    
    	j, err := json.Marshal(untypedMeta)
    	if err != nil {
    		return nil, err
    	}
    
    	if err := json.Unmarshal(j, meta); err != nil {
    		return nil, err
    	}
    
    	meta = SetIstioVersion(meta)
    
    	// Support multiple network interfaces, removing duplicates.
    	meta.InstanceIPs = removeDuplicates(options.InstanceIPs)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:02:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top