All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.core.v1.EnvFromSource Maven / Gradle / Ivy

There is a newer version: 1.30.4
Show newest version
package io.k8s.api.core.v1;

import java.lang.String;

/**
 * EnvFromSource represents the source of a set of ConfigMaps
 */
public class EnvFromSource {
  public ConfigMapEnvSource configMapRef;

  public String prefix;

  public SecretEnvSource secretRef;

  public EnvFromSource configMapRef(ConfigMapEnvSource configMapRef) {
    this.configMapRef = configMapRef;
    return this;
  }

  /**
   * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.
   */
  public EnvFromSource prefix(String prefix) {
    this.prefix = prefix;
    return this;
  }

  public EnvFromSource secretRef(SecretEnvSource secretRef) {
    this.secretRef = secretRef;
    return this;
  }

  public static EnvFromSource envFromSource() {
    return new EnvFromSource();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy