Skip to content

Commit 217318c

Browse files
authored
deprecate estargz (google#1660)
* deprecate estargz * also deprecate crane optimize * just delete 'crane optimize' and crane.Optimize
1 parent 1cb7e13 commit 217318c

File tree

7 files changed

+6
-463
lines changed

7 files changed

+6
-463
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Over time, we will add new functionality under experimental environment variable
3636

3737
| Env Var | Value(s) | What is does |
3838
|---------|----------|--------------|
39-
| `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. |
39+
| `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. |
4040

4141

4242
### `v1.Image`

cmd/crane/cmd/optimize.go

-42
This file was deleted.

cmd/crane/cmd/root.go

-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ func New(use, short string, options []crane.Option) *cobra.Command {
123123
NewCmdList(&options),
124124
NewCmdManifest(&options),
125125
NewCmdMutate(&options),
126-
NewCmdOptimize(&options),
127126
NewCmdPull(&options),
128127
NewCmdPush(&options),
129128
NewCmdRebase(&options),

pkg/crane/crane_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,6 @@ func TestBadInputs(t *testing.T) {
549549
{"Tag(invalid, invalid)", crane.Tag(invalid, invalid)},
550550
{"Tag(404, invalid)", crane.Tag(valid404, invalid)},
551551
{"Tag(404, 404)", crane.Tag(valid404, valid404)},
552-
{"Optimize(invalid, invalid)", crane.Optimize(invalid, invalid, []string{})},
553-
{"Optimize(404, invalid)", crane.Optimize(valid404, invalid, []string{})},
554-
{"Optimize(404, 404)", crane.Optimize(valid404, valid404, []string{})},
555552
// These return multiple values, which are hard to use as expressions.
556553
{"Pull(invalid)", e(crane.Pull(invalid))},
557554
{"Digest(invalid)", e(crane.Digest(invalid))},

pkg/crane/optimize.go

-237
This file was deleted.

0 commit comments

Comments
 (0)