Skip to content

Commit

Permalink
fixes 'kfctl attribute deleteStorage is appearing in app.yaml when pl…
Browse files Browse the repository at this point in the history
…atform is not gcp' (kubeflow#2827)
  • Loading branch information
kkasravi authored and k8s-ci-robot committed Mar 27, 2019
1 parent 9475a2e commit be71ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type KfDefSpec struct {
SkipInitProject bool `json:"skipInitProject,omitempty"`
UseIstio bool `json:"useIstio"`
ServerVersion string `json:"serverVersion,omitempty"`
DeleteStorage bool `json:"deleteStorage"`
DeleteStorage bool `json:"deleteStorage,omitempty"`
}

var DefaultRegistry = &RegistryConfig{
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/pkg/kfapp/coordinator/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func LoadKfApp(options map[string]interface{}) (kftypes.KfApp, error) {
if options[string(kftypes.MOUNT_LOCAL)] != nil {
kfdef.Spec.MountLocal = options[string(kftypes.MOUNT_LOCAL)].(bool)
}
if options[string(kftypes.DELETE_STORAGE)] != nil {
if options[string(kftypes.DELETE_STORAGE)] != nil && kfdef.Spec.Platform == kftypes.GCP {
kfdef.Spec.DeleteStorage = options[string(kftypes.DELETE_STORAGE)].(bool)
}
pApp := GetKfApp(kfdef)
Expand Down

0 comments on commit be71ab2

Please sign in to comment.