mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-23 05:41:19 -05:00
E2E: Use default VM machine type when not overriden
This commit is contained in:
parent
710ded2a89
commit
39eb58b403
10
.github/actions/constellation_create/action.yml
vendored
10
.github/actions/constellation_create/action.yml
vendored
@ -19,7 +19,7 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
machineType:
|
machineType:
|
||||||
description: "Machine type of VM to spawn."
|
description: "Machine type of VM to spawn."
|
||||||
required: true
|
required: false
|
||||||
coreosImage:
|
coreosImage:
|
||||||
description: "CoreOS image to use. The default value 'debug-latest' will select the latest available debug image."
|
description: "CoreOS image to use. The default value 'debug-latest' will select the latest available debug image."
|
||||||
required: true
|
required: true
|
||||||
@ -72,7 +72,6 @@ runs:
|
|||||||
"(.provider | select(. | has(\"gcp\")).gcp.project) = \"constellation-331613\" |
|
"(.provider | select(. | has(\"gcp\")).gcp.project) = \"constellation-331613\" |
|
||||||
(.provider | select(. | has(\"gcp\")).gcp.region) = \"europe-west3\" |
|
(.provider | select(. | has(\"gcp\")).gcp.region) = \"europe-west3\" |
|
||||||
(.provider | select(. | has(\"gcp\")).gcp.zone) = \"europe-west3-b\" |
|
(.provider | select(. | has(\"gcp\")).gcp.zone) = \"europe-west3-b\" |
|
||||||
(.provider | select(. | has(\"gcp\")).gcp.instanceType) = \"${{ inputs.machineType }}\" |
|
|
||||||
(.provider | select(. | has(\"gcp\")).gcp.enforcedMeasurements) = [11,12]" \
|
(.provider | select(. | has(\"gcp\")).gcp.enforcedMeasurements) = [11,12]" \
|
||||||
constellation-conf.yaml
|
constellation-conf.yaml
|
||||||
|
|
||||||
@ -113,6 +112,13 @@ runs:
|
|||||||
env:
|
env:
|
||||||
CSP: ${{ inputs.cloudProvider }}
|
CSP: ${{ inputs.cloudProvider }}
|
||||||
|
|
||||||
|
- name: Set instanceType
|
||||||
|
if: ${{ inputs.machineType && inputs.machineType != 'default' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
yq eval -i "(.provider | select(. | has(\"azure\")).azure.instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
|
||||||
|
yq eval -i "(.provider | select(. | has(\"gcp\")).gcp.instanceType) = \"${{ inputs.machineType }}\"" constellation-conf.yaml
|
||||||
|
|
||||||
- name: Add debugd firewall rule
|
- name: Add debugd firewall rule
|
||||||
run: |
|
run: |
|
||||||
yq eval -i '(.ingressFirewall) += {"name": "debugd", "description": "debugd default port", "protocol": "tcp", "iprange": "0.0.0.0/0", "fromport": 4000, "toport": 0}' constellation-conf.yaml
|
yq eval -i '(.ingressFirewall) += {"name": "debugd", "description": "debugd default port", "protocol": "tcp", "iprange": "0.0.0.0/0", "fromport": 4000, "toport": 0}' constellation-conf.yaml
|
||||||
|
2
.github/workflows/e2e-test-azure-weekly.yml
vendored
2
.github/workflows/e2e-test-azure-weekly.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
|||||||
controlNodesCount: "1"
|
controlNodesCount: "1"
|
||||||
autoscale: "false"
|
autoscale: "false"
|
||||||
cloudProvider: "azure"
|
cloudProvider: "azure"
|
||||||
machineType: "Standard_DC4as_v5"
|
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 }}
|
||||||
azureClientSecret: ${{ secrets.AZURE_E2E_CLIENT_SECRET }}
|
azureClientSecret: ${{ secrets.AZURE_E2E_CLIENT_SECRET }}
|
||||||
|
2
.github/workflows/e2e-test-azure.yml
vendored
2
.github/workflows/e2e-test-azure.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
controlNodesCount: "1"
|
controlNodesCount: "1"
|
||||||
autoscale: "false"
|
autoscale: "false"
|
||||||
cloudProvider: "azure"
|
cloudProvider: "azure"
|
||||||
machineType: "Standard_DC4as_v5"
|
azure_credentials: ${{ secrets.AZURE_E2E_CREDENTIALS }}
|
||||||
azureClientSecret: ${{ secrets.AZURE_E2E_CLIENT_SECRET }}
|
azureClientSecret: ${{ secrets.AZURE_E2E_CLIENT_SECRET }}
|
||||||
azureResourceGroup: ${{ steps.az_resource_group_gen.outputs.res_group_name }}
|
azureResourceGroup: ${{ steps.az_resource_group_gen.outputs.res_group_name }}
|
||||||
# TODO: Remove E2E_SKIP once AB#2174 is resolved
|
# TODO: Remove E2E_SKIP once AB#2174 is resolved
|
||||||
|
1
.github/workflows/e2e-test-gcp-weekly.yml
vendored
1
.github/workflows/e2e-test-gcp-weekly.yml
vendored
@ -25,7 +25,6 @@ jobs:
|
|||||||
controlNodesCount: "1"
|
controlNodesCount: "1"
|
||||||
autoscale: "false"
|
autoscale: "false"
|
||||||
cloudProvider: "gcp"
|
cloudProvider: "gcp"
|
||||||
machineType: "n2d-standard-4"
|
|
||||||
gcp_service_account_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
|
gcp_service_account_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
|
||||||
gcpClusterServiceAccountKey: ${{ secrets.GCP_CLUSTER_SERVICE_ACCOUNT }}
|
gcpClusterServiceAccountKey: ${{ secrets.GCP_CLUSTER_SERVICE_ACCOUNT }}
|
||||||
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'
|
||||||
|
1
.github/workflows/e2e-test-gcp.yml
vendored
1
.github/workflows/e2e-test-gcp.yml
vendored
@ -20,7 +20,6 @@ jobs:
|
|||||||
controlNodesCount: "1"
|
controlNodesCount: "1"
|
||||||
autoscale: "false"
|
autoscale: "false"
|
||||||
cloudProvider: "gcp"
|
cloudProvider: "gcp"
|
||||||
machineType: "n2d-standard-4"
|
|
||||||
gcp_service_account_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
|
gcp_service_account_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
|
||||||
gcpClusterServiceAccountKey: ${{ secrets.GCP_CLUSTER_SERVICE_ACCOUNT }}
|
gcpClusterServiceAccountKey: ${{ secrets.GCP_CLUSTER_SERVICE_ACCOUNT }}
|
||||||
# TODO: Remove E2E_SKIP once AB#2174 is resolved
|
# TODO: Remove E2E_SKIP once AB#2174 is resolved
|
||||||
|
13
.github/workflows/e2e-test-manual.yml
vendored
13
.github/workflows/e2e-test-manual.yml
vendored
@ -24,14 +24,6 @@ on:
|
|||||||
- "azure"
|
- "azure"
|
||||||
default: "gcp"
|
default: "gcp"
|
||||||
required: true
|
required: true
|
||||||
machineType:
|
|
||||||
description: "VM machine type. Make sure it matches selected cloud provider!"
|
|
||||||
type: choice
|
|
||||||
options:
|
|
||||||
- "n2d-standard-4" # GCP
|
|
||||||
- "Standard_DC4as_v5" # Azure
|
|
||||||
default: "n2d-standard-4"
|
|
||||||
required: true
|
|
||||||
sonobuoyTestSuiteCmd:
|
sonobuoyTestSuiteCmd:
|
||||||
description: "Which tests should be run? Check README for guidance!"
|
description: "Which tests should be run? Check README for guidance!"
|
||||||
default: "--mode quick"
|
default: "--mode quick"
|
||||||
@ -49,6 +41,11 @@ on:
|
|||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
required: false
|
required: false
|
||||||
|
machineType:
|
||||||
|
description: "Override VM machine type. Leave as 'default' or empty to use the default VM type for the selected cloud provider."
|
||||||
|
type: string
|
||||||
|
default: "default"
|
||||||
|
required: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e-test-manual:
|
e2e-test-manual:
|
||||||
|
Loading…
Reference in New Issue
Block a user