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

Upgrade nebula sdk #88

Merged
merged 7 commits into from
Nov 12, 2021
Merged

Upgrade nebula sdk #88

merged 7 commits into from
Nov 12, 2021

Conversation

MegaByte875
Copy link
Contributor

No description provided.

@veezhang veezhang added the ready-for-testing Progress: ready for the CI test label Nov 11, 2021
"github.com/vesoft-inc/nebula-go/nebula/meta"
"github.com/vesoft-inc/nebula-go/v2/nebula"
"github.com/vesoft-inc/nebula-go/v2/nebula/meta"

Copy link
Contributor

Choose a reason for hiding this comment

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

import 4 groups, remove this line?

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

@@ -13,11 +13,11 @@ spec:
memory: "1Gi"
replicas: 1
image: vesoft/nebula-graphd
version: v2.0.1
version: v2.5.1
Copy link
Contributor

@kqzh kqzh Nov 11, 2021

Choose a reason for hiding this comment

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

update to v2.6.1 with 3 component?

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

for _, pvcName := range pvcNames {
pvc, err := pvcClient.GetPVC(component.GetNamespace(), pvcName)
if err != nil {
return fmt.Errorf("get pvc %s for cluster %s/%s failed: %s", pvcName, component.GetNamespace(), component.GetClusterName(), err)
Copy link
Contributor

Choose a reason for hiding this comment

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

lint: line-length-limit: line is 144 characters, out of limit 140 (revive)

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

func ordinalPVCNames(componentType v1alpha1.ComponentType, setName string, ordinal int32) []string {
logPVC := fmt.Sprintf("%s-log-%s-%d", componentType, setName, ordinal)
dataPVC := fmt.Sprintf("%s-data-%s-%d", componentType, setName, ordinal)
if componentType == v1alpha1.GraphdComponentType {
Copy link
Contributor

Choose a reason for hiding this comment

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

May be better combined with GenerateVolumeMounts?

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 got it

Comment on lines 142 to 143
_, err = ss.clientSet.PVC().GetPVC(nc.GetNamespace(), pvcName)
if !apierrors.IsNotFound(err) {
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. How about other error? For example, network.
  2. if _, err = GetPVC(); condition { ... }
  3. At the end of this function, should return an err to let it re-enter the queue?

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 got it

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 1132ede into vesoft-inc:master Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing Progress: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants