Skip to content

Commit

Permalink
schema: Add entry for base-oscontainer
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 coreos#2685
And see coreos#2685 (comment)
in particular.
  • Loading branch information
cgwalters committed Jun 8, 2022
1 parent 4db0e09 commit b43bc2f
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
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: db5eff281bcc21027045f669a0583557e8fe7116bd44e90aef798fab7280b916

type AdvisoryDiff []AdvisoryDiffItems

Expand Down Expand Up @@ -61,6 +61,7 @@ type Build struct {
Name string `json:"name"`
Oscontainer *Image `json:"oscontainer,omitempty"`
OstreeCommit string `json:"ostree-commit"`
OstreeContainerImage *OstreeContainerImage `json:"baseos-container,omitempty"`
OstreeContentBytesWritten int `json:"ostree-content-bytes-written,omitempty"`
OstreeContentChecksum string `json:"ostree-content-checksum"`
OstreeNCacheHits int `json:"ostree-n-cache-hits,omitempty"`
Expand Down Expand Up @@ -153,6 +154,10 @@ type KubeVirt struct {
Image string `json:"image"`
}

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

type PackageSetDifferences []PackageSetDifferencesItems

type PackageSetDifferencesItems interface{}
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: db5eff281bcc21027045f669a0583557e8fe7116bd44e90aef798fab7280b916
// DO NOT EDIT

package cosa
Expand Down Expand Up @@ -211,6 +211,7 @@ var generatedSchemaJSON = `{
"amis",
"azure",
"azurestack",
"baseos-container",
"build-url",
"digitalocean",
"exoscale",
Expand Down Expand Up @@ -842,6 +843,21 @@ var generatedSchemaJSON = `{
"title":"Azure",
"$ref": "#/definitions/cloudartifact"
},
"baseos-container": {
"$id":"#/properties/baseos-container",
"type":"object",
"title":"OSTree container image",
"required": [
"image"
],
"properties": {
"image": {
"$id":"#/properties/baseos-container/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",
"baseos-container",
"build-url",
"digitalocean",
"exoscale",
Expand Down Expand Up @@ -836,6 +837,21 @@
"title":"Azure",
"$ref": "#/definitions/cloudartifact"
},
"baseos-container": {
"$id":"#/properties/baseos-container",
"type":"object",
"title":"OSTree container image",
"required": [
"image"
],
"properties": {
"image": {
"$id":"#/properties/baseos-container/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",
"baseos-container",
"build-url",
"digitalocean",
"exoscale",
Expand Down Expand Up @@ -836,6 +837,21 @@
"title":"Azure",
"$ref": "#/definitions/cloudartifact"
},
"baseos-container": {
"$id":"#/properties/baseos-container",
"type":"object",
"title":"OSTree container image",
"required": [
"image"
],
"properties": {
"image": {
"$id":"#/properties/baseos-container/image",
"type":"string",
"title":"Image"
}
}
},
"gcp": {
"$id":"#/properties/gcp",
"type":"object",
Expand Down

0 comments on commit b43bc2f

Please sign in to comment.