Skip to content

Commit

Permalink
schema: Add entry for baseos-container
Browse files Browse the repository at this point in the history
For now, we need to support having the new format oscontainer in
`meta.json`.

Part of #2685
And see #2685 (comment)
in particular.
  • Loading branch information
cgwalters authored and jlebon committed Jun 13, 2022
1 parent 75b7978 commit 432636d
Show file tree
Hide file tree
Showing 8 changed files with 101 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion schema/cosa/cosa_v1.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cosa

// generated by 'make schema'
// source hash: be093d10a3ebf57e28907a5676a88928631bb09eee602dff89f381ddd1ca8f5e
// source hash: ec49fcff4b25566b5f515909fd5fcc22a51c169449e8a6f50390551f7bf97506

type AdvisoryDiff []AdvisoryDiffItems

Expand All @@ -27,13 +27,18 @@ type Artifact struct {
UncompressedSize int `json:"uncompressed-size,omitempty"`
}

type BaseOsContainer struct {
Image string `json:"image"`
}

type Build struct {
AdvisoryDiffAgainstParent AdvisoryDiff `json:"parent-advisories-diff,omitempty"`
AdvisoryDiffBetweenBuilds AdvisoryDiff `json:"advisories-diff,omitempty"`
AlibabaAliyunUploads []AliyunImage `json:"aliyun,omitempty"`
Amis []Amis `json:"amis,omitempty"`
Architecture string `json:"coreos-assembler.basearch,omitempty"`
Azure *Cloudartifact `json:"azure,omitempty"`
BaseOsContainer *BaseOsContainer `json:"base-oscontainer,omitempty"`
BuildArtifacts *BuildArtifacts `json:"images,omitempty"`
BuildID string `json:"buildid"`
BuildRef string `json:"ref,omitempty"`
Expand Down
18 changes: 17 additions & 1 deletion schema/cosa/schema_doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated by ./generate-schema.sh
// Source hash: be093d10a3ebf57e28907a5676a88928631bb09eee602dff89f381ddd1ca8f5e
// Source hash: ec49fcff4b25566b5f515909fd5fcc22a51c169449e8a6f50390551f7bf97506
// DO NOT EDIT

package cosa
Expand Down Expand Up @@ -211,6 +211,7 @@ var generatedSchemaJSON = `{
"amis",
"azure",
"azurestack",
"base-oscontainer",
"build-url",
"digitalocean",
"exoscale",
Expand Down Expand Up @@ -842,6 +843,21 @@ var generatedSchemaJSON = `{
"title":"Azure",
"$ref": "#/definitions/cloudartifact"
},
"base-oscontainer": {
"$id":"#/properties/base-oscontainer",
"type":"object",
"title":"Base OS container",
"required": [
"image"
],
"properties": {
"image": {
"$id":"#/properties/base-oscontainer/image",
"type":"string",
"title":"Image"
}
}
},
"gcp": {
"$id":"#/properties/gcp",
"type":"object",
Expand Down
16 changes: 16 additions & 0 deletions schema/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
"amis",
"azure",
"azurestack",
"base-oscontainer",
"build-url",
"digitalocean",
"exoscale",
Expand Down Expand Up @@ -836,6 +837,21 @@
"title":"Azure",
"$ref": "#/definitions/cloudartifact"
},
"base-oscontainer": {
"$id":"#/properties/base-oscontainer",
"type":"object",
"title":"Base OS container",
"required": [
"image"
],
"properties": {
"image": {
"$id":"#/properties/base-oscontainer/image",
"type":"string",
"title":"Image"
}
}
},
"gcp": {
"$id":"#/properties/gcp",
"type":"object",
Expand Down
16 changes: 16 additions & 0 deletions src/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
"amis",
"azure",
"azurestack",
"base-oscontainer",
"build-url",
"digitalocean",
"exoscale",
Expand Down Expand Up @@ -836,6 +837,21 @@
"title":"Azure",
"$ref": "#/definitions/cloudartifact"
},
"base-oscontainer": {
"$id":"#/properties/base-oscontainer",
"type":"object",
"title":"Base OS container",
"required": [
"image"
],
"properties": {
"image": {
"$id":"#/properties/base-oscontainer/image",
"type":"string",
"title":"Image"
}
}
},
"gcp": {
"$id":"#/properties/gcp",
"type":"object",
Expand Down

0 comments on commit 432636d

Please sign in to comment.