Skip to content

Commit 34ad5fb

Browse files
committedOct 21, 2021
Update all references to buildprep
Follow up to 0d90ad4.
1 parent 650374b commit 34ad5fb

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed
 

‎docs/cosa.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ Those less commonly used commands are listed here:
5555
| ---- | ----------- |
5656
| [basearch](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-basearch) | Convenient wrapper for getting the base architecture
5757
| [build-validate](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-build-validate) | Validate the checksum of a given build
58-
| [buildprep](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-buildprep) | Fetches the bare minimum from external servers to create the next build
59-
| [buildupload](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-buildupload) | Upload a build which later can be partially re-downloaded with cmd-buildprep
58+
| [buildfetch](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-buildfetch) | Fetches the bare minimum from external servers to create the next build
59+
| [buildupload](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-buildupload) | Upload a build which later can be partially re-downloaded with cmd-buildfetch
6060
| [compress](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-compress) | Compresses all images in a build
6161
| [dev-overlay](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-dev-overlay) | Add content on top of a commit, handling SELinux labeling etc.
6262
| [dev-synthesize-osupdate](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-dev-synthesize-osupdate) | Synthesize an OS update by modifying ELF files in a "benign" way (adding an ELF note)

‎docs/design.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ that change.
6868

6969
## Managing data
7070

71-
cosa offers `buildprep` which downloads builds from `https://` or `s3://`, as
71+
cosa offers `buildfetch` which downloads builds from `https://` or `s3://`, as
7272
well as a `buildupload` which is oriented around S3 today. However, there are
7373
a wide variety of S3-compatible storage systems, so you are not tied to AWS.

‎docs/gangplank/usage.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ archives:
302302
stages:
303303
- id: prep
304304
command:
305-
- cosa buildprep s3://{{.JobSpec.Archives.S3.Bucket}}/{{.JobSpec.Archives.S3.Path}}
305+
- cosa buildfetch --url=s3://{{.JobSpec.Archives.S3.Bucket}}/{{.JobSpec.Archives.S3.Path}}
306306
```
307307
308-
The above example will run the CoreOS Assembler command `cosa buildprep s3://darkarts/magicalmysteries`.
308+
The above example will run the CoreOS Assembler command `cosa buildfetch --url=s3://darkarts/magicalmysteries`.
309309
310310
#### meta.json
311311

‎src/cmd-buildupload

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/python3
22

3-
# The inverse of cmd-buildprep (i.e. we upload a build which later can be
4-
# partially re-downloaded with cmd-buildprep).
3+
# The inverse of cmd-buildfetch (i.e. we upload a build which later can be
4+
# partially re-downloaded with cmd-buildfetch).
55

66
import argparse
77
import json
@@ -63,7 +63,7 @@ def cmd_upload_s3(args):
6363
builds = Builds()
6464
# This can't be an error for backcompat reasons, but let's print something
6565
if not os.path.isfile(BUILDFILES['sourceurl']):
66-
print(f"NOTICE: No {BUILDFILES['sourceurl']} file; uploading without buildprep?")
66+
print(f"NOTICE: No {BUILDFILES['sourceurl']} file; uploading without buildfetch?")
6767
if args.build == 'latest':
6868
args.build = builds.get_latest()
6969
print(f"Targeting build: {args.build}")

‎src/coreos-assembler

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cmd=${1:-}
4343
# commands we'd expect to use in the local dev path
4444
build_commands="init fetch build run prune clean list"
4545
# commands more likely to be used in a prod pipeline only
46-
advanced_build_commands="buildprep buildupload oc-adm-release upload-oscontainer"
46+
advanced_build_commands="buildfetch buildupload oc-adm-release upload-oscontainer"
4747
buildextend_commands="aliyun aws azure digitalocean exoscale gcp ibmcloud live metal metal4k openstack qemu vmware vultr"
4848
utility_commands="aws-replicate compress generate-hashlist koji-upload kola remote-prune sign tag"
4949
other_commands="shell meta"

‎src/cosalib/builds.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
'list': 'builds/builds.json',
2626
# This copy of builds.json tracks what we last downloaded from the source
2727
'sourcedata': 'tmp/builds-source.json',
28-
# This tracks the URL passed to buildprep
28+
# This tracks the URL passed to buildfetch
2929
'sourceurl': 'tmp/builds-source.txt',
3030
}
3131

0 commit comments

Comments
 (0)