Added fields to FederatedServiceStatus
@@ -17,24 +17,14 @@ limitations under the License.
package v1alpha1
import (
+ corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
-// EDIT THIS FILE!
-// Created by "kubebuilder create resource" for you to implement the FederatedServiceStatus resource schema definition
-// as a go struct.
-// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
-
-// FederatedServiceStatusSpec defines the desired state of FederatedServiceStatus
-type FederatedServiceStatusSpec struct {
- // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
- // Important: Run "kubebuilder generate" to regenerate code after modifying this file
-}
-
-// FederatedServiceStatusStatus defines the observed state of FederatedServiceStatus
-type FederatedServiceStatusStatus struct {
- // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
- // Important: Run "kubebuilder generate" to regenerate code after modifying this file
+// FederatedServiceClusterStatus is the observed status of the resource for a named cluster
+type FederatedServiceClusterStatus struct {
+ ClusterName string `json:"clusterName,omitempty"`
+ Status corev1.ServiceStatus `json:"status,omitempty"`
}
// +genclient
@@ -47,6 +37,5 @@ type FederatedServiceStatus struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
- Spec FederatedServiceStatusSpec `json:"spec,omitempty"`
- Status FederatedServiceStatusStatus `json:"status,omitempty"`
+ ClusterStatus []FederatedServiceClusterStatus `json:"clusterStatus,omitempty"`
}
