From 0bfe296c531f48b0ef9848bd50f5329158c41e9e Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 24 Oct 2022 08:42:14 +0000 Subject: [PATCH] fix typos --- controllers/deployment.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/controllers/deployment.go b/controllers/deployment.go index bfa19b6..264260e 100644 --- a/controllers/deployment.go +++ b/controllers/deployment.go @@ -132,23 +132,23 @@ func (r *OSArtifactReconciler) genDeployment(artifact buildv1alpha1.OSArtifact) }, } - if artifact.GRUBConfig != "" { - volumeMounts = append(volumeMounts, VolumeMount{ + if artifact.Spec.GRUBConfig != "" { + volumeMounts = append(volumeMounts, v1.VolumeMount{ Name: "config", MountPath: "/iso/iso-overlay/boot/grub2/grub.cfg", SubPath: "grub.cfg", }) } - if artifact.CloudConfig != "" { - volumeMounts = append(volumeMounts, VolumeMount{ + if artifact.Spec.CloudConfig != "" { + volumeMounts = append(volumeMounts, v1.VolumeMount{ Name: "config", MountPath: "/iso/iso-overlay/cloud_config.yaml", SubPath: "config", }) } - if artifacts.CloudConfig != "" || artifacts.GRUBConfig != "" { + if artifact.Spec.CloudConfig != "" || artifact.Spec.GRUBConfig != "" { cmd = fmt.Sprintf( "/entrypoint.sh --debug --name %s build-iso --date=false --overlay-iso /iso/iso-overlay --output /public dir:/rootfs", artifact.Name,