Skip to content

Commit 256b90a

Browse files
authored
Merge pull request #6817 from sshukun/fix-addon-disable
Fix: disable a disabled addon cause error
2 parents 3cb2b36 + 884c30a commit 256b90a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/addons/addons.go

+3
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ func enableOrDisableAddon(name, val, profile string) error {
118118

119119
if alreadySet {
120120
glog.Warningf("addon %s should already be in state %v", name, val)
121+
if !enable {
122+
return nil
123+
}
121124
}
122125

123126
if name == "istio" && enable {

0 commit comments

Comments
 (0)