sigs.k8s.io/cluster-api-provider-azure@v1.17.0/templates/test/ci/prow-aks-clusterclass/patches.yaml (about) 1 apiVersion: cluster.x-k8s.io/v1beta1 2 kind: ClusterClass 3 metadata: 4 name: ${CLUSTER_CLASS_NAME} 5 spec: 6 workers: 7 machinePools: 8 - class: default-system 9 template: 10 bootstrap: 11 ref: 12 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 13 kind: KubeadmConfigTemplate 14 name: ${CLUSTER_NAME}-pool0 15 infrastructure: 16 ref: 17 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 18 kind: AzureManagedMachinePoolTemplate 19 name: ${CLUSTER_NAME}-pool0 20 - class: default-worker 21 template: 22 bootstrap: 23 ref: 24 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 25 kind: KubeadmConfigTemplate 26 name: ${CLUSTER_NAME}-pool1 27 infrastructure: 28 ref: 29 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 30 kind: AzureManagedMachinePoolTemplate 31 name: ${CLUSTER_NAME}-pool1 32 patches: 33 - name: workerAzureJsonSecretName 34 definitions: 35 - selector: 36 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 37 kind: KubeadmConfigTemplate 38 matchResources: 39 machinePoolClass: 40 names: 41 - default-system 42 - default-worker 43 jsonPatches: 44 - op: replace 45 path: "/spec/template/spec/files" 46 valueFrom: 47 template: | 48 - contentFrom: 49 secret: 50 key: worker-node-azure.json 51 name: "{{ .builtin.machinePool.infrastructureRef.name }}-azure-json" 52 owner: root:root 53 path: /etc/kubernetes/azure.json 54 permissions: "0644"