@@ -25,6 +25,8 @@ import (
25
25
kubeadmutil "k8s.io/kubernetes/cmd/kubeadm/app/util"
26
26
)
27
27
28
+ const extraHyperKubeNote = ` The "useHyperKubeImage" field will be removed from future kubeadm config versions and possibly ignored in future releases.`
29
+
28
30
// GetGenericImage generates and returns a platform agnostic image (backed by manifest list)
29
31
func GetGenericImage (prefix , image , tag string ) string {
30
32
return fmt .Sprintf ("%s/%s:%s" , prefix , image , tag )
@@ -34,7 +36,7 @@ func GetGenericImage(prefix, image, tag string) string {
34
36
// including the control-plane components and kube-proxy. If specified, the HyperKube image will be used.
35
37
func GetKubernetesImage (image string , cfg * kubeadmapi.ClusterConfiguration ) string {
36
38
if cfg .UseHyperKubeImage && image != constants .HyperKube {
37
- klog .Warningf (`WARNING: DEPRECATED use of the "hyperkube" image in place of %q` , image )
39
+ klog .Warningf (`WARNING: DEPRECATED use of the "hyperkube" image in place of %q.` + extraHyperKubeNote , image )
38
40
image = constants .HyperKube
39
41
}
40
42
repoPrefix := cfg .GetControlPlaneImageRepository ()
@@ -93,7 +95,7 @@ func GetControlPlaneImages(cfg *kubeadmapi.ClusterConfiguration) []string {
93
95
94
96
// start with core kubernetes images
95
97
if cfg .UseHyperKubeImage {
96
- klog .Warningln (`WARNING: DEPRECATED use of the "hyperkube" image for the Kubernetes control plane` )
98
+ klog .Warningln (`WARNING: DEPRECATED use of the "hyperkube" image for the Kubernetes control plane.` + extraHyperKubeNote )
97
99
imgs = append (imgs , GetKubernetesImage (constants .HyperKube , cfg ))
98
100
} else {
99
101
imgs = append (imgs , GetKubernetesImage (constants .KubeAPIServer , cfg ))
0 commit comments