File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,9 @@ func runPreflight(c workflow.RunData) error {
72
72
if err := preflight .RunRootCheckOnly (ignorePreflightErrors ); err != nil {
73
73
return err
74
74
}
75
+ if err := preflight .RunUpgradeChecks (ignorePreflightErrors ); err != nil {
76
+ return err
77
+ }
75
78
76
79
// Run CoreDNS migration check.
77
80
if err := upgrade .RunCoreDNSMigrationCheck (client , ignorePreflightErrors ); err != nil {
Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ func runPreflight(c workflow.RunData) error {
54
54
if err := preflight .RunRootCheckOnly (data .IgnorePreflightErrors ()); err != nil {
55
55
return err
56
56
}
57
+ if err := preflight .RunUpgradeChecks (data .IgnorePreflightErrors ()); err != nil {
58
+ return err
59
+ }
57
60
58
61
// If this is a control-plane node, pull the basic images.
59
62
if data .IsControlPlaneNode () {
Original file line number Diff line number Diff line change @@ -1091,6 +1091,15 @@ func RunRootCheckOnly(ignorePreflightErrors sets.Set[string]) error {
1091
1091
return RunChecks (checks , os .Stderr , ignorePreflightErrors )
1092
1092
}
1093
1093
1094
+ // RunUpgradeChecks initializes checks slice of structs and call RunChecks
1095
+ func RunUpgradeChecks (ignorePreflightErrors sets.Set [string ]) error {
1096
+ checks := []Checker {
1097
+ SystemVerificationCheck {},
1098
+ }
1099
+
1100
+ return RunChecks (checks , os .Stderr , ignorePreflightErrors )
1101
+ }
1102
+
1094
1103
// RunPullImagesCheck will pull images kubeadm needs if they are not found on the system
1095
1104
func RunPullImagesCheck (execer utilsexec.Interface , cfg * kubeadmapi.InitConfiguration , ignorePreflightErrors sets.Set [string ]) error {
1096
1105
containerRuntime := utilruntime .NewContainerRuntime (cfg .NodeRegistration .CRISocket )
You can’t perform that action at this time.
0 commit comments