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

log and data volume separate #82

Merged
merged 2 commits into from
Oct 28, 2021
Merged

log and data volume separate #82

merged 2 commits into from
Oct 28, 2021

Conversation

MegaByte875
Copy link
Contributor

No description provided.

@MegaByte875 MegaByte875 requested review from veezhang and kqzh October 28, 2021 06:24
@MegaByte875 MegaByte875 added the type/feature req Type: feature request label Oct 28, 2021
@@ -203,6 +206,29 @@ func (c *graphdComponent) GenerateVolumes() []corev1.Volume {
}
}

func (c *graphdComponent) GenerateVolumeClaim() ([]corev1.PersistentVolumeClaim, error) {
componentType := c.Type().String()
scName, storageRes := c.GetLogStorageClass(), c.GetLogStorageResources()
Copy link
Contributor

Choose a reason for hiding this comment

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

use logSC, logRes := c.GetLogStorageClass(), c.GetLogStorageResources() instead? for unite with other component and readable

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

claims := []corev1.PersistentVolumeClaim{
{
ObjectMeta: metav1.ObjectMeta{
Name: componentType,
Copy link
Contributor

Choose a reason for hiding this comment

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

use logVolume(componentType) instead?, for unite with other component and readable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree

Copy link
Contributor

@kqzh kqzh left a comment

Choose a reason for hiding this comment

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

LGTM

@kqzh kqzh merged commit bb9183d into vesoft-inc:master Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature req Type: feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants