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
3a680bc4
Unverified
Commit
3a680bc4
authored
Oct 25, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 25, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #70100 from lavalamp/schema-fix
API Schema fix: container port keys
parents
ed39bd45
fdd502c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
swagger.json
api/openapi-spec/swagger.json
+5
-0
generated.proto
staging/src/k8s.io/api/core/v1/generated.proto
+3
-0
types.go
staging/src/k8s.io/api/core/v1/types.go
+3
-0
No files found.
api/openapi-spec/swagger.json
View file @
3a680bc4
...
...
@@ -83370,6 +83370,11 @@
"items"
:
{
"$ref"
:
"#/definitions/io.k8s.api.core.v1.ContainerPort"
},
"x-kubernetes-list-map-keys"
:
[
"containerPort"
,
"protocol"
],
"x-kubernetes-list-type"
:
"map"
,
"x-kubernetes-patch-merge-key"
:
"containerPort"
,
"x-kubernetes-patch-strategy"
:
"merge"
},
staging/src/k8s.io/api/core/v1/generated.proto
View file @
3a680bc4
...
...
@@ -606,6 +606,9 @@ message Container {
// +optional
// +patchMergeKey=containerPort
// +patchStrategy=merge
// +listType=map
// +listMapKey=containerPort
// +listMapKey=protocol
repeated
ContainerPort
ports
=
6
;
// List of sources to populate environment variables in the container.
...
...
staging/src/k8s.io/api/core/v1/types.go
View file @
3a680bc4
...
...
@@ -2060,6 +2060,9 @@ type Container struct {
// +optional
// +patchMergeKey=containerPort
// +patchStrategy=merge
// +listType=map
// +listMapKey=containerPort
// +listMapKey=protocol
Ports
[]
ContainerPort
`json:"ports,omitempty" patchStrategy:"merge" patchMergeKey:"containerPort" protobuf:"bytes,6,rep,name=ports"`
// List of sources to populate environment variables in the container.
// The keys defined within a source must be a C_IDENTIFIER. All invalid keys
...
...
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