-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: AWS / GCP / Azure CLI connections
* feat: download certain CLI tools in Docker image [skip ci] * chore: format Dockerfile [skip ci] * chore: update exec fixture to test if jq gets installed with arkade * chore: make resources * feat: support connections in AWS * fix: Docker file * feat: Gcloud exec with connection support * feat: azure cli connection * chore: gen resources and manifests * feat: added aws to e2e test * fix: add region to aws exec fixture * fix: aws connection config saver * debug: send generated credentials * chore: disable other workflows for now and try a different s3 command * chore: don't save region in credentials file * fix: make use of session tokens * chore: do not create aws credential file (just testing) * make aws exec test run on a cron schedule * chore: make crd and schema * refactor: setup connection based on what's provided not based on the command * refactor: minimize docker image * fix: save the credentials in the current directory * chore: generate manifests.yaml
- Loading branch information
1 parent
c5ae936
commit cc1c863
Showing
23 changed files
with
1,484 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: AWS-exec-test | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
suite: | ||
- aws/minimal | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0 | ||
with: | ||
go-version: 1.20.x | ||
- name: Checkout code | ||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | ||
- uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
.bin | ||
key: cache-${{ hashFiles('**/go.sum') }}-${{ hashFiles('.bin/*') }} | ||
restore-keys: | | ||
cache- | ||
- name: Build | ||
run: make bin | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
role-to-assume: arn:aws:iam::765618022540:role/canary-checker-github-iam-Role-N9JG51I5V3JJ | ||
aws-region: us-east-1 | ||
role-duration-seconds: 1800 # 30 minutes | ||
- name: Test | ||
env: | ||
KUBERNETES_VERSION: v1.20.7 | ||
GH_TOKEN: ${{ secrets.CHECKRUNS_TOKEN }} | ||
run: ./test/e2e.sh fixtures/${{matrix.suite}} | ||
- name: Publish Unit Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@b9f6c61d965bcaa18acc02d6daf706373a448f02 # v1.40 | ||
if: always() && github.event.repository.fork == 'false' | ||
with: | ||
files: test/test-results.xml | ||
check_name: E2E - ${{matrix.suite}} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.bin/ | ||
.creds/ | ||
.release/ | ||
bin/ | ||
.idea/ | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.