-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/npm_and_yarn/json5-2.2.3
- Loading branch information
Showing
29 changed files
with
915 additions
and
559 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
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,14 +1,15 @@ | ||
name: Create release PR | ||
name: release Project | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- CHANGELOG.md | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: 'Define release version (ex: v1, v2, v3)' | ||
required: true | ||
|
||
jobs: | ||
release-pr: | ||
uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main | ||
release: | ||
uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@12e20b8 | ||
with: | ||
release: ${{ github.event.inputs.release }} | ||
changelogPath: ./CHANGELOG.md |
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
89 changes: 89 additions & 0 deletions
89
.github/workflows/run-integration-tests-resource-annotation.yml
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,89 @@ | ||
name: Minikube Integration Tests - resource annotation | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
push: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run-integration-test: | ||
name: Run Minikube Integration Tests | ||
runs-on: ubuntu-latest | ||
env: | ||
KUBECONFIG: /home/runner/.kube/config | ||
NAMESPACE: test-${{ github.run_id }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install dependencies | ||
run: | | ||
rm -rf node_modules/ | ||
npm install | ||
- name: Install ncc | ||
run: npm i -g @vercel/ncc | ||
- name: Install conntrack | ||
run: sudo apt-get install -y conntrack | ||
- name: Build | ||
run: ncc build src/run.ts -o lib | ||
|
||
- uses: Azure/setup-kubectl@v3 | ||
name: Install Kubectl | ||
|
||
- id: setup-minikube | ||
name: Setup Minikube | ||
uses: medyagh/setup-minikube@latest | ||
with: | ||
minikube-version: 1.24.0 | ||
kubernetes-version: 1.22.3 | ||
driver: 'none' | ||
timeout-minutes: 3 | ||
|
||
- name: Create namespace to run tests | ||
run: kubectl create ns ${{ env.NAMESPACE }} | ||
|
||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Cleaning any previously created items | ||
run: | | ||
python test/integration/k8s-deploy-delete.py 'Service' 'all' ${{ env.NAMESPACE }} | ||
python test/integration/k8s-deploy-delete.py 'Deployment' 'all' ${{ env.NAMESPACE }} | ||
python test/integration/k8s-deploy-delete.py 'Ingress' 'all' ${{ env.NAMESPACE }} | ||
- name: Executing deploy action for pod with resource annotation enabled by default | ||
uses: ./ | ||
with: | ||
namespace: ${{ env.NAMESPACE }} | ||
images: nginx:1.14.2 | ||
manifests: | | ||
test/integration/manifests/test.yml | ||
action: deploy | ||
|
||
- name: Checking if deployments is created with additional resource annotation | ||
run: | | ||
python test/integration/k8s-deploy-test.py namespace=${{ env.NAMESPACE }} kind=Deployment name=nginx-deployment containerName=nginx:1.14.2 labels=app:nginx,workflow:actions.github.com-k8s-deploy,workflowFriendlyName:Minikube_Integration_Tests_-_resource_annotation selectorLabels=app:nginx annotations=actions.github.com/k8s-deploy,deployment.kubernetes.io/revision,kubectl.kubernetes.io/last-applied-configuration | ||
- name: Cleaning previously created deployment | ||
run: | | ||
python test/integration/k8s-deploy-delete.py 'Deployment' 'all' ${{ env.NAMESPACE }} | ||
- name: Executing deploy action for pod with resource annotation disabled | ||
uses: ./ | ||
with: | ||
namespace: ${{ env.NAMESPACE }} | ||
images: nginx:1.14.2 | ||
manifests: | | ||
test/integration/manifests/test.yml | ||
action: deploy | ||
annotate-resources: false | ||
|
||
- name: Checking if deployment is created without additional resource annotation | ||
run: | | ||
python test/integration/k8s-deploy-test.py namespace=${{ env.NAMESPACE }} kind=Deployment name=nginx-deployment containerName=nginx:1.14.2 selectorLabels=app:nginx annotations=deployment.kubernetes.io/revision,kubectl.kubernetes.io/last-applied-configuration |
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,11 @@ | ||
# Changelog | ||
|
||
## [4.10.0] - 2023-10-30 | ||
|
||
### Added | ||
|
||
- #287 Make annotating resources optional | ||
- #283 Fix “Service” route-method of the Blue-Green strategy with some manifest files | ||
- #281 bump codeql to node 16 | ||
- #279 upgrade codeql | ||
- #276 Fixes multiple namespaces bug |
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.