-
Notifications
You must be signed in to change notification settings - Fork 30
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
Conversation
pkg/nebula/meta_client.go
Outdated
"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" | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
pkg/controller/component/pvc_gc.go
Outdated
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) |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got it
_, err = ss.clientSet.PVC().GetPVC(nc.GetNamespace(), pvcName) | ||
if !apierrors.IsNotFound(err) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- How about other error? For example, network.
if _, err = GetPVC(); condition { ... }
- At the end of this function, should return an err to let it re-enter the queue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.