File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
keps/sig-multicluster/1645-multi-cluster-services-api Expand file tree Collapse file tree 1 file changed +17
-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
538
538
` ServiceImport` resources. The mcs-controller should be solely responsible for
539
539
the lifecycle of a `ServiceImport`.
540
540
541
+ Some error may occurs 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 fields.
545
+
541
546
For each exported service, one `ServiceExport` will exist in each cluster that
542
547
exports the service. The mcs-controller will create and maintain a derived
543
548
` ServiceImport` in each cluster within the clusterset so long as the service's
@@ -620,6 +625,12 @@ type ServiceImportStatus struct {
620
625
// +listType=map
621
626
// +listMapKey=cluster
622
627
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"`
623
634
}
624
635
625
636
// ClusterStatus contains service configuration mapped to a specific source cluster
@@ -644,6 +655,12 @@ spec:
644
655
port : 80
645
656
sessionAffinity : None
646
657
status :
658
+ status :
659
+ conditions :
660
+ - type : Ready
661
+ reason : Ready
662
+ status : " True"
663
+ lastTransitionTime : " 2020-03-30T01:33:51Z"
647
664
clusters :
648
665
- cluster : us-west2-a-my-cluster
649
666
` ` `
You can’t perform that action at this time.
0 commit comments