gen-manifests: add ostree rhsm option

This commit is contained in:
Sanne Raymaekers 2022-12-08 16:58:40 +01:00 committed by Achilleas Koutsou
parent cb127cd1b0
commit 369f237d89
3 changed files with 5 additions and 1 deletions

View file

@ -53,6 +53,7 @@ type ostreeOptions struct {
Ref string `json:"ref"`
URL string `json:"url"`
Parent string `json:"parent"`
RHSM bool `json:"rhsm"`
}
type crBlueprint struct {
@ -120,6 +121,7 @@ func makeManifestJob(name string, imgType distro.ImageType, cr composeRequest, d
URL: cr.OSTree.URL,
ImageRef: cr.OSTree.Ref,
FetchChecksum: cr.OSTree.Parent,
RHSM: cr.OSTree.RHSM,
}
}

View file

@ -95,6 +95,7 @@ func TestDistro_Manifest(t *testing.T, pipelinePath string, prefix string, regis
ImageRef: tt.ComposeRequest.OSTree.Ref,
FetchChecksum: tt.ComposeRequest.OSTree.Parent,
URL: tt.ComposeRequest.OSTree.URL,
RHSM: tt.ComposeRequest.OSTree.RHSM,
}
}
}

View file

@ -538,7 +538,8 @@
"ostree": {
"ref": "test/edge",
"url": "http://edge.example.com/repo",
"parent": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
"parent": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
"rhsm": true
},
"blueprint": {}
},