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 <[email protected]>
  • Loading branch information
invidian committed Aug 29, 2022
1 parent 1927e3d commit 7e5469d
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 @@ -24,6 +24,7 @@
"os_type": "Windows",
"private_virtual_network_with_public_ip": "{{user `private_virtual_network_with_public_ip`}}",
"resource_group_name": "{{user `resource_group_name`}}",
"shared_gallery_image_version_exclude_from_latest": "{{ user `exclude_from_latest` }}",
"storage_account": "{{user `storage_account_name`}}",
"subscription_id": "{{user `subscription_id`}}",
"type": "azure-arm",
Expand Down Expand Up @@ -202,6 +203,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 @@ -64,6 +64,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 @@ -210,6 +211,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 7e5469d

Please sign in to comment.