core/v1: remove note about hostAliases not working with hostNetwork

Support for this was added in 1.8 by PR 50646.
Local tests confirm that the feature indeed works.
E2e tests seem to be missing.
This commit is contained in:
Lubomir I. Ivanov 2023-12-20 15:54:37 +02:00
parent 38f4f9d8c4
commit 47ee56a7f2
9 changed files with 9 additions and 9 deletions

View File

@ -8917,7 +8917,7 @@
"x-kubernetes-patch-strategy": "merge" "x-kubernetes-patch-strategy": "merge"
}, },
"hostAliases": { "hostAliases": {
"description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.",
"items": { "items": {
"$ref": "#/definitions/io.k8s.api.core.v1.HostAlias" "$ref": "#/definitions/io.k8s.api.core.v1.HostAlias"
}, },

View File

@ -5307,7 +5307,7 @@
"x-kubernetes-patch-strategy": "merge" "x-kubernetes-patch-strategy": "merge"
}, },
"hostAliases": { "hostAliases": {
"description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.",
"items": { "items": {
"allOf": [ "allOf": [
{ {

View File

@ -3724,7 +3724,7 @@
"x-kubernetes-patch-strategy": "merge" "x-kubernetes-patch-strategy": "merge"
}, },
"hostAliases": { "hostAliases": {
"description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.",
"items": { "items": {
"allOf": [ "allOf": [
{ {

View File

@ -2879,7 +2879,7 @@
"x-kubernetes-patch-strategy": "merge" "x-kubernetes-patch-strategy": "merge"
}, },
"hostAliases": { "hostAliases": {
"description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.",
"items": { "items": {
"allOf": [ "allOf": [
{ {

View File

@ -3255,7 +3255,7 @@ type PodSpec struct {
// +optional // +optional
Tolerations []Toleration Tolerations []Toleration
// HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
// file if specified. This is only valid for non-hostNetwork pods. // file if specified.
// +optional // +optional
HostAliases []HostAlias HostAliases []HostAlias
// If specified, indicates the pod's priority. "system-node-critical" and // If specified, indicates the pod's priority. "system-node-critical" and

View File

@ -25973,7 +25973,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA
}, },
}, },
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", Description: "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.",
Type: []string{"array"}, Type: []string{"array"},
Items: &spec.SchemaOrArray{ Items: &spec.SchemaOrArray{
Schema: &spec.Schema{ Schema: &spec.Schema{

View File

@ -4063,7 +4063,7 @@ message PodSpec {
repeated Toleration tolerations = 22; repeated Toleration tolerations = 22;
// HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
// file if specified. This is only valid for non-hostNetwork pods. // file if specified.
// +optional // +optional
// +patchMergeKey=ip // +patchMergeKey=ip
// +patchStrategy=merge // +patchStrategy=merge

View File

@ -3670,7 +3670,7 @@ type PodSpec struct {
// +listType=atomic // +listType=atomic
Tolerations []Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"` Tolerations []Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"`
// HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts
// file if specified. This is only valid for non-hostNetwork pods. // file if specified.
// +optional // +optional
// +patchMergeKey=ip // +patchMergeKey=ip
// +patchStrategy=merge // +patchStrategy=merge

View File

@ -1755,7 +1755,7 @@ var map_PodSpec = map[string]string{
"affinity": "If specified, the pod's scheduling constraints", "affinity": "If specified, the pod's scheduling constraints",
"schedulerName": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", "schedulerName": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.",
"tolerations": "If specified, the pod's tolerations.", "tolerations": "If specified, the pod's tolerations.",
"hostAliases": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", "hostAliases": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified.",
"priorityClassName": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.", "priorityClassName": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.",
"priority": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", "priority": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.",
"dnsConfig": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.", "dnsConfig": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.",