Skip to content

Commit

Permalink
feat: revert "feat: remove .metadata.image from schema (#2606)" (#2618)
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinAbro321 authored Jul 22, 2024
1 parent 1c3e426 commit 0d3d0c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/types/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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."`
Expand Down
4 changes: 4 additions & 0 deletions zarf.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,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"
Expand Down

0 comments on commit 0d3d0c3

Please sign in to comment.