Skip to content

Commit

Permalink
Patch for MachinePool preLoadImages
Browse files Browse the repository at this point in the history
  • Loading branch information
killianmuldoon authored and willie-yao committed Sep 19, 2023
1 parent cb22353 commit 5060e47
Showing 1 changed file with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,24 @@ spec:
path: "/spec/template/spec/preLoadImages"
valueFrom:
variable: preLoadImages
- name: preloadImagesMP
description: |
Sets the container images to preload to the node that is used for running dockerMachines.
This is especially required for self-hosted e2e tests to ensure the required controller images to be available
and reduce load to public registries.
definitions:
- selector:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: DockerMachinePoolTemplate
matchResources:
machinePoolClass:
names:
- default-worker
jsonPatches:
- op: add
path: "/spec/template/spec/template/preLoadImages"
valueFrom:
variable: preLoadImages
- name: kubeadmControlPlaneMaxSurge
description: "Sets the maxSurge value used for rolloutStrategy in the KubeadmControlPlane."
enabledIf: '{{ ne .kubeadmControlPlaneMaxSurge "" }}'
Expand Down Expand Up @@ -493,6 +511,11 @@ metadata:
InfraMachinePoolTemplate.machinePool.annotation: "InfraMachinePoolTemplate.machinePool.annotationValue"
spec:
template:
metadata:
labels:
InfraMachinePoolTemplate.machinePool.template.label: "InfraMachinePoolTemplate.machinePool.labelValue"
annotations:
InfraMachinePoolTemplate.machinePool.template.annotation: "InfraMachinePoolTemplate.machinePool.annotationValue"
spec:
template:
extraMounts:
Expand Down Expand Up @@ -525,9 +548,9 @@ kind: KubeadmConfigTemplate
metadata:
name: quick-start-mp-default-worker-bootstraptemplate
labels:
BootstrapConfigTemplate.machinePool.template.label: "BootstrapConfigTemplate.machinePool.template.labelValue"
BootstrapConfigTemplate.machinePool.label: "BootstrapConfigTemplate.machinePool.template.labelValue"
annotations:
BootstrapConfigTemplate.machinePool.template.annotation: "BootstrapConfigTemplate.machinePool.template.annotationValue"
BootstrapConfigTemplate.machinePool.annotation: "BootstrapConfigTemplate.machinePool.template.annotationValue"
spec:
template:
metadata:
Expand Down

0 comments on commit 5060e47

Please sign in to comment.