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
41f8c794
Commit
41f8c794
authored
May 07, 2015
by
Yifan Gu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubelet/rkt: Remove build label.
As we removed the linux specific dependency, now rkt can be built on other platforms as well.
parent
5461231c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
98 deletions
+0
-98
rkt.go
pkg/kubelet/rkt/rkt.go
+0
-2
rkt_unsupported.go
pkg/kubelet/rkt/rkt_unsupported.go
+0
-96
No files found.
pkg/kubelet/rkt/rkt
_linux
.go
→
pkg/kubelet/rkt/rkt.go
View file @
41f8c794
// +build linux
/*
/*
Copyright 2015 The Kubernetes Authors All rights reserved.
Copyright 2015 The Kubernetes Authors All rights reserved.
...
...
pkg/kubelet/rkt/rkt_unsupported.go
deleted
100644 → 0
View file @
5461231c
// +build !linux
/*
Copyright 2015 The Kubernetes Authors All rights reserved.
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
rkt
import
(
"fmt"
"io"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
kubecontainer
"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/container"
)
// rkt is unsupported in non-Linux builds.
type
unsupportedRuntime
struct
{
}
var
_
kubecontainer
.
Runtime
=
&
unsupportedRuntime
{}
var
unsupportedError
=
fmt
.
Errorf
(
"rkt runtime is unsupported in this platform"
)
func
New
(
config
*
Config
,
generator
kubecontainer
.
RunContainerOptionsGenerator
,
recorder
record
.
EventRecorder
,
containerRefManager
*
kubecontainer
.
RefManager
,
readinessManager
*
kubecontainer
.
ReadinessManager
,
volumeGetter
volumeGetter
)
(
kubecontainer
.
Runtime
,
error
)
{
return
nil
,
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
Version
()
(
kubecontainer
.
Version
,
error
)
{
return
nil
,
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
GetPods
(
all
bool
)
([]
*
kubecontainer
.
Pod
,
error
)
{
return
[]
*
kubecontainer
.
Pod
{},
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
SyncPod
(
pod
*
api
.
Pod
,
runningPod
kubecontainer
.
Pod
,
podStatus
api
.
PodStatus
)
error
{
return
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
KillPod
(
pod
kubecontainer
.
Pod
)
error
{
return
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
GetPodStatus
(
*
api
.
Pod
)
(
*
api
.
PodStatus
,
error
)
{
return
nil
,
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
RunInContainer
(
containerID
string
,
cmd
[]
string
)
([]
byte
,
error
)
{
return
[]
byte
{},
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
ExecInContainer
(
containerID
string
,
cmd
[]
string
,
stdin
io
.
Reader
,
stdout
,
stderr
io
.
WriteCloser
,
tty
bool
)
error
{
return
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
PortForward
(
pod
*
kubecontainer
.
Pod
,
port
uint16
,
stream
io
.
ReadWriteCloser
)
error
{
return
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
PullImage
(
image
string
)
error
{
return
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
IsImagePresent
(
image
string
)
(
bool
,
error
)
{
return
false
,
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
ListImages
()
([]
kubecontainer
.
Image
,
error
)
{
return
[]
kubecontainer
.
Image
{},
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
RemoveImage
(
image
string
)
error
{
return
unsupportedError
}
func
(
ur
*
unsupportedRuntime
)
GetContainerLogs
(
pod
*
api
.
Pod
,
containerID
,
tail
string
,
follow
bool
,
stdout
,
stderr
io
.
Writer
)
error
{
return
unsupportedError
}
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