forked from openshift/cloud-provider-nutanix
-
Notifications
You must be signed in to change notification settings - Fork 0
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 openshift#33 from openshift-cloud-team/rebase-bot-…
…main OCPCLOUD-2721: Merge https://github.com/nutanix-cloud-native/cloud-provider-nutanix:main (efef4e5) into main
- Loading branch information
Showing
5,681 changed files
with
514,617 additions
and
189,085 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
e2e-labels: | ||
description: Labels to filter e2e tests | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
e2e-test: | ||
runs-on: | ||
- self-hosted-ncn-dind | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: "${{ github.event.pull_request.head.sha }}" | ||
|
||
# Install nix using cachix/install-nix-action if running on ARC runners | ||
# See: https://github.com/DeterminateSystems/nix-installer-action/issues/68 | ||
- name: Install Nix on self-hosted ARC runners | ||
uses: cachix/install-nix-action@V27 | ||
with: | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install devbox | ||
uses: jetify-com/devbox-install-action@v0.11.0 | ||
with: | ||
enable-cache: "false" | ||
skip-nix-installation: "true" | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/golangci-lint | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: Get Control Plane endpoint IP | ||
id: get-control-plane-endpoint-ip | ||
run: | | ||
export CONTROL_PLANE_ENDPOINT_RANGE_START="${{ vars.CONTROL_PLANE_ENDPOINT_RANGE_START }}" | ||
export CONTROL_PLANE_ENDPOINT_RANGE_END="${{ vars.CONTROL_PLANE_ENDPOINT_RANGE_END }}" | ||
control_plane_endpoint_ip="$(devbox run -- make nutanix-cp-endpoint-ip)" | ||
echo "control_plane_endpoint_ip=${control_plane_endpoint_ip}" >> "${GITHUB_OUTPUT}" | ||
- name: Check Control Plane endpoint IP | ||
run: | | ||
if [[ -z "${{ steps.get-control-plane-endpoint-ip.outputs.control_plane_endpoint_ip }}" ]]; then | ||
echo "control_plane_endpoint_ip is empty; cannot proceed with e2e tests" | ||
exit 1 | ||
fi | ||
- name: Test build | ||
run: devbox run -- make test-e2e LABEL_FILTERS='${{ inputs.e2e-labels }}' | ||
env: | ||
NUTANIX_USER: ${{ secrets.NUTANIX_USER }} | ||
NUTANIX_PASSWORD: ${{ secrets.NUTANIX_PASSWORD }} | ||
NUTANIX_ENDPOINT: ${{ secrets.NUTANIX_ENDPOINT }} | ||
NUTANIX_PRISM_ELEMENT_CLUSTER_NAME: ${{ vars.NUTANIX_PRISM_ELEMENT_CLUSTER_NAME }} | ||
NUTANIX_SUBNET_NAME: ${{ vars.NUTANIX_SUBNET_NAME }} | ||
LOCAL_IMAGE_REGISTRY: ${{ secrets.LOCAL_IMAGE_REGISTRY }} | ||
CONTROL_PLANE_ENDPOINT_IP: ${{ steps.get-control-plane-endpoint-ip.outputs.control_plane_endpoint_ip }} |
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
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
Oops, something went wrong.