mirror of https://github.com/k3s-io/k3s
fix container port to key by both port and protocol
parent
aae438e823
commit
5dc3b8e63b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue