Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5802b429
Commit
5802b429
authored
Aug 13, 2021
by
Brad Davidson
Committed by
Brad Davidson
Aug 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump containerd to v1.4.9-k3s1
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
abb6581a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
70 additions
and
27 deletions
+70
-27
go.mod
go.mod
+1
-1
go.sum
go.sum
+2
-2
go.mod
vendor/github.com/containerd/containerd/go.mod
+9
-5
go.sum
vendor/github.com/containerd/containerd/go.sum
+0
-0
authorizer.go
...ub.com/containerd/containerd/remotes/docker/authorizer.go
+7
-0
fetcher.go
...ithub.com/containerd/containerd/remotes/docker/fetcher.go
+6
-2
pusher.go
...github.com/containerd/containerd/remotes/docker/pusher.go
+3
-0
resolver.go
...thub.com/containerd/containerd/remotes/docker/resolver.go
+38
-13
version.go
vendor/github.com/containerd/containerd/version/version.go
+1
-1
modules.txt
vendor/modules.txt
+3
-3
No files found.
go.mod
View file @
5802b429
...
...
@@ -9,7 +9,7 @@ replace (
github.com/containerd/btrfs => github.com/containerd/btrfs v1.0.0
github.com/containerd/cgroups => github.com/containerd/cgroups v1.0.1
github.com/containerd/console => github.com/containerd/console v1.0.2
github.com/containerd/containerd => github.com/k3s-io/containerd v1.4.
8
-k3s1 // k3s-release/1.4
github.com/containerd/containerd => github.com/k3s-io/containerd v1.4.
9
-k3s1 // k3s-release/1.4
github.com/containerd/continuity => github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1
github.com/containerd/cri => github.com/k3s-io/cri v1.4.0-k3s.7 // k3s-release/1.4
github.com/containerd/fifo => github.com/containerd/fifo v1.0.0
...
...
go.sum
View file @
5802b429
...
...
@@ -524,8 +524,8 @@ github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
github.com/k3s-io/containerd v1.4.
8-k3s1 h1:p4Z22iGEy7EaOCDChlgojqm6Jnziv19EuqnnLnK4tpk
=
github.com/k3s-io/containerd v1.4.
8-k3s1/go.mod h1:FxLYZ8JAZ2kqHz/1mpWp1wkcquVwfNbDlUKjrT1B0iI
=
github.com/k3s-io/containerd v1.4.
9-k3s1 h1:gV6EDgGcp4sxeZ+5dOaul+K+Z6nSx3rfzmC28DIDSSo
=
github.com/k3s-io/containerd v1.4.
9-k3s1/go.mod h1:O7TXIlGKEOd9pX4UfoQW7kzPLmpjWSRRE1V0qZ+XZFw
=
github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1 h1:KEz2rd9IDbrQT8w6RibEYlwfTXiu0P6hQDE+6O4IJdI=
github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1/go.mod h1:EXlVlkqNba9rJe3j7w3Xa924itAMLgZH4UD/Q4PExuQ=
github.com/k3s-io/cri v1.4.0-k3s.7 h1:1ycdF3dMDJMW/k/UxDC6eMsyGSMZ/p0AoUBVdJvNGQs=
...
...
vendor/github.com/containerd/containerd/go.mod
View file @
5802b429
...
...
@@ -3,9 +3,12 @@ module github.com/containerd/containerd
go 1.14
replace (
github.com/Microsoft/go-winio => github.com/Microsoft/go-winio v0.4.19
github.com/Microsoft/hcsshim => github.com/Microsoft/hcsshim v0.8.16
github.com/containerd/continuity => github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1
github.com/containerd/cri => github.com/k3s-io/cri v1.4.0-k3s.7 // k3s-release/1.4
github.com/golang/protobuf => github.com/golang/protobuf v1.3.5
github.com/opencontainers/runc => github.com/opencontainers/runc v1.0.0-rc94
google.golang.org/genproto => google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63
k8s.io/api => k8s.io/api v0.19.10
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.19.10
...
...
@@ -32,12 +35,13 @@ replace (
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.19.10
k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.19.10
k8s.io/sample-controller => k8s.io/sample-controller v0.19.10
)
require (
github.com/BurntSushi/toml v0.3.1
github.com/Microsoft/go-winio v0.4.19
github.com/Microsoft/hcsshim v0.8.
20
github.com/Microsoft/hcsshim v0.8.
16
github.com/Microsoft/hcsshim/test v0.0.0-20210227013316-43a75bb4edd3
github.com/containerd/aufs v1.0.0
github.com/containerd/btrfs v1.0.0
...
...
@@ -50,7 +54,7 @@ require (
github.com/containerd/ttrpc v1.0.2
github.com/containerd/typeurl v1.0.2
github.com/containerd/zfs v1.0.0
github.com/coreos/go-systemd/v22 v22.
1.0
github.com/coreos/go-systemd/v22 v22.
3.1
github.com/docker/docker v17.12.0-ce-rc1.0.20200310163718-4634ce647cf2+incompatible // indirect
github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c
github.com/docker/go-metrics v0.0.1
...
...
@@ -64,8 +68,8 @@ require (
github.com/imdario/mergo v0.3.11
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.0.1
github.com/opencontainers/runc v1.0.0-rc9
3
github.com/opencontainers/runtime-spec v1.0.3-0.202
00929063507-e6143ca7d51d
github.com/opencontainers/runc v1.0.0-rc9
4
github.com/opencontainers/runtime-spec v1.0.3-0.202
10326190908-1c3f411f0417
github.com/opencontainers/selinux v1.8.0
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.7.1
...
...
@@ -75,7 +79,7 @@ require (
go.etcd.io/bbolt v1.3.5
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a
golang.org/x/sys v0.0.0-20210
324051608-47abb6519492
golang.org/x/sys v0.0.0-20210
426230700-d19ff857e887
google.golang.org/grpc v1.33.2
gotest.tools/v3 v3.0.3
)
vendor/github.com/containerd/containerd/go.sum
View file @
5802b429
This diff is collapsed.
Click to expand it.
vendor/github.com/containerd/containerd/remotes/docker/authorizer.go
View file @
5802b429
...
...
@@ -31,6 +31,7 @@ import (
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/log"
"github.com/containerd/containerd/version"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"golang.org/x/net/context/ctxhttp"
...
...
@@ -356,6 +357,9 @@ func (ah *authHandler) fetchTokenWithOAuth(ctx context.Context, to tokenOptions)
req
.
Header
[
k
]
=
append
(
req
.
Header
[
k
],
v
...
)
}
}
if
len
(
req
.
Header
.
Get
(
"User-Agent"
))
==
0
{
req
.
Header
.
Set
(
"User-Agent"
,
"containerd/"
+
version
.
Version
)
}
resp
,
err
:=
ctxhttp
.
Do
(
ctx
,
ah
.
client
,
req
)
if
err
!=
nil
{
...
...
@@ -408,6 +412,9 @@ func (ah *authHandler) fetchToken(ctx context.Context, to tokenOptions) (string,
req
.
Header
[
k
]
=
append
(
req
.
Header
[
k
],
v
...
)
}
}
if
len
(
req
.
Header
.
Get
(
"User-Agent"
))
==
0
{
req
.
Header
.
Set
(
"User-Agent"
,
"containerd/"
+
version
.
Version
)
}
reqParams
:=
req
.
URL
.
Query
()
...
...
vendor/github.com/containerd/containerd/remotes/docker/fetcher.go
View file @
5802b429
...
...
@@ -148,7 +148,7 @@ func (r dockerFetcher) Fetch(ctx context.Context, desc ocispec.Descriptor) (io.R
})
}
func
(
r
dockerFetcher
)
open
(
ctx
context
.
Context
,
req
*
request
,
mediatype
string
,
offset
int64
)
(
io
.
ReadCloser
,
error
)
{
func
(
r
dockerFetcher
)
open
(
ctx
context
.
Context
,
req
*
request
,
mediatype
string
,
offset
int64
)
(
_
io
.
ReadCloser
,
retErr
error
)
{
req
.
header
.
Set
(
"Accept"
,
strings
.
Join
([]
string
{
mediatype
,
`*/*`
},
", "
))
if
offset
>
0
{
...
...
@@ -162,13 +162,17 @@ func (r dockerFetcher) open(ctx context.Context, req *request, mediatype string,
if
err
!=
nil
{
return
nil
,
err
}
defer
func
()
{
if
retErr
!=
nil
{
resp
.
Body
.
Close
()
}
}()
if
resp
.
StatusCode
>
299
{
// TODO(stevvooe): When doing a offset specific request, we should
// really distinguish between a 206 and a 200. In the case of 200, we
// can discard the bytes, hiding the seek behavior from the
// implementation.
defer
resp
.
Body
.
Close
()
if
resp
.
StatusCode
==
http
.
StatusNotFound
{
return
nil
,
errors
.
Wrapf
(
errdefs
.
ErrNotFound
,
"content at %v not found"
,
req
.
String
())
...
...
vendor/github.com/containerd/containerd/remotes/docker/pusher.go
View file @
5802b429
...
...
@@ -109,12 +109,15 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten
// TODO: Set updated time?
},
})
resp
.
Body
.
Close
()
return
nil
,
errors
.
Wrapf
(
errdefs
.
ErrAlreadyExists
,
"content %v on remote"
,
desc
.
Digest
)
}
}
else
if
resp
.
StatusCode
!=
http
.
StatusNotFound
{
resp
.
Body
.
Close
()
// TODO: log error
return
nil
,
errors
.
Errorf
(
"unexpected response: %s"
,
resp
.
Status
)
}
resp
.
Body
.
Close
()
}
if
isManifest
{
...
...
vendor/github.com/containerd/containerd/remotes/docker/resolver.go
View file @
5802b429
...
...
@@ -239,10 +239,10 @@ func (r *dockerResolver) Resolve(ctx context.Context, ref string) (string, ocisp
}
var
(
la
stErr
error
paths
[][]
string
dgst
=
refspec
.
Digest
()
caps
=
HostCapabilityPull
fir
stErr
error
paths
[][]
string
dgst
=
refspec
.
Digest
()
caps
=
HostCapabilityPull
)
if
dgst
!=
""
{
...
...
@@ -293,8 +293,8 @@ func (r *dockerResolver) Resolve(ctx context.Context, ref string) (string, ocisp
err
=
errors
.
Wrapf
(
err
,
"pull access denied, repository does not exist or may require authorization"
)
}
// Store the error for referencing later
if
la
stErr
==
nil
{
la
stErr
=
err
if
fir
stErr
==
nil
{
fir
stErr
=
err
}
log
.
G
(
ctx
)
.
WithError
(
err
)
.
Info
(
"trying next host"
)
continue
// try another host
...
...
@@ -306,7 +306,14 @@ func (r *dockerResolver) Resolve(ctx context.Context, ref string) (string, ocisp
log
.
G
(
ctx
)
.
Info
(
"trying next host - response was http.StatusNotFound"
)
continue
}
return
""
,
ocispec
.
Descriptor
{},
errors
.
Errorf
(
"unexpected status code %v: %v"
,
u
,
resp
.
Status
)
if
resp
.
StatusCode
>
399
{
// Set firstErr when encountering the first non-404 status code.
if
firstErr
==
nil
{
firstErr
=
errors
.
Errorf
(
"pulling from host %s failed with status code %v: %v"
,
host
.
Host
,
u
,
resp
.
Status
)
}
continue
// try another host
}
return
""
,
ocispec
.
Descriptor
{},
errors
.
Errorf
(
"pulling from host %s failed with unexpected status code %v: %v"
,
host
.
Host
,
u
,
resp
.
Status
)
}
size
:=
resp
.
ContentLength
contentType
:=
getManifestMediaType
(
resp
)
...
...
@@ -369,8 +376,8 @@ func (r *dockerResolver) Resolve(ctx context.Context, ref string) (string, ocisp
}
// Prevent resolving to excessively large manifests
if
size
>
MaxManifestSize
{
if
la
stErr
==
nil
{
la
stErr
=
errors
.
Wrapf
(
errdefs
.
ErrNotFound
,
"rejecting %d byte manifest for %s"
,
size
,
ref
)
if
fir
stErr
==
nil
{
fir
stErr
=
errors
.
Wrapf
(
errdefs
.
ErrNotFound
,
"rejecting %d byte manifest for %s"
,
size
,
ref
)
}
continue
}
...
...
@@ -386,11 +393,15 @@ func (r *dockerResolver) Resolve(ctx context.Context, ref string) (string, ocisp
}
}
if
lastErr
==
nil
{
lastErr
=
errors
.
Wrap
(
errdefs
.
ErrNotFound
,
ref
)
// If above loop terminates without return, then there was an error.
// "firstErr" contains the first non-404 error. That is, "firstErr == nil"
// means that either no registries were given or each registry returned 404.
if
firstErr
==
nil
{
firstErr
=
errors
.
Wrap
(
errdefs
.
ErrNotFound
,
ref
)
}
return
""
,
ocispec
.
Descriptor
{},
la
stErr
return
""
,
ocispec
.
Descriptor
{},
fir
stErr
}
func
(
r
*
dockerResolver
)
Fetcher
(
ctx
context
.
Context
,
ref
string
)
(
remotes
.
Fetcher
,
error
)
{
...
...
@@ -561,7 +572,21 @@ func (r *request) do(ctx context.Context) (*http.Response, error) {
if
err
:=
r
.
authorize
(
ctx
,
req
);
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"failed to authorize"
)
}
resp
,
err
:=
ctxhttp
.
Do
(
ctx
,
r
.
host
.
Client
,
req
)
var
client
=
&
http
.
Client
{}
if
r
.
host
.
Client
!=
nil
{
*
client
=
*
r
.
host
.
Client
}
if
client
.
CheckRedirect
==
nil
{
client
.
CheckRedirect
=
func
(
req
*
http
.
Request
,
via
[]
*
http
.
Request
)
error
{
if
len
(
via
)
>=
10
{
return
errors
.
New
(
"stopped after 10 redirects"
)
}
return
errors
.
Wrap
(
r
.
authorize
(
ctx
,
req
),
"failed to authorize redirect"
)
}
}
resp
,
err
:=
ctxhttp
.
Do
(
ctx
,
client
,
req
)
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"failed to do request"
)
}
...
...
vendor/github.com/containerd/containerd/version/version.go
View file @
5802b429
...
...
@@ -23,7 +23,7 @@ var (
Package
=
"github.com/containerd/containerd"
// Version holds the complete version number. Filled in at linking time.
Version
=
"1.4.
8
+unknown"
Version
=
"1.4.
9
+unknown"
// Revision is filled with the VCS (e.g. git) revision being used to build
// the program at linking time.
...
...
vendor/modules.txt
View file @
5802b429
...
...
@@ -49,7 +49,7 @@ github.com/Microsoft/go-winio/pkg/etwlogrus
github.com/Microsoft/go-winio/pkg/guid
github.com/Microsoft/go-winio/pkg/security
github.com/Microsoft/go-winio/vhd
# github.com/Microsoft/hcsshim v0.8.
20
=> github.com/Microsoft/hcsshim v0.8.20
# github.com/Microsoft/hcsshim v0.8.
16
=> github.com/Microsoft/hcsshim v0.8.20
github.com/Microsoft/hcsshim
github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options
github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/stats
...
...
@@ -176,7 +176,7 @@ github.com/containerd/cgroups/v2
github.com/containerd/cgroups/v2/stats
# github.com/containerd/console v1.0.2 => github.com/containerd/console v1.0.2
github.com/containerd/console
# github.com/containerd/containerd v1.5.1 => github.com/k3s-io/containerd v1.4.
8
-k3s1
# github.com/containerd/containerd v1.5.1 => github.com/k3s-io/containerd v1.4.
9
-k3s1
## explicit
github.com/containerd/containerd
github.com/containerd/containerd/api/events
...
...
@@ -3196,7 +3196,7 @@ sigs.k8s.io/yaml
# github.com/containerd/btrfs => github.com/containerd/btrfs v1.0.0
# github.com/containerd/cgroups => github.com/containerd/cgroups v1.0.1
# github.com/containerd/console => github.com/containerd/console v1.0.2
# github.com/containerd/containerd => github.com/k3s-io/containerd v1.4.
8
-k3s1
# github.com/containerd/containerd => github.com/k3s-io/containerd v1.4.
9
-k3s1
# github.com/containerd/continuity => github.com/k3s-io/continuity v0.0.0-20210309170710-f93269e0d5c1
# github.com/containerd/cri => github.com/k3s-io/cri v1.4.0-k3s.7
# github.com/containerd/fifo => github.com/containerd/fifo v1.0.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment