Search in sources :

Example 1 with V1SecretVolumeSource

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;
}
Also used : V1Volume(io.kubernetes.client.openapi.models.V1Volume) V1SecretVolumeSource(io.kubernetes.client.openapi.models.V1SecretVolumeSource)

Aggregations

V1SecretVolumeSource (io.kubernetes.client.openapi.models.V1SecretVolumeSource)1 V1Volume (io.kubernetes.client.openapi.models.V1Volume)1