fix typos

This commit is contained in:
Ettore Di Giacinto 2022-10-24 08:42:14 +00:00
parent 669714d915
commit 0bfe296c53

View File

@ -132,23 +132,23 @@ func (r *OSArtifactReconciler) genDeployment(artifact buildv1alpha1.OSArtifact)
}, },
} }
if artifact.GRUBConfig != "" { if artifact.Spec.GRUBConfig != "" {
volumeMounts = append(volumeMounts, VolumeMount{ volumeMounts = append(volumeMounts, v1.VolumeMount{
Name: "config", Name: "config",
MountPath: "/iso/iso-overlay/boot/grub2/grub.cfg", MountPath: "/iso/iso-overlay/boot/grub2/grub.cfg",
SubPath: "grub.cfg", SubPath: "grub.cfg",
}) })
} }
if artifact.CloudConfig != "" { if artifact.Spec.CloudConfig != "" {
volumeMounts = append(volumeMounts, VolumeMount{ volumeMounts = append(volumeMounts, v1.VolumeMount{
Name: "config", Name: "config",
MountPath: "/iso/iso-overlay/cloud_config.yaml", MountPath: "/iso/iso-overlay/cloud_config.yaml",
SubPath: "config", SubPath: "config",
}) })
} }
if artifacts.CloudConfig != "" || artifacts.GRUBConfig != "" { if artifact.Spec.CloudConfig != "" || artifact.Spec.GRUBConfig != "" {
cmd = fmt.Sprintf( cmd = fmt.Sprintf(
"/entrypoint.sh --debug --name %s build-iso --date=false --overlay-iso /iso/iso-overlay --output /public dir:/rootfs", "/entrypoint.sh --debug --name %s build-iso --date=false --overlay-iso /iso/iso-overlay --output /public dir:/rootfs",
artifact.Name, artifact.Name,