Skip to content
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

Open
wants to merge 1 commit into
base: maistra-2.1
Choose a base branch
from

Conversation

rcernich
Copy link
Contributor

Signed-off-by: rcernich [email protected]

ReadyServiceMeshPeerCondition ConditionType = "Ready"
// Exporting indicates that the mesh is exporting services to the remote
// mesh.
ExportingExportedServiceSetCondition ConditionType = "Ready"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exporting?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch, thanks!

ExportingExportedServiceSetCondition ConditionType = "Ready"
// Importing indicates that the mesh is importing services from the remote
// mesh.
ImportingImportedServiceSetCondition ConditionType = "Ready"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Importing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great catch!

@@ -0,0 +1,142 @@
// Copyright Red Hat, Inc.
Copy link
Member

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?

Copy link
Contributor Author

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

// +optional
// +patchMergeKey=type
// +patchStrategy=merge
Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,10,rep,name=conditions"`
Copy link
Member

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.

Copy link
Contributor Author

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 ...

@rcernich rcernich force-pushed the MAISTRA-2518 branch 2 times, most recently from 93bccea to 9cc9eb2 Compare August 18, 2021 20:31
@maistra-bot
Copy link
Contributor

@rcernich: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
api_unittests-2.1 77268cd link true /test api_unittests-2.1
api_gen-check-2.1 77268cd link true /test api_gen-check-2.1

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.

@openshift-ci
Copy link

openshift-ci bot commented Jan 26, 2023

@rcernich: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/api-gencheck-2-1 77268cd link true /test api-gencheck-2-1
ci/prow/api-unit-2-1 77268cd link true /test api-unit-2-1
ci/prow/images 77268cd link true /test images

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants