Skip to content

Commit 2ba481e

Browse files
committed
cmd-coreos-prune: Rename cmd-cloud-prune to cmd-coreos-prune
Rename cmd-cloud-prune to cmd-coreos-prune since it doesn't limit the garbage collection to just cloud resources but rather all other resources too.
1 parent 7927fc6 commit 2ba481e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ schema-check:
9191
# Is the generated Go code synced with the schema?
9292
grep -q "$(DIGEST)" pkg/builds/cosa_v1.go
9393
grep -q "$(DIGEST)" pkg/builds/schema_doc.go
94-
grep -q "$(DIGEST)" src/cmd-cloud-prune
94+
grep -q "$(DIGEST)" src/cmd-coreos-prune
9595

9696
install:
9797
install -d $(DESTDIR)$(PREFIX)/lib/coreos-assembler

cmd/coreos-assembler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var buildCommands = []string{"init", "fetch", "build", "osbuild", "run", "prune"
1616
var advancedBuildCommands = []string{"buildfetch", "buildupload", "oc-adm-release", "push-container"}
1717
var buildextendCommands = []string{"aliyun", "applehv", "aws", "azure", "digitalocean", "exoscale", "extensions-container", "gcp", "hyperv", "ibmcloud", "kubevirt", "live", "metal", "metal4k", "nutanix", "openstack", "qemu", "secex", "virtualbox", "vmware", "vultr"}
1818

19-
var utilityCommands = []string{"aws-replicate", "cloud-prune", "compress", "copy-container", "koji-upload", "kola", "push-container-manifest", "remote-build-container", "remote-session", "sign", "tag", "update-variant"}
19+
var utilityCommands = []string{"aws-replicate", "coreos-prune", "compress", "copy-container", "koji-upload", "kola", "push-container-manifest", "remote-build-container", "remote-session", "sign", "tag", "update-variant"}
2020
var otherCommands = []string{"shell", "meta"}
2121

2222
func init() {

docs/cosa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Those less commonly used commands are listed here:
6565
| [oc-adm-release](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-oc-adm-release) | Publish an oscontainer as the machine-os-content in an OpenShift release series
6666
| [offline-update](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-offline-update) | Given a disk image and a coreos-assembler build, use supermin to update the disk image to the target OSTree commit "offline"
6767
| [prune](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-prune) | This script removes previous builds. DO NOT USE on production pipelines
68-
| [cloud-prune](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-cloud-prune) | Prune resources as sepcified in policy.yaml
68+
| [coreos-prune](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-coreos-prune) | Prune resources as sepcified in policy.yaml
6969
| [sign](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-sign) | Implements signing with RoboSignatory via fedora-messaging
7070
| [supermin-shell](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-supermin-shell) | Get a supermin shell
7171
| [tag](https://github.com/coreos/coreos-assembler/blob/main/src/cmd-tag) | Operate on the tags in `builds.json`

src/cmd-cloud-prune renamed to src/cmd-coreos-prune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ UNSUPPORTED = ["aliyun", "azure", "ibmcloud", "powervs"]
6464

6565

6666
def parse_args():
67-
parser = argparse.ArgumentParser(prog="coreos-assembler cloud-prune")
67+
parser = argparse.ArgumentParser(prog="coreos-assembler coreos-prune")
6868
parser.add_argument("--policy", required=True, type=str, help="Path to policy YAML file")
6969
parser.add_argument("--dry-run", help="Don't actually delete anything", action='store_true')
7070
parser.add_argument("--upload-builds-json", help="Push builds.json", action='store_true')

0 commit comments

Comments
 (0)