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 binding request field #378

Merged
merged 2 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 12 additions & 0 deletions api/v1alpha1/workspace_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,18 @@ type Binding struct {
// +listType=atomic
// +optional
AvailableActions []string `json:"availableActions,omitempty"`

// BindingRequest provides the name and namespace of the SpaceBindingRequest that generated the SpaceBinding resource.
// It's available only if the binding was generated using the SpaceBindingRequest mechanism.
// +optional
BindingRequest BindingRequest `json:"bindingRequest,omitempty"`
}

type BindingRequest struct {
// Name of the SpaceBindingRequest that generated the SpaceBinding resource.
Name string `json:"name,omitempty"`
// Namespace of the SpaceBindingRequest that generated the SpaceBinding resource.
Namespace string `json:"namespace,omitempty"`
mfrancisc marked this conversation as resolved.
Show resolved Hide resolved
}

// +kubebuilder:object:root=true
Expand Down
16 changes: 16 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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