-
Notifications
You must be signed in to change notification settings - Fork 1.6k
KEP 1645: add ServiceImport conditions #5439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | |
`ServiceImport` resources. The mcs-controller should be solely responsible for | ||
the lifecycle of a `ServiceImport`. | ||
|
||
Some errors may occur during the `ServiceImport`'s lifecycle, such as IP protocol | ||
incompatibilities (i.e.: importing an IPv6 only service in an IPv4 cluster). These | ||
errors and general status reporting of a `ServiceImport` should be reported | ||
via its status conditions field. | ||
|
||
For each exported service, one `ServiceExport` will exist in each cluster that | ||
exports the service. The mcs-controller will create and maintain a derived | ||
`ServiceImport` in each cluster within the clusterset so long as the service's | ||
|
@@ -620,6 +625,12 @@ type ServiceImportStatus struct { | |
// +listType=map | ||
// +listMapKey=cluster | ||
Clusters []ClusterStatus `json:"clusters"` | ||
// +optional | ||
// +patchStrategy=merge | ||
// +patchMergeKey=type | ||
// +listType=map | ||
// +listMapKey=type | ||
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` | ||
} | ||
|
||
// ClusterStatus contains service configuration mapped to a specific source cluster | ||
|
@@ -644,6 +655,12 @@ spec: | |
port: 80 | ||
sessionAffinity: None | ||
status: | ||
status: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we provide/define some common reasons when the ready condition is true/false/unknown? similar to gateway api There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's here kubernetes-sigs/mcs-api#113 |
||
conditions: | ||
MrFreezeex marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- type: Ready | ||
reason: Ready | ||
status: "True" | ||
lastTransitionTime: "2020-03-30T01:33:51Z" | ||
clusters: | ||
- cluster: us-west2-a-my-cluster | ||
``` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this new use case may impact the discussion on the the serviceImport api.