Skip to content

WIP: MAISTRA-2518 add conditions to federation status#23

Open
rcernich wants to merge 1 commit intomaistra:maistra-2.1from
rcernich:MAISTRA-2518
Open

WIP: MAISTRA-2518 add conditions to federation status#23
rcernich wants to merge 1 commit intomaistra:maistra-2.1from
rcernich:MAISTRA-2518

Conversation

@rcernich
Copy link
Copy Markdown
Contributor

Signed-off-by: rcernich [email protected]

Comment thread federation/v1/status.go Outdated
ReadyServiceMeshPeerCondition ConditionType = "Ready"
// Exporting indicates that the mesh is exporting services to the remote
// mesh.
ExportingExportedServiceSetCondition ConditionType = "Ready"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Exporting?

Copy link
Copy Markdown
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!

Comment thread federation/v1/status.go Outdated
ExportingExportedServiceSetCondition ConditionType = "Ready"
// Importing indicates that the mesh is importing services from the remote
// mesh.
ImportingImportedServiceSetCondition ConditionType = "Ready"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Importing?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

great catch!

Comment thread federation/v1/status.go
@@ -0,0 +1,142 @@
// Copyright Red Hat, Inc.
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread federation/v1/status.go
// +optional
// +patchMergeKey=type
// +patchStrategy=merge
Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,10,rep,name=conditions"`
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Details

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
Copy Markdown

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.

Details

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