UNCLASSIFIED - NO CUI

Skip to content

Update to define Extra Volumes, VolumeMounts, and InitContainers

Feature Request

Requesting Update to the Fortify Helm Chart to define Extra Volumes, VolumeMounts, and InitContainers for the SSCWebapp.

Why

I would like to be able to Define an InitContainers too:

  1. Add Trusted Certificates to the webapp container truststore
  2. Poll for the MySQL database to be available before allowing webapp to start, thus reducing failback loops due to the mysqldb not being ready yet

Would need Extra Volumes and VolumeMounts to mount the updated truststore from the above initContainers

Proposed Solution

New values for the helmchart: webapp.extraVolumes webapp.extraVolumeMounts webapp.extraInitContainers

Update chart/templates/webapp.yaml

  • add the following under spec.template.spec.containers
spec:
  template:
    spec:
      containers:
        - name: webapp
          ...
          volumeMounts:
            ...
            {{- include "webapp.extraVolumeMounts" . | nindent 12 }}
  • add the following under spec.template.spec.volumes
  • {{- include "webapp.extraVolumes" . | nindent 12 }}
  • add the following under spec.template.spec.initContainers
  • {{- include "webapp.extraInitContainers" . | nindent 12 }}