Skip to content

Commit 2e4e9ba

Browse files
committed
controllers: Validates kata version aginst the Kata RPM version present in the extension image.
The extension image contains the Kata RPM. Extension images vary with the OCP version, which means the Kata version can change across releases, Kata version specified in the YAML matches the version bundled in the extension image. Signed-off-by: ANJANA-A-R-K <[email protected]>
1 parent 4470056 commit 2e4e9ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/daemonset_reconcile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ func (r *KataConfigOpenShiftReconciler) getAddonEnvVars() []corev1.EnvVar {
704704
}{
705705
{"addonImage", "ADDON_IMAGE"},
706706
{"kernelPath", "ADDON_KERNEL_PATH"},
707-
{"kataVersion", "KATA_VERSION"},
707+
{"kataVersion", "KATA_VERSION"},
708708
}
709709

710710
var envs []corev1.EnvVar
@@ -719,7 +719,7 @@ func (r *KataConfigOpenShiftReconciler) getAddonEnvVars() []corev1.EnvVar {
719719
r.Log.Info("Addon artifacts configured",
720720
"image", data["addonImage"],
721721
"kernelPath", data["kernelPath"],
722-
"kataVersion", data["kataVersion"],
722+
"kataVersion", data["kataVersion"],
723723
)
724724

725725
return envs

0 commit comments

Comments
 (0)