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
c4ec40ec
Commit
c4ec40ec
authored
Sep 21, 2018
by
Brad Hoekstra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comment to reflect the new logic
parent
2c5cc79e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
kubelet_pods.go
pkg/kubelet/kubelet_pods.go
+4
-2
No files found.
pkg/kubelet/kubelet_pods.go
View file @
c4ec40ec
...
...
@@ -514,8 +514,10 @@ func (kl *Kubelet) getServiceEnvVarMap(ns string, enableServiceLinks *bool) (map
}
serviceName
:=
service
.
Name
// for the case whether the master service namespace is the namespace the pod
// is in, the pod should receive all the services in the namespace.
// We always want to add environment variabled for master services
// from the master service namespace, even if enableServiceLinks is false.
// We also add enviroment variables for other services in the same
// namespace, if enableServiceLinks is true.
if
service
.
Namespace
==
kl
.
masterServiceNamespace
&&
masterServices
.
Has
(
serviceName
)
{
if
_
,
exists
:=
serviceMap
[
serviceName
];
!
exists
{
serviceMap
[
serviceName
]
=
service
...
...
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