-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e test for MachinePool and AWSManagedMachinePool (#334)
* Added missing configuration for MachinePool creation * Added docs for AWSMachinePool * Refactor docs * Adding common e2e manifest for MachineDeployment and MachinePool * Minor syntax fix * Removing extra spaces * Adding assert for MachinePool * Debugging for e2e tests * Adding env variables in manifest * Using envsubst to populate the e2e manifest * Resolving errors in e2e tests * Minor syntax fix * Docs changes
- Loading branch information
1 parent
5a7d43b
commit e4e6635
Showing
5 changed files
with
307 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: capi-quickstart | ||
namespace: default | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
controlPlaneRef: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta2 | ||
kind: AWSManagedControlPlane | ||
name: capi-quickstart-control-plane | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSManagedCluster | ||
name: capi-quickstart | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSManagedCluster | ||
metadata: | ||
name: capi-quickstart | ||
namespace: default | ||
spec: {} | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta2 | ||
kind: AWSManagedControlPlane | ||
metadata: | ||
name: capi-quickstart-control-plane | ||
namespace: default | ||
spec: | ||
region: ${AWS_REGION} | ||
sshKeyName: ${AWS_SSH_KEY_NAME} | ||
version: v1.23.10 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSManagedMachinePool | ||
metadata: | ||
name: capi-quickstart-pool-0 | ||
namespace: default | ||
spec: | ||
scaling: | ||
minSize: 0 | ||
maxSize: 10 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachinePool | ||
metadata: | ||
name: capi-quickstart-pool-1 | ||
namespace: default | ||
spec: | ||
awsLaunchTemplate: | ||
iamInstanceProfile: nodes.cluster-api-provider-aws.sigs.k8s.io | ||
instanceType: ${AWS_NODE_MACHINE_TYPE} | ||
sshKeyName: ${AWS_SSH_KEY_NAME} | ||
maxSize: 10 | ||
minSize: 1 | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachinePool | ||
metadata: | ||
name: capi-quickstart-pool-1 | ||
namespace: default | ||
spec: | ||
clusterName: capi-quickstart | ||
replicas: 1 | ||
template: | ||
spec: | ||
bootstrap: | ||
configRef: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 | ||
kind: EKSConfig | ||
name: capi-quickstart-pool-1 | ||
clusterName: capi-quickstart | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachinePool | ||
name: capi-quickstart-pool-1 | ||
version: v1.23.10 | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachinePool | ||
metadata: | ||
name: capi-quickstart-pool-0 | ||
namespace: default | ||
spec: | ||
clusterName: capi-quickstart | ||
replicas: 1 | ||
template: | ||
spec: | ||
bootstrap: | ||
dataSecretName: "" | ||
clusterName: capi-quickstart | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSManagedMachinePool | ||
name: capi-quickstart-pool-0 | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 | ||
kind: EKSConfig | ||
metadata: | ||
name: capi-quickstart-pool-1 | ||
namespace: default | ||
spec: {} | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachineDeployment | ||
metadata: | ||
name: capi-quickstart-md-0 | ||
namespace: default | ||
spec: | ||
clusterName: capi-quickstart | ||
replicas: 2 | ||
selector: | ||
matchLabels: null | ||
template: | ||
spec: | ||
bootstrap: | ||
configRef: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 | ||
kind: EKSConfigTemplate | ||
name: capi-quickstart-md-0 | ||
clusterName: capi-quickstart | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachineTemplate | ||
name: capi-quickstart-md-0 | ||
version: v1.23.10 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachineTemplate | ||
metadata: | ||
name: capi-quickstart-md-0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
iamInstanceProfile: nodes.cluster-api-provider-aws.sigs.k8s.io | ||
instanceType: ${AWS_NODE_MACHINE_TYPE} | ||
sshKeyName: ${AWS_SSH_KEY_NAME} | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2 | ||
kind: EKSConfigTemplate | ||
metadata: | ||
name: capi-quickstart-md-0 | ||
namespace: default | ||
spec: | ||
template: {} |
Oops, something went wrong.