Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

e2e: Add ClusterSet validation#1955

Merged
nirs merged 1 commit intoRamenDR:mainfromparikshithb:e2e_clusterset_validate
Mar 24, 2025

Conversation

parikshithb
Copy link
Member

Added clustersInClusterSet function to validate that the configured clusters exist in the specified ClusterSet. Ensures test config validation fails early if the ClusterSet is misconfigured or the clusters are not part of it.

Testing:

  1. on success:
INFOValidated clusters ["dr1", "dr2"] in ClusterSet "default"
  1. when clusterset does not exist:
ERRORfailed to validate test config: failed to get ClusterSet "test": managedclustersets.cluster.open-cluster-management.io "test" not found
  1. when clusters provided is not part of the clusterset:
ERRORfailed to validate test config: cluster "dr-test" is not defined in ClusterSet "default", clusters in ClusterSet: ["dr1" "dr2"]

Fixes#1904

@parikshithbparikshithb marked this pull request as draftMarch 21, 2025 13:53
@parikshithbparikshithb removed the request for review fromraghavendra-talurMarch 21, 2025 13:53
Copy link
Member

@nirsnirs left a comment

Choose a reason for hiding this comment

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

Code looks good, but it seems to belong to the validate package.

Copy link
Member

Choose a reason for hiding this comment

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

This seems to belong to the validate package, and all the function can be private since they are used by the validate package.

We should not add new code to the util package unless we don't have a better way.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

ack, done.

Added clustersInClusterSet function to validate that theconfigured clusters exist in the specified ClusterSet.Ensures test config validation fails early if the ClusterSetis misconfigured or the clusters are not part of it.Signed-off-by: Parikshith <parikshithb@gmail.com>
@parikshithbparikshithb marked this pull request as ready for reviewMarch 24, 2025 12:02
@parikshithbparikshithb requested a review fromnirsMarch 24, 2025 12:02
@nirsnirs merged commit24a45b4 intoRamenDR:mainMar 24, 2025
23 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nirsnirsnirs approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

e2e: validate clusterset and drpolicy configurations
2 participants
@parikshithb@nirs

[8]ページ先頭

©2009-2025 Movatter.jp