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
3f454b75
Commit
3f454b75
authored
Jun 02, 2015
by
Daniel Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove ro refs from more places
parent
6e953886
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
kubelet.go
pkg/kubelet/kubelet.go
+2
-3
controller.go
pkg/master/controller.go
+1
-1
No files found.
pkg/kubelet/kubelet.go
View file @
3f454b75
...
...
@@ -872,7 +872,7 @@ func (kl *Kubelet) GenerateRunContainerOptions(pod *api.Pod, container *api.Cont
return
opts
,
nil
}
var
masterServices
=
util
.
NewStringSet
(
"kubernetes"
,
"kubernetes-ro"
)
var
masterServices
=
util
.
NewStringSet
(
"kubernetes"
)
// getServiceEnvVarMap makes a map[string]string of env vars for services a pod in namespace ns should see
func
(
kl
*
Kubelet
)
getServiceEnvVarMap
(
ns
string
)
(
map
[
string
]
string
,
error
)
{
...
...
@@ -909,8 +909,7 @@ func (kl *Kubelet) getServiceEnvVarMap(ns string) (map[string]string, error) {
serviceMap
[
serviceName
]
=
service
case
kl
.
masterServiceNamespace
:
if
masterServices
.
Has
(
serviceName
)
{
_
,
exists
:=
serviceMap
[
serviceName
]
if
!
exists
{
if
_
,
exists
:=
serviceMap
[
serviceName
];
!
exists
{
serviceMap
[
serviceName
]
=
service
}
}
...
...
pkg/master/controller.go
View file @
3f454b75
...
...
@@ -35,7 +35,7 @@ import (
)
// Controller is the controller manager for the core bootstrap Kubernetes controller
// loops, which manage creating the "kubernetes"
and "kubernetes-ro" services
, the "default"
// loops, which manage creating the "kubernetes"
service
, the "default"
// namespace, and provide the IP repair check on service IPs
type
Controller
struct
{
NamespaceRegistry
namespace
.
Registry
...
...
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