-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc777ca
commit 89d44e1
Showing
85 changed files
with
273 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
test/e2e/data/infrastructure-vsphere-supervisor/main/base/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- cluster-template-supervisor.yaml | ||
- ../commons/cluster-resource-set.yaml | ||
patchesStrategicMerge: | ||
- ../commons/cluster-resource-set-label.yaml | ||
- ../commons/cluster-network-CIDR.yaml | ||
- ../commons/cluster-resource-set-csi-insecure.yaml | ||
patches: | ||
# We are dropping storage policy so we also have test coverage | ||
# for normal provisioning via data stores. | ||
- target: | ||
kind: VSphereMachineTemplate | ||
path: ../commons/remove-storage-policy.yaml |
14 changes: 14 additions & 0 deletions
14
test/e2e/data/infrastructure-vsphere-supervisor/main/clusterclass/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./clusterclass-quick-start-supervisor.yaml | ||
patches: | ||
- target: | ||
kind: ClusterClass | ||
path: ./patch-vsphere-template.yaml | ||
- target: | ||
kind: ClusterClass | ||
path: ./patch-prekubeadmscript.yaml | ||
- target: | ||
kind: ClusterClass | ||
path: ./patch-namingstrategy.yaml |
8 changes: 8 additions & 0 deletions
8
test/e2e/data/infrastructure-vsphere-supervisor/main/clusterclass/patch-namingstrategy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- op: add | ||
path: /spec/controlPlane/namingStrategy | ||
value: | ||
template: '{{ .cluster.name }}-cp-{{ .random }}' | ||
- op: add | ||
path: /spec/workers/machineDeployments/0/namingStrategy | ||
value: | ||
template: '{{ .cluster.name }}-md-{{ .machineDeployment.topologyName }}-{{ .random }}' |
51 changes: 51 additions & 0 deletions
51
.../e2e/data/infrastructure-vsphere-supervisor/main/clusterclass/patch-prekubeadmscript.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
- op: add | ||
path: /spec/patches/- | ||
value: | ||
definitions: | ||
- jsonPatches: | ||
- op: add | ||
path: /spec/template/spec/kubeadmConfigSpec/preKubeadmCommands/0 | ||
value: "/opt/prekubeadmscript.sh" | ||
- op: add | ||
path: /spec/template/spec/kubeadmConfigSpec/files/- | ||
valueFrom: | ||
template: | | ||
owner: root:root | ||
path: "/opt/prekubeadmscript.sh" | ||
permissions: "0755" | ||
content: {{ printf "%q" (regexReplaceAll "(KUBERNETES_VERSION=.*)" .preKubeadmScript (printf "KUBERNETES_VERSION=%s" .builtin.controlPlane.version)) }} | ||
selector: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlaneTemplate | ||
matchResources: | ||
controlPlane: true | ||
- jsonPatches: | ||
- op: add | ||
path: /spec/template/spec/preKubeadmCommands/0 | ||
value: "/opt/prekubeadmscript.sh" | ||
- op: add | ||
path: /spec/template/spec/files/- | ||
valueFrom: | ||
template: | | ||
owner: root:root | ||
path: "/opt/prekubeadmscript.sh" | ||
permissions: "0755" | ||
content: {{ printf "%q" (regexReplaceAll "(KUBERNETES_VERSION=.*)" .preKubeadmScript (printf "KUBERNETES_VERSION=%s" .builtin.machineDeployment.version)) }} | ||
selector: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
matchResources: | ||
machineDeploymentClass: | ||
names: | ||
- ${CLUSTER_CLASS_NAME}-worker | ||
enabledIf: '{{ if .preKubeadmScript }}true{{ end }}' | ||
name: preKubeadmScript | ||
- op: add | ||
path: /spec/variables/- | ||
value: | ||
name: preKubeadmScript | ||
required: false | ||
schema: | ||
openAPIV3Schema: | ||
type: string | ||
description: Script to run in preKubeadmCommands. |
Oops, something went wrong.