-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix panic when determining cluster domain. #115
Merged
+1,574
−1,337
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a30dd57
Fix a completely broken integration_test package.
thallgren ecf237c
Fix panic when determining cluster domain.
thallgren 6955feb
Update dependencies.
thallgren 49b30c4
Use private registry for CI tests.
thallgren be8ba87
Ensure that httptest.Server is always closed.
thallgren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,13 @@ on: | |
pull_request_target: | ||
types: | ||
- labeled | ||
|
||
env: | ||
A8R_AGENT_REGISTRY: 'localhost:5000' | ||
KUBECONFIG: ${{ github.workspace }}/kubeconfig.yaml | ||
|
||
jobs: | ||
build-image: | ||
integration-test: | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.label.name == 'ok to test' }} | ||
steps: | ||
|
@@ -22,69 +27,35 @@ jobs: | |
uses: actions/setup-go@v3 | ||
with: | ||
go-version: stable | ||
- name: Build image | ||
run: | | ||
make image-tar | ||
- name: Upload image | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: image | ||
path: build-output/ambassador-agent-image.tar | ||
test: | ||
runs-on: ubuntu-latest | ||
needs: build-image | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: "${{ github.event.pull_request.head.sha }}" | ||
- name: Get last run | ||
uses: ./.github/actions/rerun-cache | ||
id: get_last_run | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: stable | ||
- name: Setup kubectl | ||
uses: azure/setup-kubectl@v3 | ||
id: kubectl | ||
if: steps.get_last_run.outputs.passed != 'success' | ||
- name: Download image | ||
uses: actions/download-artifact@v3 | ||
if: steps.get_last_run.outputs.passed != 'success' | ||
with: | ||
name: image | ||
- name: Prepare kluster | ||
uses: ./.github/actions/prepare-kluster | ||
if: steps.get_last_run.outputs.passed != 'success' | ||
- name: Provision Kubeception cluster | ||
id: kluster | ||
with: | ||
token: ${{ secrets.DEV_AMBASSADOR_AGENT_KUBECEPTION_TOKEN }} | ||
image-tar: ambassador-agent-image.tar | ||
github-sha: ${{ github.event.pull_request.head.sha }} | ||
uses: datawire/infra-actions/[email protected] | ||
with: | ||
distribution: Kubeception | ||
version: 1.26 | ||
kubeconfig: ${{ env.KUBECONFIG }} | ||
kubeceptionToken: ${{ secrets.DEV_AMBASSADOR_AGENT_KUBECEPTION_TOKEN }} | ||
gkeCredentials: '{"project_id": "foo"}' # See https://github.com/datawire/infra-actions/issues/66 | ||
- name: Add a private image registry to the cluster | ||
run: make private-registry | ||
- name: Build image | ||
id: build | ||
run: | | ||
make push-image | ||
echo "version=$(cat build-output/version.txt)" >> $GITHUB_OUTPUT | ||
- name: Run tests | ||
if: steps.get_last_run.outputs.passed != 'success' | ||
uses: nick-invision/retry@v2 | ||
env: | ||
A8R_AGENT_VERSION: ${{ steps.build.outputs.version }} | ||
AMBASSADOR_AGENT_DOCKER_IMAGE: localhost:5000/ambassador-agent:${{ steps.build.outputs.version }} | ||
KAT_SERVER_DOCKER_IMAGE: docker.io/datawiredev/kat-server:3.0.1-0.20220817135951-2cb28ef4f415 | ||
with: | ||
max_attempts: 3 | ||
timeout_minutes: 15 | ||
command: | | ||
export DTEST_KUBECONFIG=${{ steps.kluster.outputs.kubeconfig }} | ||
export KUBECONFIG=${{ steps.kluster.outputs.kubeconfig }} | ||
export AMBASSADOR_AGENT_DOCKER_IMAGE=datawiredev/ambassador-agent:dev-latest | ||
export KAT_SERVER_DOCKER_IMAGE=docker.io/datawiredev/kat-server:3.0.1-0.20220817135951-2cb28ef4f415 | ||
make go-integration-test | ||
- name: Mark test as succesfull | ||
run: echo "::set-output name=run_result::success" > run_result | ||
- name: Cleanup kluster | ||
uses: ./.github/actions/cleanup-kluster | ||
if: always() | ||
with: | ||
token: ${{ secrets.DEV_AMBASSADOR_AGENT_KUBECEPTION_TOKEN }} | ||
github-sha: ${{ github.event.pull_request.head.sha }} | ||
|
||
|
||
|
||
|
||
|
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
random thought:
I'm not too familiar with the Agent code base beyond knowing it was historically in emissary-ingress repo and just scrapes Edgissary for data and forwards it on to Ambassador Cloud. But, I was surprised to see references to the
kat-server
so I will take it as a mental note to investigate this further during cooldown.