debian-forge-composer/internal/distro/rhel8
Achilleas Koutsou 8a0f3ce4a3 distro: use the ostree URL when checking options
The checksum won't be resolved before initialising the manifest (where
checkOptions() is called), so we can't rely on it for validating
options.  Instead, we can just make sure that the URL was provided, when
required by the image type.

Also, if a parent ref is specified in the options, a URL *must* be
specified regardless of image type, so verify this combination here
 and return the same error message that is returned from
 ostree.Resolve().

The parameter combination check will soon be removed from the
ostree.Resolve() function.
2023-06-14 11:19:29 +02:00
..
ami.go subscription: new package for subscription options 2023-05-31 16:40:07 +02:00
arch.go distro/rhel: remove legacy member from architecture struct 2023-05-19 13:24:39 +02:00
azure.go distro: remove architecture names and use platform enum 2023-05-31 16:40:07 +02:00
bare_metal.go distro: remove architecture names and use platform enum 2023-05-31 16:40:07 +02:00
distro.go distro: remove architecture names and use platform enum 2023-05-31 16:40:07 +02:00
distro_internal_test.go distro/rhel8: update distro unit tests 2023-01-30 17:40:18 +01:00
distro_test.go distro: remove packageSpecSets and containers from Manifest() args 2023-05-31 16:40:07 +02:00
edge.go distro/rhel9: add the edge-ami image type based on edgeRawImage 2023-06-07 13:18:01 +02:00
gce.go subscription: new package for subscription options 2023-05-31 16:40:07 +02:00
images.go ostree: replace FetchChecksum with ParentRef on ostree.ImageOptions 2023-06-14 11:19:29 +02:00
imagetype.go distro: use the ostree URL when checking options 2023-06-14 11:19:29 +02:00
package_sets.go distro: remove architecture names and use platform enum 2023-05-31 16:40:07 +02:00
partition_tables.go distro: remove architecture names and use platform enum 2023-05-31 16:40:07 +02:00
qcow2.go subscription: new package for subscription options 2023-05-31 16:40:07 +02:00
sap.go distro/rhel8: make sap image config methods private 2023-02-07 13:16:12 +01:00
vmdk.go rhel8: add ova image type 2023-05-25 10:14:32 +02:00
workloads.go distro/rhel8: distro workload implementation and EAP 2023-03-30 18:40:12 +02:00