-
Notifications
You must be signed in to change notification settings - Fork 14
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
WIP: MAISTRA-2518 add conditions to federation status #23
base: maistra-2.1
Are you sure you want to change the base?
Conversation
federation/v1/status.go
Outdated
ReadyServiceMeshPeerCondition ConditionType = "Ready" | ||
// Exporting indicates that the mesh is exporting services to the remote | ||
// mesh. | ||
ExportingExportedServiceSetCondition ConditionType = "Ready" |
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.
Exporting?
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.
great catch, thanks!
federation/v1/status.go
Outdated
ExportingExportedServiceSetCondition ConditionType = "Ready" | ||
// Importing indicates that the mesh is importing services from the remote | ||
// mesh. | ||
ImportingImportedServiceSetCondition ConditionType = "Ready" |
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.
Importing?
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.
great catch!
federation/v1/status.go
Outdated
@@ -0,0 +1,142 @@ | |||
// Copyright Red Hat, Inc. |
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.
better call this file statustype.go?
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.
renamed to StatusConditions and statusconditions.go
federation/v1/status.go
Outdated
// +optional | ||
// +patchMergeKey=type | ||
// +patchStrategy=merge | ||
Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,10,rep,name=conditions"` |
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.
is it possible to run oc wait
with this? IIRC it only works with a Condition
(singular) field.
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.
I think this is how conditions are implemented on all resources, e.g. oc wait --for=condition=Ready ...
93bccea
to
9cc9eb2
Compare
Signed-off-by: rcernich <[email protected]>
@rcernich: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@rcernich: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Signed-off-by: rcernich [email protected]