hapifhir / hapi-fhir-jpaserver-starter

Apache License 2.0
356 stars 977 forks source link

Add Custom Interceptor to Helm Chart deployment #703

Closed michael-gvdw closed 3 days ago

michael-gvdw commented 5 days ago

Hello, I have successfully added a custom interceptor with the use of the docker compose file. Now I want to achieve adding my custom interceptor to the Helm Chart deployment. Is there a way to do this with the provided values.yaml file?

michael-gvdw commented 3 days ago

After some playing around I achived this by editing the deployment file by doing the following:

  1. Create a configmap with the jar file.

    kubectl create configmap custom-interceptor --from-file=your-interceptor.jar
  2. Add to volumeMounts.

    - mountPath: /app/extra-classes/your-interceptor.jar
    name: custom-interceptor
    subPath: your-interceptor.jar
  3. Add to volumes.

    - configMap:
      defaultMode: 420
      name: custom-interceptor
    name: custom-interceptor

Now though this works its not really a out of the box "option" with the helm chart. Would it maybe be a good addition to the helm chart values.yaml file the option to pass extra volumeMounts and extra volumes?