Skip to content

Commit

Permalink
Fix secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
willie-yao committed Sep 30, 2023
1 parent ecdb3a8 commit e306f2c
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ spec:
enum:
- Free
- Paid
- Standard
type: string
required:
- tier
Expand Down
23 changes: 23 additions & 0 deletions templates/test/ci/cluster-template-prow-aks-clusterclass.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion templates/test/ci/prow-aks-clusterclass/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ patchesStrategicMerge:
- patches/tags-aks-clusterclass.yaml
- patches/aks-clusterclass-pool0.yaml
- patches/aks-clusterclass-pool1.yaml
- patches/addons.yaml
- patches/addons.yaml
- patches.yaml
54 changes: 54 additions & 0 deletions templates/test/ci/prow-aks-clusterclass/patches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: cluster.x-k8s.io/v1beta1
kind: ClusterClass
metadata:
name: ${CLUSTER_CLASS_NAME}
spec:
workers:
machinePools:
- class: default-system
template:
bootstrap:
ref:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
name: ${CLUSTER_NAME}-pool0
infrastructure:
ref:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureManagedMachinePoolTemplate
name: ${CLUSTER_NAME}-pool0
- class: default-worker
template:
bootstrap:
ref:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
name: ${CLUSTER_NAME}-pool1
infrastructure:
ref:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureManagedMachinePoolTemplate
name: ${CLUSTER_NAME}-pool1
patches:
- name: workerAzureJsonSecretName
definitions:
- selector:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfigTemplate
matchResources:
machinePoolClass:
names:
- ${CLUSTER_NAME}-pool0
- ${CLUSTER_NAME}-pool1
jsonPatches:
- op: replace
path: "/spec/template/spec/files"
valueFrom:
template: |
- contentFrom:
secret:
key: worker-node-azure.json
name: "{{ .builtin.machinePool.infrastructureRef.name }}-azure-json"
owner: root:root
path: /etc/kubernetes/azure.json
permissions: "0644"

0 comments on commit e306f2c

Please sign in to comment.