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

backup / recovery and install / uninstall component e2e test #138

Merged
merged 3 commits into from
Aug 18, 2022

Conversation

Xvv-v
Copy link
Contributor

@Xvv-v Xvv-v commented Aug 18, 2022

Signed-off-by: Xvv-v xu.jingwen@99cloud.net

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #61

Special notes for reviewers:

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:


Signed-off-by: Xvv-v <xu.jingwen@99cloud.net>
@kubeclipper-bot kubeclipper-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 18, 2022
@kubeclipper-bot
Copy link
Collaborator

@Xvv-v: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

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.

@kubeclipper-bot kubeclipper-bot added dco-signoff: yes do-not-merge/release-note-label-needed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 18, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 18, 2022

Codecov Report

Merging #138 (67cf163) into master (b25c67d) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #138   +/-   ##
=======================================
  Coverage   11.54%   11.54%           
=======================================
  Files          99       99           
  Lines       15511    15511           
=======================================
  Hits         1790     1790           
  Misses      13486    13486           
  Partials      235      235           
Impacted Files Coverage Δ
pkg/component/nfs/nfs.go 0.58% <ø> (ø)

Signed-off-by: Xvv-v <xu.jingwen@99cloud.net>
@Xvv-v
Copy link
Contributor Author

Xvv-v commented Aug 18, 2022

/cc @x893675

@x893675
Copy link
Collaborator

x893675 commented Aug 18, 2022

/cc @lixd

ginkgo.By(" check nfs component condition ")
// TODO: add nfs healthy condition check
err = cluster.WaitForClusterRunning(f.Client, clu.Name, f.Timeouts.ClusterInstall)
if err != nil || !(clus.Items[0].Addons[0].Name == "nfs-provisioner") {
Copy link
Contributor

Choose a reason for hiding this comment

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

panic at here:clus.Items[0].Addons[0].Name == "nfs-provisioner"

},
StorageType: "FS",
FsConfig: &corev1.FsConfig{
BackupRootDir: "/tmp",
Copy link
Contributor

Choose a reason for hiding this comment

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

in Recovery user need mount NFS to this directory,maybe we can do this auto.

ginkgo.By("Check that there are enough available nodes")
nodes, err := f.Client.ListNodes(context.TODO(), kc.Queries{
Pagination: query.NoPagination(),
LabelSelector: "!kubeclipper.io/nodeRole",
Copy link
Contributor

Choose a reason for hiding this comment

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

suggest: replace by const,like fmt.Sprintf("!%s", common.LabelNodeRole)

@lixd
Copy link
Contributor

lixd commented Aug 18, 2022

all works except Install component.

Signed-off-by: Xvv-v <xu.jingwen@99cloud.net>
@x893675
Copy link
Collaborator

x893675 commented Aug 18, 2022

/lgtm
/approve

@kubeclipper-bot kubeclipper-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 18, 2022
@kubeclipper-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 55edc78babe97e4be9ca773035e7a335bf66eb57

@kubeclipper-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: x893675, Xvv-v

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeclipper-bot kubeclipper-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 18, 2022
@kubeclipper-bot kubeclipper-bot merged commit 17a0547 into kubeclipper:master Aug 18, 2022
@Xvv-v Xvv-v deleted the e2e branch August 25, 2022 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes do-not-merge/release-note-label-needed kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

backup / recovery and install / uninstall component e2e test
5 participants