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

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

package io.k8s.api.core.v1;

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

/**
 * SecretEnvSource selects a Secret to populate the environment variables with.
 *
 * The contents of the target Secret's Data field will represent the key-value pairs as environment variables.
 */
public class SecretEnvSource {
  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 SecretEnvSource name(String name) {
    this.name = name;
    return this;
  }

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

  public static SecretEnvSource secretEnvSource() {
    return new SecretEnvSource();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy