-
Notifications
You must be signed in to change notification settings - Fork 74
[Feature] Support command and args #516
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
[Feature] Support command and args #516
Conversation
# If entrypoint is set, the command will be ["bash", "-c"], and the args will be filename of the entrypoint script. | ||
# Pod will be restarted if the entrypoint script is updated. | ||
entrypoint: {} | ||
# script: | |
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.
is this comment still valid?
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.
Yes, I have verified it.
fix the pr title |
Signed-off-by: yandongxiao <[email protected]>
bdcbffb
to
7f2452b
Compare
# echo "do something before start fe" | ||
# exec /opt/starrocks/fe_entrypoint.sh $FE_SERVICE_NAME | ||
# # a configmap with name $cluster-fe-entrypoint-script will be created, and the script will be mounted to /etc/init-script/entrypoint.sh | ||
# mountPath: /etc/init-script |
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.
will this mountPath
critical to end user, or this can be completely transparent to the end user.
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.
For users, it is indeed unnecessary to specify. We can hide 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.
let's remove it for now.
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.
done
Signed-off-by: yandongxiao <[email protected]>
Description
Fixes: #517
Suggestion
Although users can find workarounds, that increases the complexity of their operations.
We can solve the above problems by supporting the command and args field.
Checklist
For operator, please complete the following checklist:
make generate
to generate the code.golangci-lint run
to check the code style.make test
to run UT.make manifests
to update the yaml files of CRD.For helm chart, please complete the following checklist:
file of starrocks chart.
scripts
directory, runbash create-parent-chart-values.sh
to update the values.yaml file of the parentchart( kube-starrocks chart).