From 30c244128ce31c9e971d8d45b4ec5f8ef31610e2 Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Wed, 12 Jun 2024 19:33:06 +0000 Subject: [PATCH] Revert "feat: remove .metadata.image from schema (#2606)" This reverts commit ed2f876dc0ff2fed647b64d62f5a0843d41eed75. --- src/types/package.go | 1 + zarf.schema.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/types/package.go b/src/types/package.go index 5b7e734f3c..99ac9ef008 100644 --- a/src/types/package.go +++ b/src/types/package.go @@ -47,6 +47,7 @@ type ZarfMetadata struct { Description string `json:"description,omitempty" jsonschema:"description=Additional information about this package"` Version string `json:"version,omitempty" jsonschema:"description=Generic string set by a package author to track the package version (Note: ZarfInitConfigs will always be versioned to the CLIVersion they were created with)"` URL string `json:"url,omitempty" jsonschema:"description=Link to package information when online"` + Image string `json:"image,omitempty" jsonschema:"description=An image URL to embed in this package (Reserved for future use in Zarf UI)"` Uncompressed bool `json:"uncompressed,omitempty" jsonschema:"description=Disable compression of this package"` Architecture string `json:"architecture,omitempty" jsonschema:"description=The target cluster architecture for this package,example=arm64,example=amd64"` YOLO bool `json:"yolo,omitempty" jsonschema:"description=Yaml OnLy Online (YOLO): True enables deploying a Zarf package without first running zarf init against the cluster. This is ideal for connected environments where you want to use existing VCS and container registries."` diff --git a/zarf.schema.json b/zarf.schema.json index c26bc550ff..0f43c9dbe5 100644 --- a/zarf.schema.json +++ b/zarf.schema.json @@ -1018,6 +1018,10 @@ "type": "string", "description": "Link to package information when online" }, + "image": { + "type": "string", + "description": "An image URL to embed in this package (Reserved for future use in Zarf UI)" + }, "uncompressed": { "type": "boolean", "description": "Disable compression of this package"