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
ff380d67
Commit
ff380d67
authored
Jan 08, 2018
by
zouyee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove deplicate func
parent
8504591d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
deployment_util.go
pkg/controller/deployment/util/deployment_util.go
+0
-12
No files found.
pkg/controller/deployment/util/deployment_util.go
View file @
ff380d67
...
@@ -124,18 +124,6 @@ func GetDeploymentCondition(status extensions.DeploymentStatus, condType extensi
...
@@ -124,18 +124,6 @@ func GetDeploymentCondition(status extensions.DeploymentStatus, condType extensi
return
nil
return
nil
}
}
// TODO: remove the duplicate
// GetDeploymentConditionInternal returns the condition with the provided type.
func
GetDeploymentConditionInternal
(
status
internalextensions
.
DeploymentStatus
,
condType
internalextensions
.
DeploymentConditionType
)
*
internalextensions
.
DeploymentCondition
{
for
i
:=
range
status
.
Conditions
{
c
:=
status
.
Conditions
[
i
]
if
c
.
Type
==
condType
{
return
&
c
}
}
return
nil
}
// SetDeploymentCondition updates the deployment to include the provided condition. If the condition that
// SetDeploymentCondition updates the deployment to include the provided condition. If the condition that
// we are about to add already exists and has the same status and reason then we are not going to update.
// we are about to add already exists and has the same status and reason then we are not going to update.
func
SetDeploymentCondition
(
status
*
extensions
.
DeploymentStatus
,
condition
extensions
.
DeploymentCondition
)
{
func
SetDeploymentCondition
(
status
*
extensions
.
DeploymentStatus
,
condition
extensions
.
DeploymentCondition
)
{
...
...
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