kubeadm: remove outdate todo

This commit is contained in:
carlory 2024-05-13 12:08:57 +08:00
parent a07d3c49b3
commit 7582a768b7

View File

@ -86,7 +86,6 @@ diff:
out: io.Discard,
}
// TODO: Add test cases for empty cfgPath, it should automatically fetch cfg from cluster
testCases := []struct {
name string
args []string
@ -95,6 +94,13 @@ diff:
cfgPath string
expectedError bool
}{
{
name: "valid: run diff with empty config path on valid manifest path",
cfgPath: "",
setManifestPath: true,
manifestPath: testUpgradeDiffManifest,
expectedError: false,
},
{
name: "valid: run diff on valid manifest path",
cfgPath: testUpgradeDiffConfig,