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
fd3b5bea
Commit
fd3b5bea
authored
Aug 07, 2017
by
ymqytw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add retainKeys in patchStrategy
parent
a64eeb47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
types.go
staging/src/k8s.io/api/core/v1/types.go
+2
-2
types.go
staging/src/k8s.io/api/extensions/v1beta1/types.go
+2
-1
No files found.
staging/src/k8s.io/api/core/v1/types.go
View file @
fd3b5bea
...
...
@@ -2489,8 +2489,8 @@ type PodSpec struct {
// More info: https://kubernetes.io/docs/concepts/storage/volumes
// +optional
// +patchMergeKey=name
// +patchStrategy=merge
Volumes
[]
Volume
`json:"volumes,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,1,rep,name=volumes"`
// +patchStrategy=merge
,retainKeys
Volumes
[]
Volume
`json:"volumes,omitempty" patchStrategy:"merge
,retainKeys
" patchMergeKey:"name" protobuf:"bytes,1,rep,name=volumes"`
// List of initialization containers belonging to the pod.
// Init containers are executed in order prior to containers being started. If any
// init container fails, the pod is considered to have failed and is handled according
...
...
staging/src/k8s.io/api/extensions/v1beta1/types.go
View file @
fd3b5bea
...
...
@@ -193,7 +193,8 @@ type DeploymentSpec struct {
// The deployment strategy to use to replace existing pods with new ones.
// +optional
Strategy
DeploymentStrategy
`json:"strategy,omitempty" protobuf:"bytes,4,opt,name=strategy"`
// +patchStrategy=retainKeys
Strategy
DeploymentStrategy
`json:"strategy,omitempty" patchStrategy:"retainKeys" protobuf:"bytes,4,opt,name=strategy"`
// Minimum number of seconds for which a newly created pod should be ready
// without any of its container crashing, for it to be considered available.
...
...
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