Skip to content

Commit 12b861f

Browse files
committed
Address review comments
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
1 parent c553d26 commit 12b861f

6 files changed

Lines changed: 22 additions & 8 deletions

File tree

k8s/crds/kops.k8s.io_clusters.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4411,6 +4411,11 @@ spec:
44114411
PodCIDR is the CIDR to use for pod IP addresses, only used in standalone mode.
44124412
In cluster mode, this is obtained from the master.
44134413
type: string
4414+
podInfraContainerImage:
4415+
description: |-
4416+
PodInfraContainerImage is the image whose network/ipc containers in each pod will use.
4417+
DEPRECATED: Image garbage collector will get sandbox image information from CRI.
4418+
type: string
44144419
podManifestPath:
44154420
description: config is the path to the config file or directory
44164421
of files
@@ -4861,6 +4866,11 @@ spec:
48614866
PodCIDR is the CIDR to use for pod IP addresses, only used in standalone mode.
48624867
In cluster mode, this is obtained from the master.
48634868
type: string
4869+
podInfraContainerImage:
4870+
description: |-
4871+
PodInfraContainerImage is the image whose network/ipc containers in each pod will use.
4872+
DEPRECATED: Image garbage collector will get sandbox image information from CRI.
4873+
type: string
48644874
podManifestPath:
48654875
description: config is the path to the config file or directory
48664876
of files

k8s/crds/kops.k8s.io_instancegroups.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,11 @@ spec:
728728
PodCIDR is the CIDR to use for pod IP addresses, only used in standalone mode.
729729
In cluster mode, this is obtained from the master.
730730
type: string
731+
podInfraContainerImage:
732+
description: |-
733+
PodInfraContainerImage is the image whose network/ipc containers in each pod will use.
734+
DEPRECATED: Image garbage collector will get sandbox image information from CRI.
735+
type: string
731736
podManifestPath:
732737
description: config is the path to the config file or directory
733738
of files

pkg/apis/kops/componentconfig.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ type KubeletConfigSpec struct {
5757
// HostnameOverride is the hostname used to identify the kubelet instead of the actual hostname.
5858
HostnameOverride string `json:"hostnameOverride,omitempty" flag:"hostname-override"`
5959
// PodInfraContainerImage is the image whose network/ipc containers in each pod will use.
60-
// DEPRECATED: Image garbage collector will get sandbox image information from CRI
61-
PodInfraContainerImage string `json:"-"`
60+
// DEPRECATED: Image garbage collector will get sandbox image information from CRI.
61+
PodInfraContainerImage string `json:"podInfraContainerImage,omitempty"`
6262
// SeccompDefault enables the use of `RuntimeDefault` as the default seccomp profile for all workloads.
6363
SeccompDefault *bool `json:"seccompDefault,omitempty" flag:"seccomp-default"`
6464
// SeccompProfileRoot is the directory path for seccomp profiles.

pkg/apis/kops/v1alpha2/componentconfig.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ type KubeletConfigSpec struct {
5757
// HostnameOverride is the hostname used to identify the kubelet instead of the actual hostname.
5858
HostnameOverride string `json:"hostnameOverride,omitempty" flag:"hostname-override"`
5959
// PodInfraContainerImage is the image whose network/ipc containers in each pod will use.
60-
// DEPRECATED: Image garbage collector will get sandbox image information from CRI
61-
PodInfraContainerImage string `json:"-"`
60+
// DEPRECATED: Image garbage collector will get sandbox image information from CRI.
61+
PodInfraContainerImage string `json:"podInfraContainerImage,omitempty"`
6262
// SeccompDefault enables the use of `RuntimeDefault` as the default seccomp profile for all workloads.
6363
SeccompDefault *bool `json:"seccompDefault,omitempty" flag:"seccomp-default"`
6464
// SeccompProfileRoot is the directory path for seccomp profiles.

pkg/apis/kops/v1alpha3/componentconfig.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ type KubeletConfigSpec struct {
5757
// HostnameOverride is not admin-configurable.
5858
HostnameOverride string `json:"-"`
5959
// PodInfraContainerImage is the image whose network/ipc containers in each pod will use.
60-
// DEPRECATED: Image garbage collector will get sandbox image information from CRI
61-
PodInfraContainerImage string `json:"-"`
60+
// DEPRECATED: Image garbage collector will get sandbox image information from CRI.
61+
PodInfraContainerImage string `json:"podInfraContainerImage,omitempty"`
6262
// SeccompDefault enables the use of `RuntimeDefault` as the default seccomp profile for all workloads.
6363
SeccompDefault *bool `json:"seccompDefault,omitempty" flag:"seccomp-default"`
6464
// SeccompProfileRoot is the directory path for seccomp profiles.

pkg/apis/kops/validation/validation.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,11 +913,10 @@ func validateKubelet(k *kops.KubeletConfigSpec, c *kops.Cluster, kubeletPath *fi
913913
}
914914

915915
{
916-
// Flag removed in 1.6
917916
if k.PodInfraContainerImage != "" {
918917
allErrs = append(allErrs, field.Forbidden(
919918
kubeletPath.Child("podInfraContainerImage"),
920-
"pod-infra-container-image flag was removed in 1.35, use containerd.sandboxImage instead"))
919+
"pod-infra-container-image flag was deprecated in 1.29 and removed in 1.35, use containerd.sandboxImage instead"))
921920
}
922921
}
923922

0 commit comments

Comments
 (0)