use of io.kubernetes.client.openapi.models.V1SecretVolumeSource in project twister2 by DSC-SPIDAL.
the class RequestObjectBuilder method createSecretVolume.
public static V1Volume createSecretVolume(String secretName) {
V1Volume secretVolume = new V1Volume();
secretVolume.setName(KubernetesConstants.SECRET_VOLUME_NAME);
V1SecretVolumeSource secretVolumeSource = new V1SecretVolumeSource();
secretVolumeSource.setSecretName(secretName);
secretVolumeSource.setDefaultMode(256);
secretVolume.setSecret(secretVolumeSource);
return secretVolume;
}
Aggregations