File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
keps/sig-multicluster/1645-multi-cluster-services-api Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -538,6 +538,11 @@ cluster, non-cluster-admin users should not be allowed to create or modify
538538` ServiceImport` resources. The mcs-controller should be solely responsible for
539539the lifecycle of a `ServiceImport`.
540540
541+ Some errors may occur during the `ServiceImport`'s lifecycle, such as IP protocol
542+ incompatibilities (i.e. : importing an IPv6 only service in an IPv4 cluster). These
543+ errors and general status reporting of a `ServiceImport` should be reported
544+ via its status conditions field.
545+
541546For each exported service, one `ServiceExport` will exist in each cluster that
542547exports the service. The mcs-controller will create and maintain a derived
543548` ServiceImport` in each cluster within the clusterset so long as the service's
@@ -620,6 +625,12 @@ type ServiceImportStatus struct {
620625 // +listType=map
621626 // +listMapKey=cluster
622627 Clusters []ClusterStatus `json:"clusters"`
628+ // +optional
629+ // +patchStrategy=merge
630+ // +patchMergeKey=type
631+ // +listType=map
632+ // +listMapKey=type
633+ Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
623634}
624635
625636// ClusterStatus contains service configuration mapped to a specific source cluster
@@ -644,6 +655,11 @@ spec:
644655 port : 80
645656 sessionAffinity : None
646657status :
658+ conditions :
659+ - type : Ready
660+ reason : Ready
661+ status : " True"
662+ lastTransitionTime : " 2020-03-30T01:33:51Z"
647663 clusters :
648664 - cluster : us-west2-a-my-cluster
649665` ` `
You can’t perform that action at this time.
0 commit comments