forked from virtual-kubelet/azure-aci
-
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.
Included commits: - chore: bump actions/setup-go from 4 to 5 (virtual-kubelet#585) - chore: bump azure/login from 1.5.0 to 1.5.1 (virtual-kubelet#584) - ci: Fix e2e pipelines (virtual-kubelet#592) - fix: security fix 11 & vk upgrade to v1.11.0 (virtual-kubelet#590) - chore: bump azure/login from 1.5.1 to 1.6.1 (virtual-kubelet#593) - feat: Update ACI regions (virtual-kubelet#589) - chore: updating permissions for workflow files (virtual-kubelet#594) - fix: dependabot workflow config file (virtual-kubelet#595) - ci: Remove duplicate content permission (virtual-kubelet#596) - release: update manifest and helm charts for v1.6.1 (virtual-kubelet#597) - chore: Add Smriti to the owners list (virtual-kubelet#608) chore: bump azure/login from 1.5.0 to 1.5.1 (virtual-kubelet#584) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> ci: Fix e2e pipelines (virtual-kubelet#592) Signed-off-by: Heba Elayoty <[email protected]> fix: security fix 11 & vk upgrade to v1.11.0 (virtual-kubelet#590) Signed-off-by: Heba Elayoty <[email protected]> Co-authored-by: Heba <[email protected]> chore: bump azure/login from 1.5.1 to 1.6.1 (virtual-kubelet#593) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> feat: Update ACI regions (virtual-kubelet#589) Signed-off-by: Heba Elayoty <[email protected]> chore: updating permissions for workflow files (virtual-kubelet#594) fix: dependabot workflow config file (virtual-kubelet#595) ci: Remove duplicate content permission (virtual-kubelet#596) release: update manifest and helm charts for v1.6.1 (virtual-kubelet#597) Co-authored-by: smritidahal653 <[email protected]> chore: Add Smriti to the owners list (virtual-kubelet#608) Signed-off-by: Heba <[email protected]>
- Loading branch information
1 parent
af520c5
commit b941bf1
Showing
20 changed files
with
251 additions
and
250 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 |
---|---|---|
|
@@ -12,36 +12,24 @@ on: | |
branches: [master] | ||
paths-ignore: ['docs/**', '**.md', '**.mdx', '**.png', '**.jpg'] | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
# Common versions | ||
GO_VERSION: '1.20' | ||
GO_VERSION: '1.20' # Common versions | ||
E2E_IMG_TAG: 'e2e-ci' | ||
|
||
jobs: | ||
export-registry: | ||
runs-on: ubuntu-20.04 | ||
outputs: | ||
registry: ${{ steps.export.outputs.registry }} | ||
steps: | ||
- id: export | ||
run: | | ||
# registry must be in lowercase | ||
echo "::set-output name=registry::$(echo "${{ env.REGISTRY }}/${{ github.repository }}" | tr [:upper:] [:lower:])" | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
actions: read #This is required for reading environment variables | ||
deployments: read #This is required for reading deployment status | ||
|
||
jobs: | ||
aks-addon-e2e-tests: | ||
needs: export-registry | ||
environment: test | ||
env: | ||
REGISTRY: ${{ needs.export-registry.outputs.registry }} | ||
E2E_IMG_TAG: "e2e-ci" | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go ${{ env.GO_VERSION }} | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
|
@@ -51,30 +39,26 @@ jobs: | |
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
|
||
- name: Shorten SHA | ||
id: vars | ||
run: echo "::set-output name=pr_sha_short::$(git rev-parse --short ${{ github.event.pull_request.head.sha }} )" | ||
- name: Get Repo | ||
run: | | ||
echo "REGISTRY=$(echo "${{ env.REGISTRY }}/${{ github.repository }}" | tr [:upper:] [:lower:])" >> $GITHUB_ENV | ||
- name: Set e2e Cluster Name | ||
run: | | ||
rand=${{ steps.vars.outputs.pr_sha_short }} | ||
echo "pr_sha_short=$(git rev-parse --short ${{ github.event.pull_request.head.sha }} )" >> $GITHUB_ENV | ||
rand=${{ env.pr_sha_short }} | ||
if [ "$rand" = "" ]; then | ||
rand=$RANDOM | ||
fi | ||
echo "CLUSTER_NAME=aks-addon-vk-test${rand}" >> $GITHUB_ENV | ||
- name: Install Azure CLI latest | ||
run: | | ||
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash | ||
az version | ||
- uses: azure/[email protected] | ||
- uses: azure/[email protected] | ||
with: | ||
client-id: ${{ secrets.CLIENTID }} | ||
tenant-id: ${{ secrets.TENANT_ID }} | ||
subscription-id: ${{ secrets.SUBSCRIPTIONID }} | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
|
||
- name: Run e2e test | ||
run: | | ||
|
@@ -85,10 +69,10 @@ jobs: | |
CLUSTER_NAME: ${{ env.CLUSTER_NAME }} | ||
VERSION: ${{ env.E2E_IMG_TAG}} | ||
E2E_TARGET: "pr" | ||
PR_COMMIT_SHA: ${{ steps.vars.outputs.pr_sha_short }} | ||
PR_COMMIT_SHA: ${{ env.pr_sha_short }} | ||
|
||
- name: Cleanup e2e resources | ||
if: ${{ always() }} | ||
run: | | ||
set +e | ||
az group delete --name "${{ env.CLUSTER_NAME }}" --yes --no-wait || true | ||
az group delete --name "${{ env.CLUSTER_NAME }}" --yes --no-wait || true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request_target: | ||
branches: | ||
- master | ||
|
@@ -15,36 +14,24 @@ on: | |
- '.github/workflows/chart.yml' | ||
- 'charts/**' | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
# Common versions | ||
GO_VERSION: '1.20' | ||
GO_VERSION: '1.20' # Common versions | ||
E2E_IMG_TAG: "e2e-ci" | ||
|
||
jobs: | ||
export-registry: | ||
runs-on: ubuntu-20.04 | ||
outputs: | ||
registry: ${{ steps.export.outputs.registry }} | ||
steps: | ||
- id: export | ||
run: | | ||
# registry must be in lowercase | ||
echo "::set-output name=registry::$(echo "${{ env.REGISTRY }}/${{ github.repository }}" | tr [:upper:] [:lower:])" | ||
permissions: | ||
id-token: write | ||
contents: read | ||
actions: read | ||
deployments: read | ||
|
||
jobs: | ||
e2e-tests: | ||
needs: export-registry | ||
environment: test | ||
env: | ||
REGISTRY: ${{ needs.export-registry.outputs.registry }} | ||
E2E_IMG_TAG: "e2e-ci" | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go ${{ env.GO_VERSION }} | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
|
@@ -54,30 +41,26 @@ jobs: | |
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
|
||
- name: Shorten SHA | ||
id: vars | ||
run: echo "::set-output name=pr_sha_short::$(git rev-parse --short ${{ github.event.pull_request.head.sha }} )" | ||
- name: Get Repo | ||
run: | | ||
echo "REGISTRY=$(echo "${{ env.REGISTRY }}/${{ github.repository }}" | tr [:upper:] [:lower:])" >> $GITHUB_ENV | ||
- name: Set e2e Cluster Name | ||
run: | | ||
rand=${{ steps.vars.outputs.pr_sha_short }} | ||
echo "pr_sha_short=$(git rev-parse --short ${{ github.event.pull_request.head.sha }} )" >> $GITHUB_ENV | ||
rand=${{ env.pr_sha_short }} | ||
if [ "$rand" = "" ]; then | ||
rand=$RANDOM | ||
fi | ||
echo "CLUSTER_NAME=vk-aci-test${rand}" >> $GITHUB_ENV | ||
- name: Install Azure CLI latest | ||
run: | | ||
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash | ||
az version | ||
- uses: azure/[email protected] | ||
- uses: azure/[email protected] | ||
with: | ||
client-id: ${{ secrets.CLIENTID }} | ||
tenant-id: ${{ secrets.TENANT_ID }} | ||
subscription-id: ${{ secrets.SUBSCRIPTIONID }} | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
|
||
- name: Run e2e test | ||
run: | | ||
|
@@ -94,4 +77,4 @@ jobs: | |
if: ${{ always() }} | ||
run: | | ||
set +e | ||
az group delete --name "${{ env.CLUSTER_NAME }}" --yes --no-wait || true | ||
az group delete --name "${{ env.CLUSTER_NAME }}" --yes --no-wait || true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Ref: https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-code-owners | ||
|
||
* @Fei-Guo @helayoty | ||
* @Fei-Guo @helayoty @smritidahal653 |
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
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.