Add LocalSecretReference to FederatedClusterSpec
@@ -43,7 +43,7 @@ type FederatedClusterSpec struct {
//
// This can be left empty if the cluster allows insecure access.
// +optional
- SecretRef *apiv1.LocalObjectReference `json:"secretRef,omitempty"`
+ SecretRef *LocalSecretReference `json:"secretRef,omitempty"`
}
// LocalClusterReference contains information to identify a cluster in the
@@ -54,6 +54,14 @@ type LocalClusterReference struct {
Name string `json:"name"`
}
+// LocalSecretReference is a reference to a secret within the enclosing
+// namespace.
+type LocalSecretReference struct {
+ // Name of a secret within the enclosing
+ // namespace
+ Name string `json:"name"`
+}
+
// FederatedClusterStatus contains information about the current status of a
// cluster updated periodically by cluster controller.
type FederatedClusterStatus struct {
