Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the 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['&lt;KEY&gt;']`,
 /// `metadata.annotations['&lt;KEY&gt;']`, spec.nodeName,
 /// spec.serviceAccountName, status.hostIP, status.podIP,
 /// status.podIPs.</param>
 /// <param name="resourceFieldRef">Selects a resource of the container:
 /// only resources limits and requests (limits.cpu, limits.memory,
 /// limits.ephemeral-storage, requests.cpu, requests.memory and
 /// requests.ephemeral-storage) are currently supported.</param>
 /// <param name="secretKeyRef">Selects a key of a secret in the pod's
 /// namespace</param>
 public V1EnvVarSource(V1ConfigMapKeySelector configMapKeyRef = default(V1ConfigMapKeySelector), V1ObjectFieldSelector fieldRef = default(V1ObjectFieldSelector), V1ResourceFieldSelector resourceFieldRef = default(V1ResourceFieldSelector), V1SecretKeySelector secretKeyRef = default(V1SecretKeySelector))
 {
     ConfigMapKeyRef  = configMapKeyRef;
     FieldRef         = fieldRef;
     ResourceFieldRef = resourceFieldRef;
     SecretKeyRef     = secretKeyRef;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the V1DownwardAPIVolumeFile class.
 /// </summary>
 /// <param name="path">Required: Path is  the relative path name of the
 /// file to be created. Must not be absolute or contain the '..' path.
 /// Must be utf-8 encoded. The first item of the relative path must not
 /// start with '..'</param>
 /// <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="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(string path, V1ObjectFieldSelector fieldRef = default(V1ObjectFieldSelector), int?mode = default(int?), V1ResourceFieldSelector resourceFieldRef = default(V1ResourceFieldSelector))
 {
     FieldRef         = fieldRef;
     Mode             = mode;
     Path             = path;
     ResourceFieldRef = resourceFieldRef;
     CustomInit();
 }