Skip to content

Instantly share code, notes, and snippets.

@sttts
Created December 2, 2022 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sttts/bafa4facad9f57203be3084d7109211b to your computer and use it in GitHub Desktop.
Save sttts/bafa4facad9f57203be3084d7109211b to your computer and use it in GitHub Desktop.
diff --git a/pkg/apis/apis/v1alpha1/types_apibinding.go b/pkg/apis/apis/v1alpha1/types_apibinding.go
index c256b9431..0d69366dc 100644
--- a/pkg/apis/apis/v1alpha1/types_apibinding.go
+++ b/pkg/apis/apis/v1alpha1/types_apibinding.go
@@ -104,11 +104,25 @@ const (
// ExportReference describes a reference to an APIExport. Exactly one of the
// fields must be set.
type ExportReference struct {
+ // Name of the APIExport that describes the API.
+ //
+ // +required
+ // +kubebuilder:validation:Required
+ // +kube:validation:MinLength=1
+ ExportName string `json:"exportName"`
+
+ // cluster is the logical cluster of the ClusterWorkspaceType. This is defaulted
+ // to the local cluster.
+ //
+ // +optional
+ Cluster tenancy.Cluster `json:"cluster,omitempty"`
+
// workspace is a reference to an APIExport in the same organization. The creator
// of the APIBinding needs to have access to the APIExport with the verb `bind`
// in order to bind to it.
//
// +optional
+ // +deprecated
Workspace *WorkspaceExportReference `json:"workspace,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment