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

feat: add resources e2e #329

Merged
merged 6 commits into from
Oct 13, 2023
Merged

feat: add resources e2e #329

merged 6 commits into from
Oct 13, 2023

Conversation

kqzh
Copy link
Contributor

@kqzh kqzh commented Oct 12, 2023

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Description:

make e2e E2EARGS="--kubeconfig ~/.kube/config -labels category=basic,group=resources"
image

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

@kqzh kqzh requested review from MegaByte875 and veezhang October 12, 2023 09:12
return validator.New().Var(val, string(r))
}

type Resource corev1.ResourceRequirements
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps the definition could be more abstract rather than specific to a certain type.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@@ -110,6 +113,24 @@ func defaultNebulaClusterReadyFuncForStatus(_ context.Context, _ *envconf.Config
)
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

This func is used to cmp nc status, maybe put those in defaultNebulaClusterReadyFuncForGraphd/Metad/Storaged is more suitable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

},
}

if err := cfg.Client().Resources().Get(ctx, sts.Name, sts.Namespace, sts); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

We have already obtained it, why not check more fields, such as version, replicas , etc.

Copy link
Contributor

@veezhang veezhang left a comment

Choose a reason for hiding this comment

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

LGTM

@veezhang veezhang merged commit 7369572 into vesoft-inc:master Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants