Skip to content

Commit

Permalink
Move to compute gallery
Browse files Browse the repository at this point in the history
CAPZ is now publishing images to community gallery that lives in the CNCF subscription.  See https://capz.sigs.k8s.io/self-managed/custom-images.html?highlight=computeGallery#using-azure-community-gallery and kubernetes-sigs/cluster-api-provider-azure#5167.

Signed-off-by: James Sturtevant <[email protected]>
  • Loading branch information
jsturtevant committed Jan 6, 2025
1 parent f7110f2 commit c9028da
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 57 deletions.
2 changes: 1 addition & 1 deletion capz/templates/ci/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace: default
resources:
- ../windows-base.yaml
patches:
- path: patches/market-place.yaml
- path: patches/compute-gallery.yaml
- target:
group: controlplane.cluster.x-k8s.io
version: v1beta1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ spec:
template:
spec:
image:
marketplace:
offer: capi-windows
publisher: cncf-upstream
sku: ${IMAGE_SKU:=windows-2019-containerd-gen1}
version: ${IMAGE_VERSION:="latest"}
computeGallery:
name: "ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019"
gallery: "${IMAGE_GALLERY:=capi-win-2022-containerd}"
version: "${IMAGE_VERSION:=latest}"
18 changes: 8 additions & 10 deletions capz/templates/gmsa-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,10 @@ spec:
nameSuffix: etcddisk
identity: UserAssigned
image:
marketplace:
offer: capi
publisher: cncf-upstream
sku: ubuntu-2204-gen1
version: latest
computeGallery:
gallery: capi-ubun2-2404
name: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
version: ${IMAGE_VERSION:=latest}
osDisk:
diskSizeGB: 128
osType: Linux
Expand All @@ -431,11 +430,10 @@ spec:
spec:
identity: UserAssigned
image:
marketplace:
offer: capi-windows
publisher: cncf-upstream
sku: ${IMAGE_SKU:=windows-2019-containerd-gen1}
version: ${IMAGE_VERSION:="latest"}
computeGallery:
gallery: ${IMAGE_GALLERY:=capi-win-2022-containerd}
name: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
version: ${IMAGE_VERSION:=latest}
osDisk:
diskSizeGB: 128
managedDisk:
Expand Down
18 changes: 8 additions & 10 deletions capz/templates/gmsa-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,10 @@ spec:
nameSuffix: etcddisk
identity: UserAssigned
image:
marketplace:
offer: capi
publisher: cncf-upstream
sku: ubuntu-2204-gen1
version: latest
computeGallery:
gallery: capi-ubun2-2404
name: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
version: ${IMAGE_VERSION:=latest}
osDisk:
diskSizeGB: 128
osType: Linux
Expand All @@ -419,11 +418,10 @@ spec:
spec:
identity: UserAssigned
image:
marketplace:
offer: capi-windows
publisher: cncf-upstream
sku: ${IMAGE_SKU:=windows-2019-containerd-gen1}
version: ${IMAGE_VERSION:="latest"}
computeGallery:
gallery: ${IMAGE_GALLERY:=capi-win-2022-containerd}
name: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
version: ${IMAGE_VERSION:=latest}
osDisk:
diskSizeGB: 128
managedDisk:
Expand Down
2 changes: 1 addition & 1 deletion capz/templates/pr/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace: default
resources:
- ../windows-base.yaml
patches:
- path: ../ci/patches/market-place.yaml
- path: ../ci/patches/compute-gallery.yaml
- path: ./patches/kubeadm-control-plane-pr.yaml
- target:
group: controlplane.cluster.x-k8s.io
Expand Down
9 changes: 4 additions & 5 deletions capz/templates/shared-image-gallery-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,10 @@ spec:
nameSuffix: etcddisk
identity: UserAssigned
image:
marketplace:
offer: capi
publisher: cncf-upstream
sku: ubuntu-2204-gen1
version: latest
computeGallery:
gallery: capi-ubun2-2404
name: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
version: ${IMAGE_VERSION:=latest}
osDisk:
diskSizeGB: 128
osType: Linux
Expand Down
9 changes: 4 additions & 5 deletions capz/templates/windows-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,10 @@ spec:
nameSuffix: etcddisk
identity: UserAssigned
image:
marketplace:
offer: capi
publisher: cncf-upstream
sku: ubuntu-2204-gen1
version: latest
computeGallery:
name: "ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019"
gallery: "capi-ubun2-2404"
version: "${IMAGE_VERSION:=latest}"
osDisk:
diskSizeGB: 128
osType: Linux
Expand Down
18 changes: 8 additions & 10 deletions capz/templates/windows-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,10 @@ spec:
nameSuffix: etcddisk
identity: UserAssigned
image:
marketplace:
offer: capi
publisher: cncf-upstream
sku: ubuntu-2204-gen1
version: latest
computeGallery:
gallery: capi-ubun2-2404
name: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
version: ${IMAGE_VERSION:=latest}
osDisk:
diskSizeGB: 128
osType: Linux
Expand All @@ -427,11 +426,10 @@ spec:
runtime: containerd
spec:
image:
marketplace:
offer: capi-windows
publisher: cncf-upstream
sku: ${IMAGE_SKU:=windows-2019-containerd-gen1}
version: ${IMAGE_VERSION:="latest"}
computeGallery:
gallery: ${IMAGE_GALLERY:=capi-win-2022-containerd}
name: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
version: ${IMAGE_VERSION:=latest}
osDisk:
diskSizeGB: 128
managedDisk:
Expand Down
18 changes: 8 additions & 10 deletions capz/templates/windows-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,10 @@ spec:
nameSuffix: etcddisk
identity: UserAssigned
image:
marketplace:
offer: capi
publisher: cncf-upstream
sku: ubuntu-2204-gen1
version: latest
computeGallery:
gallery: capi-ubun2-2404
name: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
version: ${IMAGE_VERSION:=latest}
osDisk:
diskSizeGB: 128
osType: Linux
Expand All @@ -415,11 +414,10 @@ spec:
runtime: containerd
spec:
image:
marketplace:
offer: capi-windows
publisher: cncf-upstream
sku: ${IMAGE_SKU:=windows-2019-containerd-gen1}
version: ${IMAGE_VERSION:="latest"}
computeGallery:
gallery: ${IMAGE_GALLERY:=capi-win-2022-containerd}
name: ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019
version: ${IMAGE_VERSION:=latest}
osDisk:
diskSizeGB: 128
managedDisk:
Expand Down

0 comments on commit c9028da

Please sign in to comment.