Skip to content

Commit 2ebd2b9

Browse files
committed
hack/rhcos: add README
Documents how to run the rhcos stream marketplace populator program.
1 parent 963ac1d commit 2ebd2b9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

hack/rhcos/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Populating the RHCOS Stream Marketplace Extension
2+
3+
This tool is used to reach out to cloud sdks and populate the
4+
data/data/coreos/marketplace-rhcos.json file. That file represents
5+
the mareketplace extension to the rhcos stream and is merged into
6+
the stream.
7+
8+
To run the program:
9+
10+
```shell
11+
go run -mod=vendor ./hack/rhcos/populate-marketplace-imagestream.go
12+
```
13+
14+
The program will find marketplace images based on the version of the
15+
RHCOS stream. The version can be overriden with the
16+
`STREAM_RELEASE_OVERRIDE` variable. This is useful if you are working
17+
on the main branch, where up-to-date images are not available. For
18+
example, looking up Azure images requires knowing the X.Y version
19+
to populate the offer, so when working on the main branch (4.20),
20+
it is necessary to run the following command to correctly populate
21+
the stream:
22+
23+
```shell
24+
STREAM_RELEASE_OVERRIDE=4.19 go run -mod=vendor ./hack/rhcos/populate-marketplace-imagestream.go
25+
```

0 commit comments

Comments
 (0)