This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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