update workspace spec

Add field networkIsolate in workspace spec, in order to support workspace network isolate

Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
This commit is contained in:
Duan Jiong
2020-04-15 21:29:45 +08:00
parent 26d014302e
commit fc373b18e3
2 changed files with 8 additions and 1 deletions

View File

@@ -2263,6 +2263,12 @@ func schema_pkg_apis_tenant_v1alpha1_WorkspaceSpec(ref common.ReferenceCallback)
Format: "", Format: "",
}, },
}, },
"networkIsolation": {
SchemaProps: spec.SchemaProps{
Type: []string{"boolean"},
Format: "",
},
},
}, },
}, },
}, },

View File

@@ -33,7 +33,8 @@ const (
// WorkspaceSpec defines the desired state of Workspace // WorkspaceSpec defines the desired state of Workspace
type WorkspaceSpec struct { type WorkspaceSpec struct {
Manager string `json:"manager,omitempty"` Manager string `json:"manager,omitempty"`
NetworkIsolation bool `json:"networkIsolation,omitempty"`
} }
// WorkspaceStatus defines the observed state of Workspace // WorkspaceStatus defines the observed state of Workspace