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

[Feature] support global setting for new parameters in helm charts #562

Open
chensuyue opened this issue Nov 14, 2024 · 1 comment
Open
Assignees

Comments

@chensuyue
Copy link
Collaborator

Request to support image registry and image tag setting for helm charts install.

@yongfengdu
Copy link
Collaborator

These values are replaced by sed in CI script, consider configure options to do this.
OPEA_IMAGE_REPO, imagetag, HFTOKEN(Already supported), modelpath(Supported), pullPolicy.

      # insert a prefix before opea/.*, the prefix is OPEA_IMAGE_REPO
      find . -name '*values.yaml' -type f -exec sed -i "s#repository: opea/*#repository: ${OPEA_IMAGE_REPO}opea/#g" {} \;
      # set OPEA image tag to ${{ inputs.tag }}
      find . -name '*values.yaml' -type f -exec sed -i 's#tag: "latest"#tag: ${{ inputs.tag }}#g' {} \;
      # set huggingface token
      find . -name '*values.yaml' -type f -exec sed -i "s#insert-your-huggingface-token-here#${HFTOKEN}#g" {} \;
      # replace the mount dir "Volume: *" with "Volume: $CHART_MOUNT"
      find . -name '*values.yaml' -type f -exec sed -i "s#modelUseHostPath: .*#modelUseHostPath: $CHART_MOUNT#g" {} \;
      # replace the pull policy "IfNotPresent" with "Always"
      find . -name '*values.yaml' -type f -exec sed -i "s#pullPolicy: IfNotPresent#pullPolicy: Always#g" {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants