From 1ebe0596168a1ce819f2d00d3999886c800e7bbe Mon Sep 17 00:00:00 2001 From: zzjin Date: Sun, 8 Oct 2023 15:17:53 +0800 Subject: [PATCH] Add app template draft spec. Signed-off-by: zzjin --- controllers/app/api/v1/template_types.go | 1 + controllers/app/config/crd/bases/app.sealos.io_instances.yaml | 2 ++ controllers/app/config/crd/bases/app.sealos.io_templates.yaml | 2 ++ controllers/app/deploy/manifests/deploy.yaml | 4 ++++ 4 files changed, 9 insertions(+) diff --git a/controllers/app/api/v1/template_types.go b/controllers/app/api/v1/template_types.go index c3f4a6feab0..6394f417a5a 100644 --- a/controllers/app/api/v1/template_types.go +++ b/controllers/app/api/v1/template_types.go @@ -65,6 +65,7 @@ type TemplateData struct { Readme string `json:"readme,omitempty"` Icon string `json:"icon,omitempty"` TemplateType TemplateType `json:"templateType"` + Draft bool `json:"draft,omitempty"` Defaults Defaults `json:"defaults,omitempty"` Inputs Inputs `json:"inputs,omitempty"` } diff --git a/controllers/app/config/crd/bases/app.sealos.io_instances.yaml b/controllers/app/config/crd/bases/app.sealos.io_instances.yaml index c21cb543f0a..c9a709f9052 100644 --- a/controllers/app/config/crd/bases/app.sealos.io_instances.yaml +++ b/controllers/app/config/crd/bases/app.sealos.io_instances.yaml @@ -50,6 +50,8 @@ spec: type: object description: type: string + draft: + type: boolean gitRepo: type: string icon: diff --git a/controllers/app/config/crd/bases/app.sealos.io_templates.yaml b/controllers/app/config/crd/bases/app.sealos.io_templates.yaml index 5cf36ebb39c..3e85a52271a 100644 --- a/controllers/app/config/crd/bases/app.sealos.io_templates.yaml +++ b/controllers/app/config/crd/bases/app.sealos.io_templates.yaml @@ -50,6 +50,8 @@ spec: type: object description: type: string + draft: + type: boolean gitRepo: type: string icon: diff --git a/controllers/app/deploy/manifests/deploy.yaml b/controllers/app/deploy/manifests/deploy.yaml index e5c87c60aa1..e79ef410e4e 100644 --- a/controllers/app/deploy/manifests/deploy.yaml +++ b/controllers/app/deploy/manifests/deploy.yaml @@ -169,6 +169,8 @@ spec: type: object description: type: string + draft: + type: boolean gitRepo: type: string icon: @@ -263,6 +265,8 @@ spec: type: object description: type: string + draft: + type: boolean gitRepo: type: string icon: