Use Azure CVMs in e2e tests

This commit is contained in:
Malte Poll 2022-08-19 17:23:59 +02:00 committed by Malte Poll
parent ec548a6d17
commit e841d9201b
4 changed files with 5 additions and 5 deletions

View File

@ -26,7 +26,7 @@ jobs:
controlNodesCount: "1" controlNodesCount: "1"
autoscale: "false" autoscale: "false"
cloudProvider: "azure" cloudProvider: "azure"
machineType: "Standard_D4a_v4" machineType: "Standard_DC4as_v5"
azure_credentials: ${{ secrets.AZURE_E2E_CREDENTIALS }} azure_credentials: ${{ secrets.AZURE_E2E_CREDENTIALS }}
sonobuoyTestSuiteCmd: '--plugin e2e --plugin-env e2e.E2E_FOCUS="\[Conformance\]" --plugin-env e2e.E2E_SKIP="for service with type clusterIP|HostPort validates that there is no conflict between pods with same hostPort but different hostIP and protocol" --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-plugin.yaml --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-master-plugin.yaml' sonobuoyTestSuiteCmd: '--plugin e2e --plugin-env e2e.E2E_FOCUS="\[Conformance\]" --plugin-env e2e.E2E_SKIP="for service with type clusterIP|HostPort validates that there is no conflict between pods with same hostPort but different hostIP and protocol" --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-plugin.yaml --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-master-plugin.yaml'
kubernetesVersion: ${{ matrix.version }} kubernetesVersion: ${{ matrix.version }}

View File

@ -21,7 +21,7 @@ jobs:
controlNodesCount: "1" controlNodesCount: "1"
autoscale: "false" autoscale: "false"
cloudProvider: "azure" cloudProvider: "azure"
machineType: "Standard_D4a_v4" machineType: "Standard_DC4as_v5"
azure_credentials: ${{ secrets.AZURE_E2E_CREDENTIALS }} azure_credentials: ${{ secrets.AZURE_E2E_CREDENTIALS }}
# TODO: Remove E2E_SKIP once AB#2174 is resolved # TODO: Remove E2E_SKIP once AB#2174 is resolved
sonobuoyTestSuiteCmd: '--plugin e2e --plugin-env e2e.E2E_FOCUS="\[Conformance\]" --plugin-env e2e.E2E_SKIP="for service with type clusterIP|HostPort validates that there is no conflict between pods with same hostPort but different hostIP and protocol" --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-plugin.yaml --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-master-plugin.yaml' sonobuoyTestSuiteCmd: '--plugin e2e --plugin-env e2e.E2E_FOCUS="\[Conformance\]" --plugin-env e2e.E2E_SKIP="for service with type clusterIP|HostPort validates that there is no conflict between pods with same hostPort but different hostIP and protocol" --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-plugin.yaml --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-master-plugin.yaml'
@ -53,7 +53,7 @@ jobs:
controlNodesCount: "1" controlNodesCount: "1"
autoscale: "false" autoscale: "false"
cloudProvider: "azure" cloudProvider: "azure"
machineType: "Standard_D4a_v4" machineType: "Standard_DC4as_v5"
azure_credentials: ${{ secrets.AZURE_E2E_CREDENTIALS }} azure_credentials: ${{ secrets.AZURE_E2E_CREDENTIALS }}
sonobuoyTestSuiteCmd: "--mode quick" sonobuoyTestSuiteCmd: "--mode quick"
kubernetesVersion: ${{ matrix.version }} kubernetesVersion: ${{ matrix.version }}

View File

@ -29,7 +29,7 @@ on:
type: choice type: choice
options: options:
- "n2d-standard-2" # GCP - "n2d-standard-2" # GCP
- "Standard_D4a_v4" # Azure - "Standard_DC4as_v5" # Azure
default: "n2d-standard-2" default: "n2d-standard-2"
required: true required: true
sonobuoyTestSuiteCmd: sonobuoyTestSuiteCmd:

View File

@ -15,7 +15,7 @@ func TestFirewallPermissions(t *testing.T) {
Name: "name", Name: "name",
NamePrefix: "constellation-", NamePrefix: "constellation-",
Location: "UK South", Location: "UK South",
InstanceType: "Standard_D2s_v3", InstanceType: "Standard_DC2as_v5",
Count: 3, Count: 3,
Username: "constellation", Username: "constellation",
SubnetID: "subnet-id", SubnetID: "subnet-id",