Skip to content

Commit bda3e15

Browse files
committed
refactor: Removed kiln upload-release command
Removed the code, docs and tests around kiln upload release command [TNZ-33162] - [Kiln]: Remove upload-release command, its corresponding code, docs and tests from Kiln repo JIRA Link: https://vmw-jira.broadcom.net/browse/TNZ-33162 Date: 05-Mar-2025 Authored-by: Ramkumar Vengadakrishnan <ramkumar.vengadakrishnan@broadcom.com>
1 parent 7857dc6 commit bda3e15

15 files changed

Lines changed: 8 additions & 1000 deletions

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ Usage: kiln [options] <command> [<args>]
158158
159159
Commands:
160160
bake bakes a tile
161-
cache-compiled-releases Cache compiled releases
162161
fetch fetches releases
163162
find-release-version prints a json string of a remote release satisfying the Kilnfile version and stemcell constraints
164163
find-stemcell-version prints the latest stemcell version from Pivnet using the stemcell type listed in the Kilnfile
@@ -172,7 +171,6 @@ Commands:
172171
test Test manifest for a product
173172
update-release bumps a release to a new version
174173
update-stemcell updates stemcell and release information in Kilnfile.lock
175-
upload-release uploads a BOSH release to an s3 release_source
176174
validate validate Kilnfile and Kilnfile.lock
177175
version prints the kiln release version
178176
```

TILE_AUTHOR_GUIDE.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ Please see [Path Templates](#path-templates). The value of `remote_path` in the
403403

404404
#### <a id='release-source-s3'></a> AWS S3
405405

406-
Kiln can fetch and upload releases to/from AWS S3.
406+
Kiln can fetch releases from AWS S3.
407407

408408
```yaml
409409
release_sources:
@@ -464,9 +464,6 @@ om upload-product --product=tile.pivotal
464464
om configure-product --config=simple_config.yml
465465
om apply-changes --product-name=my-tile-name
466466
467-
# Download Compiled BOSH Releases from the BOSH Director and Upload them to the S3 Bucket or Artifactory
468-
kiln cache-compiled-releases --upload-target-id=my_compiled_release_bucket --name=hello
469-
470467
# Commit and push the changes to Kilnfile.lock
471468
git add -p Kilnfile.lock
472469
git commit -m "compile BOSH Releases with $(yq '.stemcell_criteria.os' Kilnfile.lock)/$(yq '.stemcell_criteria.version' Kilnfile.lock)"

internal/acceptance/workflows/using_kiln.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,4 @@ Feature: As a developer, I want the Kiln CLI to be usable
4343
| sync-with-local |
4444
| update-release |
4545
| update-stemcell |
46-
| upload-release |
47-
| validate |
46+
| validate |

internal/commands/fakes/release_uploader_finder.go

Lines changed: 0 additions & 119 deletions
This file was deleted.

internal/commands/generate_osm_manifest_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,3 @@ func writeYAMLHelper(t *testing.T, path string, data any) {
352352
t.Fatal(err)
353353
}
354354
}
355-
356-
func writeYAML(path string, data any) error {
357-
buf, err := yaml.Marshal(data)
358-
if err != nil {
359-
return err
360-
}
361-
return os.WriteFile(path, buf, 0o666)
362-
}

internal/commands/upload_release.go

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)