feat(scaffolder): Moving the storage to more task based appraches, and creating preparers

This commit is contained in:
blam
2020-06-17 11:56:42 +02:00
parent bbef36c91a
commit 55e6414d85
8 changed files with 126 additions and 26 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ export type Entity = {
* @see https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#objectmeta-v1-meta
* @see https://kubernetes.io/docs/concepts/overview/working-with-objects/kubernetes-objects/
*/
export type EntityMeta = {
export type EntityMeta = Record<string, any> & {
/**
* A globally unique ID for the entity.
*
@@ -26,6 +26,7 @@ export interface TemplateEntityV1alpha1 extends Entity {
kind: typeof KIND;
spec: {
type: string;
path?: string;
};
}
@@ -39,6 +40,7 @@ export class TemplateEntityV1alpha1Policy implements EntityPolicy {
spec: yup
.object({
type: yup.string().required().min(1),
path: yup.string(),
})
.required(),
});