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

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

package io.k8s.api.core.v1;

import java.lang.Boolean;
import java.lang.String;

/**
 * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.
 *
 * The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.
 */
public class ConfigMapEnvSource {
  public String name;

  public Boolean optional;

  /**
   * Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
   */
  public ConfigMapEnvSource name(String name) {
    this.name = name;
    return this;
  }

  /**
   * Specify whether the ConfigMap must be defined
   */
  public ConfigMapEnvSource optional(Boolean optional) {
    this.optional = optional;
    return this;
  }

  public static ConfigMapEnvSource configMapEnvSource() {
    return new ConfigMapEnvSource();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy