예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1EnvVarSource" /> class.
 /// </summary>
 /// <param name="ConfigMapKeyRef">Selects a key of a ConfigMap..</param>
 /// <param name="FieldRef">Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP..</param>
 /// <param name="ResourceFieldRef">Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported..</param>
 /// <param name="SecretKeyRef">Selects a key of a secret in the pod&#39;s namespace.</param>
 public V1EnvVarSource(V1ConfigMapKeySelector ConfigMapKeyRef = default(V1ConfigMapKeySelector), V1ObjectFieldSelector FieldRef = default(V1ObjectFieldSelector), V1ResourceFieldSelector ResourceFieldRef = default(V1ResourceFieldSelector), V1SecretKeySelector SecretKeyRef = default(V1SecretKeySelector))
 {
     this.ConfigMapKeyRef  = ConfigMapKeyRef;
     this.FieldRef         = FieldRef;
     this.ResourceFieldRef = ResourceFieldRef;
     this.SecretKeyRef     = SecretKeyRef;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V1DownwardAPIVolumeFile" /> class.
 /// </summary>
 /// <param name="FieldRef">Required: Selects a field of the pod: only annotations, labels, name and namespace are supported..</param>
 /// <param name="Mode">Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set..</param>
 /// <param name="Path">Required: Path is  the relative path name of the file to be created. Must not be absolute or contain the &#39;..&#39; path. Must be utf-8 encoded. The first item of the relative path must not start with &#39;..&#39; (required).</param>
 /// <param name="ResourceFieldRef">Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported..</param>
 public V1DownwardAPIVolumeFile(V1ObjectFieldSelector FieldRef = default(V1ObjectFieldSelector), int?Mode = default(int?), string Path = default(string), V1ResourceFieldSelector ResourceFieldRef = default(V1ResourceFieldSelector))
 {
     // to ensure "Path" is required (not null)
     if (Path == null)
     {
         throw new InvalidDataException("Path is a required property for V1DownwardAPIVolumeFile and cannot be null");
     }
     else
     {
         this.Path = Path;
     }
     this.FieldRef         = FieldRef;
     this.Mode             = Mode;
     this.ResourceFieldRef = ResourceFieldRef;
 }