UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

Provides core APIs, types and utilities used by dynamic plugins at runtime.

24 lines (23 loc) 1.06 kB
import { Extension, ExtensionDeclaration } from '../types'; export type ImageEnvironment = { /** Environment variable key */ key: string; /** The input field's label */ label: string; /** Default value to use as a placeholder */ defaultValue?: string; /** Description of the environment variable */ description?: string; }; /** This extension can be used to specify extra build environment variable fields under the builder image selector in the dev console git import form. When set, the fields will override environment variables of the same name in the build section. */ export type ImportEnvironment = ExtensionDeclaration<'dev-console.import/environment', { /** Name of the image stream to provide custom environment variables for */ imageStreamName: string; /** List of supported image stream tags */ imageStreamTags: string[]; /** List of environment variables */ environments: ImageEnvironment[]; }>; export declare const isImportEnvironment: (e: Extension) => e is ImportEnvironment;