From f01f62f6f3dc8bb27d55f5b99d262040ba9042dc Mon Sep 17 00:00:00 2001 From: Debaditya Date: Tue, 25 Jun 2024 17:42:12 +0530 Subject: [PATCH] Added all fields for stack Signed-off-by: Ray --- resource/stack.go | 11 +++++++---- testutil/template/stack.json | 3 +++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/resource/stack.go b/resource/stack.go index c64d08b6..82b2278b 100644 --- a/resource/stack.go +++ b/resource/stack.go @@ -4,10 +4,13 @@ package resource // application will execute in. A stack is how you configure applications to run against different // operating systems (like Windows or Linux) and different versions of those operating systems. type Stack struct { - Name string `json:"name"` - Description string `json:"description"` - Metadata *Metadata `json:"metadata"` - Resource `json:",inline"` + Name string `json:"name"` + Description *string `json:"description"` + RunRootfsImage string `json:"run_rootfs_image"` + BuildRootfsImage string `json:"build_rootfs_image"` + Default bool `json:"default"` + Metadata *Metadata `json:"metadata"` + Resource `json:",inline"` } type StackCreate struct { diff --git a/testutil/template/stack.json b/testutil/template/stack.json index fe647db0..2946f624 100644 --- a/testutil/template/stack.json +++ b/testutil/template/stack.json @@ -4,6 +4,9 @@ "updated_at": "2018-11-09T22:43:28Z", "name": "{{.Name}}", "description": "Here is my stack!", + "build_rootfs_image": "{{.Name}}", + "run_rootfs_image": "{{.Name}}", + "default": false, "metadata": { "labels": { }, "annotations": { }