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:
@@ -2263,6 +2263,12 @@ func schema_pkg_apis_tenant_v1alpha1_WorkspaceSpec(ref common.ReferenceCallback)
|
|||||||
Format: "",
|
Format: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"networkIsolation": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Type: []string{"boolean"},
|
||||||
|
Format: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user