.addAllToEnv(config.getEnvVars()) .addNewVolumeMount() .withName("dshm") .withMountPath("/dev/shm") .endVolumeMount()
.endPort() .addNewVolumeMount() .withName("secret-volume") .withMountPath("/deployments/config") .withReadOnly(false)
.endPort() .addNewVolumeMount() .withName("secret-volume") .withMountPath("/deployments/config") .withReadOnly(false)
.endPort() .addNewVolumeMount() .withName("secret-volume") .withMountPath("/deployments/config") .withReadOnly(false)
@Override public void visit(ContainerBuilder builder) { String tlsSecretVolumeName = getConfig(Config.tlsSecretVolumeName); if (!isVolumeMountAlreadyExists(builder.buildVolumeMounts(), tlsSecretVolumeName)) { builder.addNewVolumeMount().withName(tlsSecretVolumeName) .withMountPath(getConfig(Config.tlsSecretVolumeMountPoint)).withReadOnly(true) .endVolumeMount(); } String jksVolumeName = getConfig(Config.jksVolumeName); if (!isVolumeMountAlreadyExists(builder.buildVolumeMounts(), jksVolumeName)) { builder.addNewVolumeMount().withName(jksVolumeName) .withMountPath(getConfig(Config.jksVolumeMountPoint)).withReadOnly(true).endVolumeMount(); } }
@Override public void visit(ContainerBuilder builder) { String tlsSecretVolumeName = getConfig(Config.tlsSecretVolumeName); if (!isVolumeMountAlreadyExists(builder.buildVolumeMounts(), tlsSecretVolumeName)) { builder.addNewVolumeMount().withName(tlsSecretVolumeName) .withMountPath(getConfig(Config.tlsSecretVolumeMountPoint)).withReadOnly(true) .endVolumeMount(); } String jksVolumeName = getConfig(Config.jksVolumeName); if (!isVolumeMountAlreadyExists(builder.buildVolumeMounts(), jksVolumeName)) { builder.addNewVolumeMount().withName(jksVolumeName) .withMountPath(getConfig(Config.jksVolumeMountPoint)).withReadOnly(true).endVolumeMount(); } }