@@ -557,6 +557,47 @@ paths:
557
557
error :
558
558
type : string
559
559
example : You must be authenticated to perform this action
560
+ /builds/fbc-operation :
561
+ post :
562
+ description : >
563
+ Submit a request to add/update FBC fragment to an index image
564
+ requestBody :
565
+ description : The request to add FBC fragment
566
+ required : true
567
+ content :
568
+ application/json :
569
+ schema :
570
+ $ref : ' #/components/schemas/FbcRequest'
571
+ security :
572
+ - Kerberos Authentication : []
573
+ responses :
574
+ ' 201 ' :
575
+ description : The build request was initiated
576
+ content :
577
+ application/json :
578
+ schema :
579
+ $ref : ' #/components/schemas/FbcResponseVerbose'
580
+ ' 400 ' :
581
+ description : The input is invalid
582
+ content :
583
+ application/json :
584
+ schema :
585
+ type : object
586
+ properties :
587
+ error :
588
+ type : string
589
+ example : ' "fbc_fragment" should be a non-empty string'
590
+ ' 401 ' :
591
+ description : >
592
+ The user is not allowed to create a request with this input
593
+ content :
594
+ application/json :
595
+ schema :
596
+ type : object
597
+ properties :
598
+ error :
599
+ type : string
600
+ example : You must be authenticated to perform this action
560
601
/builds/merge-index-image :
561
602
post :
562
603
description : Submit a build request to merge index images
@@ -1357,6 +1398,119 @@ components:
1357
1398
example :
1358
1399
url : https://iib.domain.local/api/v1/builds/1/nested_bundles
1359
1400
expiration : ' 2019-09-19T19:35:15.722265Z'
1401
+ FbcRequest :
1402
+ type : object
1403
+ properties :
1404
+ add_arches :
1405
+ type : array
1406
+ description : >
1407
+ This add_arches array is required when from_index is not provided.
1408
+ items :
1409
+ type : string
1410
+ example :
1411
+ - amd64
1412
+ - s390x
1413
+ binary_image :
1414
+ type : string
1415
+ example : ' quay.io/operator-framework/upstream-registry-builder:v1.26.3'
1416
+ fbc_fragment :
1417
+ type : string
1418
+ description : >
1419
+ fbc_fragment is required.
1420
+ example : ' quay.io/iib-stage/fbc_fragment:4'
1421
+ from_index :
1422
+ type : string
1423
+ description : >
1424
+ from_index is required.
1425
+ example : ' quay.io/iib-stage/iib:4'
1426
+ overwrite_from_index :
1427
+ type : boolean
1428
+ description : >
1429
+ Overwrites the input from_index image with the built index image. This can only be
1430
+ performed when overwrite_from_index_token is provided.
1431
+ default : false
1432
+ overwrite_from_index_token :
1433
+ type : string
1434
+ description : >
1435
+ The token used for reading and overwriting the input from_index image. This is required
1436
+ to use overwrite_from_index. The format of the token is in the format "user:password".
1437
+ example : token
1438
+ distribution_scope :
1439
+ description : >
1440
+ The scope of distribution for the index created by the request.
1441
+ This will determine what level of protection the addition will have.
1442
+ type : string
1443
+ example : ' prod'
1444
+ build_tags :
1445
+ description : >
1446
+ Extra tags applied to intermediate index image
1447
+ type : array
1448
+ items :
1449
+ type : string
1450
+ example : ["v4.5-10-08-2021"]
1451
+ required :
1452
+ - bundles
1453
+ FbcResponse :
1454
+ allOf :
1455
+ - $ref : ' #/components/schemas/BaseResponse'
1456
+ - type : object
1457
+ properties :
1458
+ binary_image :
1459
+ type : string
1460
+ example : ' quay.io/operator-framework/upstream-registry-builder:v1.5.9'
1461
+ binary_image_resolved :
1462
+ type : string
1463
+ example : >-
1464
+ quay.io/operator-framework/upstream-registry-builder@sha256:7d8e5dddad0275bc903b6ef17840f98441b15b8b999609af2c9579960e52080e
1465
+ from_index :
1466
+ type : string
1467
+ example : ' quay.io/iib-stage/iib:4'
1468
+ from_index_resolved :
1469
+ type : string
1470
+ example : >-
1471
+ quay.io/iib-stage/iib@sha256:7d8e5dddad0275bc903b6ef17840f98441b15b8b999609af2c9579960e52080e
1472
+ index_image :
1473
+ type : string
1474
+ example : ' quay.io/iib-stage/iib:5'
1475
+ index_image_resolved :
1476
+ type : string
1477
+ example : ' quay.io/iib-stage/iib@sha256:abcdef012356789'
1478
+ internal_index_image_copy :
1479
+ description : >
1480
+ The pullspec of the internal copy of the index image built by IIB.
1481
+ It will have the same value as index_image when overwrite_from_index
1482
+ is not provided.
1483
+ type : string
1484
+ example : ' quay.io/iib-stage/iib:5'
1485
+ internal_index_image_copy_resolved :
1486
+ description : >
1487
+ The resolved pullspec of the internal copy of the index image built by IIB.
1488
+ It will have the same value as index_image_resolved when overwrite_from_index
1489
+ is not provided.
1490
+ type : string
1491
+ example : ' quay.io/iib-stage/iib@sha256:abcdef012356789'
1492
+ distribution_scope :
1493
+ description : >
1494
+ The scope of distribution for the index created by the request.
1495
+ This determined what level of protection the addition or removal had.
1496
+ type : string
1497
+ example : ' prod'
1498
+ build_tags :
1499
+ description : >
1500
+ Extra tags applied to intermediate index image
1501
+ type : array
1502
+ items :
1503
+ type : string
1504
+ example : ["v4.5-10-08-2021"]
1505
+ request_type :
1506
+ type : string
1507
+ example : fbc-operations
1508
+ fbc_fragment :
1509
+ type : string
1510
+ example : " quay.io/iib/fbc-fragment:v1.0"
1511
+ fbc_fragment_resolved :
1512
+ type : string
1513
+ example : " quay.io/iib/fbc-fragment@sha256:7d8e5dddad0275bc903b6ef17840f98441b15b8b999609af2c9579960e52080e"
1360
1514
RequestUpdate :
1361
1515
type : object
1362
1516
properties :
@@ -1428,6 +1582,10 @@ components:
1428
1582
allOf :
1429
1583
- $ref : ' #/components/schemas/BaseResponseVerbose'
1430
1584
- $ref : ' #/components/schemas/ResponseCreateEmptyIndex'
1585
+ FbcResponseVerbose :
1586
+ allOf :
1587
+ - $ref : ' #/components/schemas/BaseResponseVerbose'
1588
+ - $ref : ' #/components/schemas/FbcResponse'
1431
1589
StateHistory :
1432
1590
type : object
1433
1591
properties :
0 commit comments