flanksource / canary-checker

Kubernetes Native Health Check Platform
https://canarychecker.io
Apache License 2.0
187 stars 33 forks source link

Load external dependencies via sidecar #1992

Open moshloop opened 3 months ago

moshloop commented 3 months ago

e.g. in the values.yaml

external-plugins:
- image: java:1.21 # sidecar image to pull
   copy: # copy files from the sidecar to emptyDir
    - from /opt/java
       to: /plugins/java  
   # path to add to PATH env
   path: /plugins/java/bin
   env:
     - name: JAVA_HOME
       value: /plugins/java

Which map to scratch images with a folder structure to copy over and a /env file containing the environment variables to add