Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing open api marker to ws structs #381

Merged
merged 1 commit into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api/v1alpha1/workspace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ type WorkspaceStatus struct {
Bindings []Binding `json:"bindings,omitempty"`
}

// Binding defines a user role in a given workspace,
// and available actions that can be performed on the role
// +k8s:openapi-gen=true
type Binding struct {
// MasterUserRecord is the name of the user that has access to the workspace.
// This field is immutable via a validating webhook.
Expand All @@ -62,6 +65,8 @@ type Binding struct {
BindingRequest BindingRequest `json:"bindingRequest,omitempty"`
}

// BindingRequest contains the name and the namespace where of the associated SpaceBindingRequest.
// +k8s:openapi-gen=true
type BindingRequest struct {
// Name of the SpaceBindingRequest that generated the SpaceBinding resource.
Name string `json:"name"`
Expand Down
88 changes: 88 additions & 0 deletions api/v1alpha1/zz_generated.openapi.go

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