chore: adding deprecations for the spec.metadata and spec.baseUrl to the new templateInfo

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-02-16 10:30:51 +01:00
parent 4805c3d13c
commit 3c7d087fbc
+14
View File
@@ -21,11 +21,22 @@ import { JsonValue, JsonObject } from '@backstage/types';
* stored in the database.
*
* @public
* @deprecated
*/
export type TemplateMetadata = {
name: string;
};
/**
* Information about a template that is stored on the scaffolder spec
*
* @public
*/
export type TemplateInfo = {
name: string;
baseUrl?: string;
};
/**
* An individual step of a scaffolder task, as stored in the database.
*
@@ -64,11 +75,14 @@ export interface TaskSpecV1beta2 {
*/
export interface TaskSpecV1beta3 {
apiVersion: 'scaffolder.backstage.io/v1beta3';
/** @deprecated use templateInfo.baseUrl instead */
baseUrl?: string;
parameters: JsonObject;
steps: TaskStep[];
output: { [name: string]: JsonValue };
/** @deprecated use templateInfo instead */
metadata?: TemplateMetadata;
templateInfo?: TemplateInfo;
}
/**