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
c851c480
Commit
c851c480
authored
May 24, 2019
by
Tim Allclair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move to debian-base non-root image
parent
6e78c5bd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
11 deletions
+6
-11
security_context.go
test/e2e/common/security_context.go
+1
-1
BASEIMAGE
test/images/busybox-user/BASEIMAGE
+0
-5
Dockerfile
test/images/nonroot/Dockerfile
+2
-2
VERSION
test/images/nonroot/VERSION
+0
-0
manifest.go
test/utils/image/manifest.go
+3
-3
No files found.
test/e2e/common/security_context.go
View file @
c851c480
...
...
@@ -97,7 +97,7 @@ var _ = framework.KubeDescribe("Security Context", func() {
Context
(
"When creating a container with runAsNonRoot"
,
func
()
{
rootImage
:=
imageutils
.
GetE2EImage
(
imageutils
.
BusyBox
)
nonRootImage
:=
imageutils
.
GetE2EImage
(
imageutils
.
BusyBoxUser
)
nonRootImage
:=
imageutils
.
GetE2EImage
(
imageutils
.
NonRoot
)
makeNonRootPod
:=
func
(
podName
,
image
string
,
userid
*
int64
)
*
v1
.
Pod
{
return
&
v1
.
Pod
{
ObjectMeta
:
metav1
.
ObjectMeta
{
...
...
test/images/busybox-user/BASEIMAGE
deleted
100644 → 0
View file @
6e78c5bd
amd64=busybox
arm=arm32v6/busybox
arm64=arm64v8/busybox
ppc64le=ppc64le/busybox
s390x=s390x/busybox
test/images/
busybox-user
/Dockerfile
→
test/images/
nonroot
/Dockerfile
View file @
c851c480
# Copyright 201
6
The Kubernetes Authors.
# Copyright 201
9
The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -12,6 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM
BASEIMAGE
FROM
k8s.gcr.io/debian-base:v1.0.0
USER
1234
test/images/
busybox-user
/VERSION
→
test/images/
nonroot
/VERSION
View file @
c851c480
File moved
test/utils/image/manifest.go
View file @
c851c480
...
...
@@ -108,8 +108,6 @@ const (
AuditProxy
// BusyBox image
BusyBox
// BusyBox image with default user 1234
BusyBoxUser
// CheckMetadataConcealment image
CheckMetadataConcealment
// CudaVectorAdd image
...
...
@@ -164,6 +162,8 @@ const (
NginxNew
// Nonewprivs image
Nonewprivs
// NonRoot runs with a default user of 1234
NonRoot
// NoSnatTest image
NoSnatTest
// NoSnatTestProxy image
...
...
@@ -204,7 +204,6 @@ func initImageConfigs() map[int]Config {
configs
[
AppArmorLoader
]
=
Config
{
e2eRegistry
,
"apparmor-loader"
,
"1.0"
}
configs
[
AuditProxy
]
=
Config
{
e2eRegistry
,
"audit-proxy"
,
"1.0"
}
configs
[
BusyBox
]
=
Config
{
dockerLibraryRegistry
,
"busybox"
,
"1.29"
}
configs
[
BusyBoxUser
]
=
Config
{
e2eRegistry
,
"busybox-user"
,
"1.0"
}
configs
[
CheckMetadataConcealment
]
=
Config
{
e2eRegistry
,
"metadata-concealment"
,
"1.2"
}
configs
[
CudaVectorAdd
]
=
Config
{
e2eRegistry
,
"cuda-vector-add"
,
"1.0"
}
configs
[
CudaVectorAdd2
]
=
Config
{
e2eRegistry
,
"cuda-vector-add"
,
"2.0"
}
...
...
@@ -232,6 +231,7 @@ func initImageConfigs() map[int]Config {
configs
[
Nginx
]
=
Config
{
dockerLibraryRegistry
,
"nginx"
,
"1.14-alpine"
}
configs
[
NginxNew
]
=
Config
{
dockerLibraryRegistry
,
"nginx"
,
"1.15-alpine"
}
configs
[
Nonewprivs
]
=
Config
{
e2eRegistry
,
"nonewprivs"
,
"1.0"
}
configs
[
NonRoot
]
=
Config
{
e2eRegistry
,
"nonroot"
,
"1.0"
}
configs
[
NoSnatTest
]
=
Config
{
e2eRegistry
,
"no-snat-test"
,
"1.0"
}
configs
[
NoSnatTestProxy
]
=
Config
{
e2eRegistry
,
"no-snat-test-proxy"
,
"1.0"
}
// Pause - when these values are updated, also update cmd/kubelet/app/options/container_runtime.go
...
...
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