-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from canonical/KU-1226/integration-test-for-d…
…isableDefaultCNI-flag Integration test for disable default cni flag
- Loading branch information
Showing
6 changed files
with
602 additions
and
308 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
117 changes: 117 additions & 0 deletions
117
integration/cluster-manifests/cluster-disable-default-cni.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,117 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: test-ci-cluster | ||
namespace: default | ||
spec: | ||
controlPlaneRef: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: MicroK8sControlPlane | ||
name: test-ci-cluster-control-plane | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSCluster | ||
name: test-ci-cluster | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSCluster | ||
metadata: | ||
name: test-ci-cluster | ||
namespace: default | ||
spec: | ||
bastion: | ||
enabled: false | ||
region: us-east-1 | ||
sshKeyName: capi | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: MicroK8sControlPlane | ||
metadata: | ||
name: test-ci-cluster-control-plane | ||
namespace: default | ||
spec: | ||
controlPlaneConfig: | ||
clusterConfiguration: | ||
portCompatibilityRemap: true | ||
initConfiguration: | ||
IPinIP: true | ||
addons: | ||
- dns | ||
- ingress | ||
confinement: classic | ||
disableDefaultCNI: true | ||
joinTokenTTLInSecs: 900000 | ||
riskLevel: stable | ||
machineTemplate: | ||
infrastructureTemplate: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachineTemplate | ||
name: test-ci-cluster-control-plane | ||
replicas: 1 | ||
upgradeStrategy: SmartUpgrade | ||
version: v1.27.0 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachineTemplate | ||
metadata: | ||
name: test-ci-cluster-control-plane | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
iamInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io | ||
instanceType: t3.large | ||
publicIP: false | ||
sshKeyName: capi | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachineDeployment | ||
metadata: | ||
name: test-ci-cluster-md-0 | ||
namespace: default | ||
spec: | ||
clusterName: test-ci-cluster | ||
replicas: 1 | ||
selector: | ||
matchLabels: null | ||
template: | ||
spec: | ||
bootstrap: | ||
configRef: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: MicroK8sConfigTemplate | ||
name: test-ci-cluster-md-0 | ||
clusterName: test-ci-cluster | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachineTemplate | ||
name: test-ci-cluster-md-0 | ||
version: 1.27.0 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachineTemplate | ||
metadata: | ||
name: test-ci-cluster-md-0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
iamInstanceProfile: nodes.cluster-api-provider-aws.sigs.k8s.io | ||
instanceType: t3.large | ||
publicIP: false | ||
sshKeyName: capi | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: MicroK8sConfigTemplate | ||
metadata: | ||
name: test-ci-cluster-md-0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
clusterConfiguration: | ||
portCompatibilityRemap: true | ||
initConfiguration: | ||
confinement: classic | ||
disableDefaultCNI: true | ||
riskLevel: stable |
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,115 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: test-ci-cluster | ||
namespace: default | ||
spec: | ||
controlPlaneRef: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: MicroK8sControlPlane | ||
name: test-ci-cluster-control-plane | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSCluster | ||
name: test-ci-cluster | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSCluster | ||
metadata: | ||
name: test-ci-cluster | ||
namespace: default | ||
spec: | ||
bastion: | ||
enabled: false | ||
region: us-east-1 | ||
sshKeyName: capi | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: MicroK8sControlPlane | ||
metadata: | ||
name: test-ci-cluster-control-plane | ||
namespace: default | ||
spec: | ||
controlPlaneConfig: | ||
clusterConfiguration: | ||
portCompatibilityRemap: true | ||
initConfiguration: | ||
IPinIP: true | ||
addons: | ||
- dns | ||
- ingress | ||
confinement: classic | ||
joinTokenTTLInSecs: 900000 | ||
riskLevel: stable | ||
machineTemplate: | ||
infrastructureTemplate: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachineTemplate | ||
name: test-ci-cluster-control-plane | ||
replicas: 1 | ||
upgradeStrategy: SmartUpgrade | ||
version: v1.27.0 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachineTemplate | ||
metadata: | ||
name: test-ci-cluster-control-plane | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
iamInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io | ||
instanceType: t3.large | ||
publicIP: false | ||
sshKeyName: capi | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachineDeployment | ||
metadata: | ||
name: test-ci-cluster-md-0 | ||
namespace: default | ||
spec: | ||
clusterName: test-ci-cluster | ||
replicas: 1 | ||
selector: | ||
matchLabels: null | ||
template: | ||
spec: | ||
bootstrap: | ||
configRef: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: MicroK8sConfigTemplate | ||
name: test-ci-cluster-md-0 | ||
clusterName: test-ci-cluster | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachineTemplate | ||
name: test-ci-cluster-md-0 | ||
version: 1.27.0 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2 | ||
kind: AWSMachineTemplate | ||
metadata: | ||
name: test-ci-cluster-md-0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
iamInstanceProfile: nodes.cluster-api-provider-aws.sigs.k8s.io | ||
instanceType: t3.large | ||
publicIP: false | ||
sshKeyName: capi | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: MicroK8sConfigTemplate | ||
metadata: | ||
name: test-ci-cluster-md-0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
clusterConfiguration: | ||
portCompatibilityRemap: true | ||
initConfiguration: | ||
confinement: classic | ||
riskLevel: stable |
Oops, something went wrong.