-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): cover region in providerID clusterv1 machine object
Signed-off-by: MatthieuFin <[email protected]>
- Loading branch information
1 parent
5b66f35
commit 4bdd8e8
Showing
14 changed files
with
216 additions
and
38 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
15 changes: 15 additions & 0 deletions
15
test/e2e/data/kustomize/providerID-with-region-default/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: | ||
- ../default | ||
|
||
patches: | ||
- path: patch-machine-template-identity-ref.yaml | ||
target: | ||
kind: OpenStackCluster | ||
- path: patch-kubeadm-config-template-provider-id.yaml | ||
target: | ||
kind: KubeadmConfigTemplate | ||
- path: patch-kubeadm-control-plane-provider-id.yaml | ||
target: | ||
kind: KubeadmControlPlane |
4 changes: 4 additions & 0 deletions
4
...a/kustomize/providerID-with-region-default/patch-kubeadm-config-template-provider-id.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,4 @@ | ||
--- | ||
- op: replace | ||
path: /spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/provider-id | ||
value: "openstack://${CAPO_REGION}/{{ instance_id }}" |
7 changes: 7 additions & 0 deletions
7
...ata/kustomize/providerID-with-region-default/patch-kubeadm-control-plane-provider-id.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,7 @@ | ||
--- | ||
- op: replace | ||
path: /spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/provider-id | ||
value: "openstack://${CAPO_REGION}/{{ instance_id }}" | ||
- op: replace | ||
path: /spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/provider-id | ||
value: "openstack://${CAPO_REGION}/{{ instance_id }}" |
4 changes: 4 additions & 0 deletions
4
...2e/data/kustomize/providerID-with-region-default/patch-machine-template-identity-ref.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,4 @@ | ||
--- | ||
- op: add | ||
path: /spec/identityRef/region | ||
value: ${CAPO_REGION} |
15 changes: 15 additions & 0 deletions
15
test/e2e/data/kustomize/providerID-with-region-override/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: | ||
- ../default | ||
|
||
patches: | ||
- path: patch-kubeadm-config-template-provider-id.yaml | ||
target: | ||
kind: KubeadmConfigTemplate | ||
- path: patch-kubeadm-control-plane-provider-id.yaml | ||
target: | ||
kind: KubeadmControlPlane | ||
- path: patch-openstack-machine-template-identityRef.yaml | ||
target: | ||
kind: OpenStackMachineTemplate |
4 changes: 4 additions & 0 deletions
4
.../kustomize/providerID-with-region-override/patch-kubeadm-config-template-provider-id.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,4 @@ | ||
--- | ||
- op: replace | ||
path: /spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/provider-id | ||
value: "openstack://${CAPO_REGION}/{{ instance_id }}" |
7 changes: 7 additions & 0 deletions
7
...ta/kustomize/providerID-with-region-override/patch-kubeadm-control-plane-provider-id.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,7 @@ | ||
--- | ||
- op: replace | ||
path: /spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/provider-id | ||
value: "openstack://${CAPO_REGION}/{{ instance_id }}" | ||
- op: replace | ||
path: /spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/provider-id | ||
value: "openstack://${CAPO_REGION}/{{ instance_id }}" |
7 changes: 7 additions & 0 deletions
7
...stomize/providerID-with-region-override/patch-openstack-machine-template-identityRef.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,7 @@ | ||
--- | ||
- op: add | ||
path: /spec/template/spec/identityRef | ||
value: | ||
cloudName: ${OPENSTACK_CLOUD} | ||
name: ${CLUSTER_NAME}-cloud-config | ||
region: ${CAPO_REGION} |
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
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