Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrancisc committed Sep 18, 2023
1 parent b6c8033 commit 84f32f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion api/v1alpha1/workspace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type WorkspaceStatus struct {

type Binding struct {
// MasterUserRecord is the name of the user that has access to the workspace.
// This field is immutable via a validating webhook.
MasterUserRecord string `json:"masterUserRecord,omitempty"`

// Role is the role of the user in the current workspace. For example "admin" for the user that has all permissions on the current workspace.
Expand All @@ -50,7 +51,7 @@ type Binding struct {
// Available values:
// - "update" when the role in the current binding can be changed
// - "delete" when the current binding can be deleted
// - "override" when the current binding can be overwritten by a new binding containing the same MasterUserRecord but a different role
// - "override" when the current binding is inherited from a parent workspace, it cannot be updated, but it can be overridden by creating a new binding containing the same MasterUserRecord but different role in the subworkspace.
// +listType=atomic
// +optional
AvailableActions []string `json:"availableActions,omitempty"`
Expand Down
12 changes: 11 additions & 1 deletion api/v1alpha1/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 84f32f2

Please sign in to comment.