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
feat: add support for custom scripts #6970
Conversation
volumeMounts: | ||
- name: my-custom-jar-volume | ||
mountPath: /tmp/mycustomjar.sh | ||
subPath: mymycustomjar.sh |
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.
subPath
should be mycustom.jar
volumes: | ||
- name: my-custom-jar-volume | ||
configMap: | ||
name: my-custom-jar |
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 need to adjust defaultMode
to add proper executable permission for the script. By default it's 420
(equivalent to 0644
).
Signed-off-by: Amro Misbah <amromisba7@gmail.com>
* feat: add support for custom scripts * docs: fix type and add set the defaultMode to grant execute permission Signed-off-by: Amro Misbah <amromisba7@gmail.com> --------- Signed-off-by: Amro Misbah <amromisba7@gmail.com> Co-authored-by: Amro Misbah <amromisba7@gmail.com> Signed-off-by: Mustafa Baser <mbaser@mail.com>
Prepare
Description
Target issue
closes #6969
Implementation Details
For JARs greater than 1MB
Create a configmap or secret for a shell script that contains instructions to pull the custom jar file:
kubectl -n <namespace> create cm my-custom-jar --from-file=mycustomjar.sh
Mount the configmap or secret in your values.yaml under
auth-server.volumes
andauth-server.volumeMounts
Run helm install or helm upgrade if Jans has been already installed.
Test and Document the changes