kubernetes-models
Version:
30 lines (29 loc) • 1.39 kB
TypeScript
import { IIoK8sApiCoreV1EnvVarSource } from "./EnvVarSource";
import { ModelData, Model } from "@kubernetes-models/base";
/**
* EnvVar represents an environment variable present in a Container.
*/
export interface IEnvVar {
/**
* Name of the environment variable. Must be a C_IDENTIFIER.
*/
"name": string;
/**
* Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".
*/
"value"?: string;
/**
* Source for the environment variable's value. Cannot be used if value is not empty.
*/
"valueFrom"?: IIoK8sApiCoreV1EnvVarSource;
}
/**
* EnvVar represents an environment variable present in a Container.
*/
export declare class EnvVar extends Model<IEnvVar> implements IEnvVar {
"name": string;
"value"?: string;
"valueFrom"?: IIoK8sApiCoreV1EnvVarSource;
constructor(data?: ModelData<IEnvVar>);
}
export { IEnvVar as IIoK8sApiCoreV1EnvVar, EnvVar as IoK8sApiCoreV1EnvVar };