Commit Graph

21 Commits

Author SHA1 Message Date
Julien ADAMEK 338f566811 Add maintenance case to elemental-airgap.sh 2025-09-05 15:25:50 +02:00
Francesco Giudici 8fc8efd48e
[Airgap] extend yq support in the airgap script (#898)
The airgap script used to work with the Mike Farah's yq.
Anyway, it was incompatible with the Andrey Kislyuk's yq version (which
is the main python3 version you would get via pip).

Drop the eval arg from yq in the airgap script to make it compatible
with both.
Also check the yaml keys are there before trying recursion (which would
led to error out with some yq parsers)

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2025-01-31 15:51:08 +01:00
Loic Devulder 5702286029 [Airgap] Fix script to support Dev and Staging
Newer versions of Dev and Staging now need to be explicitly allowed to
be pull with Helm.

Signed-off-by: Loic Devulder <ldevulder@suse.com>
2024-09-30 09:34:51 +02:00
Loic Devulder 488ad0d890 [Airgap] fix channel extraction for 1.7 version
Signed-off-by: Loic Devulder <ldevulder@suse.com>
2024-08-22 10:04:37 +02:00
Loic Devulder b866419440 [Airgap] fix unstable channel extraction
Signed-off-by: Loic Devulder <ldevulder@suse.com>
2024-07-02 18:13:52 +02:00
Francesco Giudici 4cbbbb88a5 [Airgap] minor: fix debug message
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2024-03-20 09:06:37 +01:00
Loic Devulder 7611f3c61c
[Airgap] fix channel.json extraction (#669)
Allow run command to work for every (known!) versions.

Signed-off-by: Loic Devulder <ldevulder@suse.com>
2024-03-12 18:59:12 +01:00
Francesco Giudici 3bf6cbb7ef
[Airgap] fix "channel.image"/"channel.repository" value in "next steps" (#665)
channel.image expects a full image url, including the registry, while
channel.repository expects the repository url stripped of the registry.
Manage it correctly when printing the next steps.

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2024-03-12 17:53:16 +01:00
Loic Devulder 8b20123488 [Airgap] fix missing return code value
Signed-off-by: Loic Devulder <ldevulder@suse.com>
2024-03-11 10:52:02 +01:00
Loic Devulder aa0ba98320 [Airgap] Use bash test syntax
Signed-off-by: Loic Devulder <ldevulder@suse.com>
2024-03-11 10:52:02 +01:00
Francesco Giudici b0e7fa47c0 [Airgap] make the script work with both legacy and newer charts
Manage both the channel.image and channel.repository variables in the
chart.

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2024-03-11 10:52:02 +01:00
Loic Devulder 9ccb691f53 [Airgap] fix the airgap script
Changes made for Rancher Marketplace chart have impacts on the airgap
script.

Signed-off-by: Loic Devulder <ldevulder@suse.com>
2024-03-11 10:52:02 +01:00
Francesco Giudici 298cfe2c44
[Airgap] fix the airgap script (#654)
Fixes commit #9a0c1175c63d294ae8f84a5967e82c7596aa3a6a

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2024-03-05 12:04:50 +01:00
Francesco Giudici 9a0c1175c6
[Airgap] add support to Hauler in the airgap script (#647)
* scripts/elemental-airgap.sh: sort options in alphabetical order
* scripts/elemental-airgap.sh: add Hauler support

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2024-03-01 14:37:13 +01:00
Francesco Giudici 1f53971544
elemental-airgap: allow to just create the channel (#548)
...and also to skip archive creation.

This way the script should be ready for usage for the airgap scenario
with the chart in the Rancher Marketplace and could allow more custom
airgap setup where the images downloaded are pushed to the registry
in a different way, without passing through a tar.gz

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2023-10-19 09:52:40 +02:00
Francesco Giudici ebee5bfe07 elemental-airgap: fix skipping http/https URLs
Fixes #530

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2023-09-27 10:43:42 +02:00
Francesco Giudici fd0b7f26ec
elemental-airgap: fix automatic image channel name (#521)
when building the local channel image, if no name is provided, an
automatic one is created using the local registry name.
Drop the ':' from the registry name if present, otherwise docker tagging
will fail with an error.

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2023-09-20 13:40:28 +02:00
Francesco Giudici 97e91d7e12
elemental-airgap: add support to OS images (#518)
Allow to extract and download the OS images specified in the channel
image shipped with the Elemental Operator chart.
Build a new channel image targeting the local registry of the airgapped
scenario (which is now a mandatory option).

Fixes https://github.com/rancher/elemental/issues/950

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2023-09-15 13:02:27 +02:00
Francesco Giudici f4c156ad5f elemental-airgap: allow to pass dev | staging | stable as argument
It will allow to automatically pick the right repos for both the
elemental-operator chart and the crds chart.

Minor improvements (overwrite image list txt file and add a couple of
usage examples in the help).
2023-09-05 17:57:34 +02:00
Francesco Giudici a69b632942 elemental-airgap: pick the operator chart as an argument
pick the chart as a mandatory argument.
If the argument is a path, download the chart. Otherwise consider it an
already downloaded file.

Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2023-09-05 17:57:34 +02:00
Francesco Giudici b66ed1ad76 elemental-airgap: add script to help airgap deployment
Signed-off-by: Francesco Giudici <francesco.giudici@suse.com>
2023-09-05 17:57:34 +02:00