Skip to content

Commit

Permalink
deprecate estargz (#1660)
Browse files Browse the repository at this point in the history
* deprecate estargz

* also deprecate crane optimize

* just delete 'crane optimize' and crane.Optimize
  • Loading branch information
imjasonh committed Apr 19, 2023
1 parent 1cb7e13 commit 217318c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 463 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Over time, we will add new functionality under experimental environment variable

| Env Var | Value(s) | What is does |
|---------|----------|--------------|
| `GGCR_EXPERIMENT_ESTARGZ` | `"1"` | When enabled this experiment will direct `tarball.LayerFromOpener` to emit [estargz](https://github.com/opencontainers/image-spec/issues/815) compatible layers, which enable them to be lazily loaded by an appropriately configured containerd. |
| `GGCR_EXPERIMENT_ESTARGZ` | `"1"` | ⚠️DEPRECATED⚠️: When enabled this experiment will direct `tarball.LayerFromOpener` to emit [estargz](https://github.com/opencontainers/image-spec/issues/815) compatible layers, which enable them to be lazily loaded by an appropriately configured containerd. |


### `v1.Image`
Expand Down
42 changes: 0 additions & 42 deletions cmd/crane/cmd/optimize.go

This file was deleted.

1 change: 0 additions & 1 deletion cmd/crane/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ func New(use, short string, options []crane.Option) *cobra.Command {
NewCmdList(&options),
NewCmdManifest(&options),
NewCmdMutate(&options),
NewCmdOptimize(&options),
NewCmdPull(&options),
NewCmdPush(&options),
NewCmdRebase(&options),
Expand Down
3 changes: 0 additions & 3 deletions pkg/crane/crane_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,6 @@ func TestBadInputs(t *testing.T) {
{"Tag(invalid, invalid)", crane.Tag(invalid, invalid)},
{"Tag(404, invalid)", crane.Tag(valid404, invalid)},
{"Tag(404, 404)", crane.Tag(valid404, valid404)},
{"Optimize(invalid, invalid)", crane.Optimize(invalid, invalid, []string{})},
{"Optimize(404, invalid)", crane.Optimize(valid404, invalid, []string{})},
{"Optimize(404, 404)", crane.Optimize(valid404, valid404, []string{})},
// These return multiple values, which are hard to use as expressions.
{"Pull(invalid)", e(crane.Pull(invalid))},
{"Digest(invalid)", e(crane.Digest(invalid))},
Expand Down
237 changes: 0 additions & 237 deletions pkg/crane/optimize.go

This file was deleted.

Loading

0 comments on commit 217318c

Please sign in to comment.