Skip to content

Commit 8eecc8c

Browse files
jbtrystramjlebon
authored andcommitted
schema: support multiple images destinations
In coreos/fedora-coreos-pipeline#1091 we added the possibility of publishing container images to multiples repositories. This needs to be reflected in the schema otherwhise we only record one image (currenlty the last pushed). Add a `primary-image` key that extends image by adding an `additional-images` array. Use that for relevant container images objects. See coreos/fedora-coreos-pipeline#1099
1 parent 2591f57 commit 8eecc8c

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/v1.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,20 @@
8585
}
8686
}
8787
},
88+
"primary-image": {
89+
"type": "object",
90+
"extends": "#/image",
91+
"optional": [
92+
"additional-images"
93+
],
94+
"properties": {
95+
"additional-images": {
96+
"$id": "#/image",
97+
"type": "array",
98+
"title": "Additional images"
99+
}
100+
}
101+
},
88102
"cloudartifact": {
89103
"type": "object",
90104
"required": [
@@ -702,7 +716,7 @@
702716
"$id": "#/properties/oscontainer",
703717
"type": "object",
704718
"title": "Oscontainer",
705-
"$ref": "#/definitions/image"
719+
"$ref": "#/definitions/primary-image"
706720
},
707721
"extensions": {
708722
"$id": "#/properties/extensions",
@@ -921,13 +935,13 @@
921935
"$id": "#/properties/base-oscontainer",
922936
"type": "object",
923937
"title": "Base OS container",
924-
"$ref": "#/definitions/image"
938+
"$ref": "#/definitions/primary-image"
925939
},
926940
"extensions-container": {
927941
"$id": "#/properties/extensions-container",
928942
"type": "object",
929943
"title": "Extensions container",
930-
"$ref": "#/definitions/image"
944+
"$ref": "#/definitions/primary-image"
931945
},
932946
"gcp": {
933947
"$id": "#/properties/gcp",
@@ -968,7 +982,7 @@
968982
"$id": "#/properties/kubevirt",
969983
"type": "object",
970984
"title": "Kubevirt container",
971-
"$ref": "#/definitions/image"
985+
"$ref": "#/definitions/primary-image"
972986
},
973987
"ibmcloud": {
974988
"$id": "#/properties/ibmcloud",

0 commit comments

Comments
 (0)