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

Update values.yaml #530

Merged
merged 3 commits into from
May 16, 2024
Merged

Update values.yaml #530

merged 3 commits into from
May 16, 2024

Conversation

DanRoscigno
Copy link
Contributor

@DanRoscigno DanRoscigno commented May 15, 2024

I think that a volume name prefix is required for persistent storage. When I set the name the PVCs were created.

Maybe I am wrong, maybe if a storageClassName is set and the prefix is left empty then PVCs will also get created?

Description

Please provide a detailed description of the changes you have made. Include the motivation for these changes, and any
additional context that may be important.

the PR should include helm chart changes and operator changes.

Related Issue(s)

Please list any related issues and link them here.

Checklist

For operator, please complete the following checklist:

  • run make generate to generate the code.
  • run golangci-lint run to check the code style.
  • run make test to run UT.
  • run make manifests to update the yaml files of CRD.

For helm chart, please complete the following checklist:

  • make sure you have updated the values.yaml
    file of starrocks chart.
  • In scripts directory, run bash create-parent-chart-values.sh to update the values.yaml file of the parent
    chart( kube-starrocks chart).

I think that a volume name prefix is required for persistent storage. When I set the name the PVCs were created.

Maybe I am wrong, maybe if a storageClassName is set and the prefix is left empty then PVCs will also get created?

Signed-off-by: DanRoscigno <[email protected]>
@yandongxiao
Copy link
Collaborator

Since the kube-starrocks chart is composed of two sub-charts (the operator chart and the starrocks chart), the values.yaml file for the kube-starrocks chart is automatically derived by merging their respective values.yaml files.

Therefore, the modification should be made to the values.yaml of the starrocks chart. Then, in the scripts directory, run the bash script create-parent-chart-values.sh to update the values.yaml file of the parent chart (the kube-starrocks chart).

Signed-off-by: DanRoscigno <[email protected]>
Signed-off-by: DanRoscigno <[email protected]>
@DanRoscigno
Copy link
Contributor Author

Thanks @yandongxiao updated and ran the script.

@@ -335,7 +335,7 @@ starrocks:
# Note: Once set, the following fields will not be allowed to be modified.
storageSpec:
# Specifies the name prefix of the volumes to mount. If left unspecified, `emptyDir` volumes will be used by default, which
# are ephemeral and data will be lost on pod restart. For persistent storage, it is recommended to specify a volume name prefix.
# are ephemeral and data will be lost on pod restart. For persistent storage, specify a volume name prefix.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes you are right, name is required. The values.yaml of starrocks chart also needs to be updated

@yandongxiao yandongxiao merged commit c1665e7 into StarRocks:main May 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants