-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
containerd 1.7.9 Welcome to the v1.7.9 release of containerd! The ninth patch release for containerd 1.7 contains various fixes and updates. * **update runc binary to v1.1.10::** ([#9359](containerd/containerd#9359)) * **vendor: upgrade OpenTelemetry to v1.19.0 / v0.45.0** ([#9301](containerd/containerd#9301)) * **Expose usage of cri-api v1alpha2** ([#9336](containerd/containerd#9336)) * **integration: deflake TestIssue9103** ([#9354](containerd/containerd#9354)) * **fix: shimv1 leak issue** ([#9344](containerd/containerd#9344)) * **cri: add deprecation warnings for mirrors, auths, and configs** ([#9327](containerd/containerd#9327)) * **Update hcsshim tag to v0.11.4** ([#9326](containerd/containerd#9326)) * **Expose usage of deprecated features** ([#9315](containerd/containerd#9315)) See the changelog for complete list of changes Please try out the release binaries and report any issues at https://github.com/containerd/containerd/issues. * Samuel Karp * Kazuyoshi Kato * Wei Fu * Kirtana Ashok * Derek McGowan * Milas Bowman * Sebastiaan van Stijn * ruiwen-zhao <details><summary>28 commits</summary> <p> * [release/1.7] Add release notes for v1.7.9 ([#9333](containerd/containerd#9333)) * [`4b912af52`](containerd/containerd@4b912af) Add release notes for v1.7.9 * [release/1.7 backport] update runc binary to v1.1.10 ([#9359](containerd/containerd#9359)) * [`eff291713`](containerd/containerd@eff2917) update runc binary to v1.1.10 * [release/1.7] vendor: upgrade OpenTelemetry to v1.19.0 / v0.45.0 ([#9301](containerd/containerd#9301)) * [`bd9428ff7`](containerd/containerd@bd9428f) vendor: upgrade OpenTelemetry to v1.19.0 / v0.45.0 * [release/1.7] Expose usage of cri-api v1alpha2 ([#9336](containerd/containerd#9336)) * [`d62cba40c`](containerd/containerd@d62cba4) Expose usage of cri-api v1alpha2 * [release/1.7] integration: deflake TestIssue9103 ([#9354](containerd/containerd#9354)) * [`5dbc258a8`](containerd/containerd@5dbc258) integration: deflake TestIssue9103 * [release/1.7] fix: shimv1 leak issue ([#9344](containerd/containerd#9344)) * [`449912857`](containerd/containerd@4499128) fix: shimv1 leak issue * [release/1.7] cri: add deprecation warnings for mirrors, auths, and configs ([#9327](containerd/containerd#9327)) * [`152c57e91`](containerd/containerd@152c57e) cri: add deprecation warning for configs * [`689a1036d`](containerd/containerd@689a103) cri: add deprecation warning for auths * [`8c38975bf`](containerd/containerd@8c38975) cri: add deprecation warning for mirrors * [`1fbce40c4`](containerd/containerd@1fbce40) cri: add ability to emit deprecation warnings * [release/1.7] Update hcsshim tag to v0.11.4 ([#9326](containerd/containerd#9326)) * [`73f15bdb6`](containerd/containerd@73f15bd) Update hcsshim tag to v0.11.4 * [release/1.7] Expose usage of deprecated features ([#9315](containerd/containerd#9315)) * [`60d48ffea`](containerd/containerd@60d48ff) ctr: new deprecations command * [`74a06671a`](containerd/containerd@74a0667) plugin: record deprecation for dynamic plugins * [`fa5f3c91a`](containerd/containerd@fa5f3c9) server: add ability to record config deprecations * [`f7880e7f0`](containerd/containerd@f7880e7) pull: record deprecation warning for schema 1 * [`1dd2f2c02`](containerd/containerd@1dd2f2c) introspection: add support for deprecations * [`aaf000c18`](containerd/containerd@aaf000c) api/introspection: deprecation warnings in server * [`9b7ceee54`](containerd/containerd@9b7ceee) warning: new service for deprecations * [`b708f8bfa`](containerd/containerd@b708f8b) deprecation: new package for deprecations </p> </details> * **github.com/Microsoft/hcsshim** v0.11.1 -> v0.11.4 * **github.com/cenkalti/backoff/v4** v4.2.0 -> v4.2.1 * **github.com/go-logr/logr** v1.2.3 -> v1.2.4 * **github.com/grpc-ecosystem/grpc-gateway/v2** v2.7.0 -> v2.16.0 * **go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc** v0.40.0 -> v0.45.0 * **go.opentelemetry.io/otel** v1.14.0 -> v1.19.0 * **go.opentelemetry.io/otel/exporters/otlp/otlptrace** v1.14.0 -> v1.19.0 * **go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc** v1.14.0 -> v1.19.0 * **go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp** v1.14.0 -> v1.19.0 * **go.opentelemetry.io/otel/metric** v0.37.0 -> v1.19.0 * **go.opentelemetry.io/otel/sdk** v1.14.0 -> v1.19.0 * **go.opentelemetry.io/otel/trace** v1.14.0 -> v1.19.0 * **go.opentelemetry.io/proto/otlp** v0.19.0 -> v1.0.0 Previous release can be found at [v1.7.8](https://github.com/containerd/containerd/releases/tag/v1.7.8)
- Loading branch information
Showing
546 changed files
with
43,407 additions
and
13,883 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
/* | ||
Copyright The containerd Authors. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package deprecations | ||
|
||
import ( | ||
"fmt" | ||
"os" | ||
"text/tabwriter" | ||
"time" | ||
|
||
"github.com/urfave/cli" | ||
|
||
api "github.com/containerd/containerd/api/services/introspection/v1" | ||
"github.com/containerd/containerd/cmd/ctr/commands" | ||
"github.com/containerd/containerd/protobuf" | ||
ptypes "github.com/containerd/containerd/protobuf/types" | ||
) | ||
|
||
// Command is the parent for all commands under "deprecations" | ||
var Command = cli.Command{ | ||
Name: "deprecations", | ||
Subcommands: []cli.Command{ | ||
listCommand, | ||
}, | ||
} | ||
var listCommand = cli.Command{ | ||
Name: "list", | ||
Usage: "Print warnings for deprecations", | ||
Flags: []cli.Flag{ | ||
cli.StringFlag{ | ||
Name: "format", | ||
Usage: "output format to use (Examples: 'default', 'json')", | ||
}, | ||
}, | ||
Action: func(context *cli.Context) error { | ||
client, ctx, cancel, err := commands.NewClient(context) | ||
if err != nil { | ||
return err | ||
} | ||
defer cancel() | ||
|
||
resp, err := client.IntrospectionService().Server(ctx, &ptypes.Empty{}) | ||
if err != nil { | ||
return err | ||
} | ||
wrn := warnings(resp) | ||
if len(wrn) > 0 { | ||
switch context.String("format") { | ||
case "json": | ||
commands.PrintAsJSON(warnings(resp)) | ||
return nil | ||
default: | ||
w := tabwriter.NewWriter(os.Stdout, 4, 8, 4, ' ', 0) | ||
fmt.Fprintln(w, "ID\tLAST OCCURRENCE\tMESSAGE\t") | ||
for _, dw := range wrn { | ||
if _, err := fmt.Fprintf(w, "%s\t%s\t%s\n", | ||
dw.ID, | ||
dw.LastOccurrence.Format(time.RFC3339Nano), | ||
dw.Message, | ||
); err != nil { | ||
return err | ||
} | ||
} | ||
return w.Flush() | ||
} | ||
|
||
} | ||
return nil | ||
}, | ||
} | ||
|
||
type deprecationWarning struct { | ||
ID string `json:"id"` | ||
Message string `json:"message"` | ||
LastOccurrence time.Time `json:"lastOccurrence"` | ||
} | ||
|
||
func warnings(in *api.ServerResponse) []deprecationWarning { | ||
var warnings []deprecationWarning | ||
for _, dw := range in.Deprecations { | ||
wrn := deprecationWarningFromPB(dw) | ||
if wrn == nil { | ||
continue | ||
} | ||
warnings = append(warnings, *wrn) | ||
} | ||
return warnings | ||
} | ||
func deprecationWarningFromPB(in *api.DeprecationWarning) *deprecationWarning { | ||
if in == nil { | ||
return nil | ||
} | ||
lo := protobuf.FromTimestamp(in.LastOccurrence) | ||
return &deprecationWarning{ | ||
ID: in.ID, | ||
Message: in.Message, | ||
LastOccurrence: lo, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.