Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
images/capi/packer/azure: allow excluding SIG images from latest version
Browse files Browse the repository at this point in the history
If the desire is to require used specifying version of the image
explicitly like it has been discussed in
flatcar/Flatcar#734, this commit enables
that by providing it's own variables file and setting it using
PACKER_VAR_FILES environment variable.

Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com>
  • Loading branch information
invidian committed Jul 21, 2022
1 parent a003754 commit e42b1a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions images/capi/packer/azure/packer-windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"name": "vhd-{{user `build_name`}}",
"os_type": "Windows",
"private_virtual_network_with_public_ip": "{{user `private_virtual_network_with_public_ip`}}",
"shared_gallery_image_version_exclude_from_latest": "{{ user `exclude_from_latest` }}",
"resource_group_name": "{{user `resource_group_name`}}",
"storage_account": "{{user `storage_account_name`}}",
"subscription_id": "{{user `subscription_id`}}",
Expand Down Expand Up @@ -199,6 +200,7 @@
"cloudbase_plugins_unattend": "cloudbaseinit.plugins.common.mtu.MTUPlugin",
"containerd_url": "",
"containerd_version": null,
"exclude_from_latest": "false",
"gmsa_keyvault_url": "https://kubernetesartifacts.azureedge.net/ccgakvplugin/v1.1.4/binaries/windows-gmsa-ccgakvplugin-v1.1.4.zip",
"ib_version": "{{env `IB_VERSION`}}",
"image_offer": null,
Expand Down
2 changes: 2 additions & 0 deletions images/capi/packer/azure/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"plan_publisher": "{{user `plan_image_publisher`}}"
},
"private_virtual_network_with_public_ip": "{{user `private_virtual_network_with_public_ip`}}",
"shared_gallery_image_version_exclude_from_latest": "{{ user `exclude_from_latest` }}",
"shared_image_gallery_destination": {
"gallery_name": "{{user `shared_image_gallery_name`}}",
"image_name": "{{user `image_name`}}",
Expand Down Expand Up @@ -207,6 +208,7 @@
"distribution": null,
"distribution_release": null,
"distribution_version": null,
"exclude_from_latest": "false",
"existing_ansible_ssh_args": "{{env `ANSIBLE_SSH_ARGS`}}",
"ib_version": "{{env `IB_VERSION`}}",
"image_offer": null,
Expand Down

0 comments on commit e42b1a4

Please sign in to comment.