kubernetes-models
Version:
28 lines (27 loc) • 1.28 kB
TypeScript
import { ModelData, Model } from "@kubernetes-models/base";
/**
* 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.
*/
export interface IConfigMapEnvSource {
/**
* 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
*/
"name"?: string;
/**
* Specify whether the ConfigMap must be defined
*/
"optional"?: boolean;
}
/**
* 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.
*/
export declare class ConfigMapEnvSource extends Model<IConfigMapEnvSource> implements IConfigMapEnvSource {
"name"?: string;
"optional"?: boolean;
constructor(data?: ModelData<IConfigMapEnvSource>);
}
export { IConfigMapEnvSource as IIoK8sApiCoreV1ConfigMapEnvSource, ConfigMapEnvSource as IoK8sApiCoreV1ConfigMapEnvSource };