-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for Linux-arm64 * add release workflow (#46) * master to main rename (#48) * Updated workflows, codeowner, .gitignore, tsconfig (#49) * Updated workflows, codeowner, .gitignore, tsconfig * Fixing test discrepancies * Fixing paths * Fixing paths * fixing int tests * Fixing int test * Fixing int test * Helm namespace feature (#51) * switch to index.js (#53) * Bump minimist from 1.2.5 to 1.2.6 (#58) Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. - [Release notes](https://github.com/substack/minimist/releases) - [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6) --- updated-dependencies: - dependency-name: minimist dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * README: Update k8s-bake version on examples (#60) * README: Update k8s-bake version on examples * README: Update example version to v2.2 * modified template arguments (#61) * modified templete arguments * updated template arguments * updated unit tests for multiple arguments * updated the unit test * added multiple arguments for kustomize * get template args code changes * updated the shared template arg function * clean code * bug fixes in unit tests * updated the readme, action and added the namespace in run.ts * updated the template argument method * modified kustomizeRenderEngine Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com> * Vidya reddy/prettier code (#62) * Vidya reddy - prettier code and adding vercel/ncc build to build script (#63) * modified templete arguments * updated template arguments * updated unit tests for multiple arguments * updated the unit test * added multiple arguments for kustomize * get template args code changes * updated the shared template arg function * clean code * bug fixes in unit tests * updated the readme, action and added the namespace in run.ts * updated the template argument method * modified kustomizeRenderEngine * Enforce prettify * Run prettier * updated the template args method * updated the template args * updated the temp argument func * Add ncc build to build script Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com> * Update README.md (#64) * Add node modules and compiled JavaScript from main Co-authored-by: Christophe Sauthier <christophe.sauthier@objectif-libre.com> Co-authored-by: Oliver King <kingoliver@microsoft.com> Co-authored-by: David Gamero <david340804@gmail.com> Co-authored-by: Tommy Barnes <thomas.jonathan.barnes@gmail.com> Co-authored-by: Oliver King <oking3@uncc.edu> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: nonylene <nonylene@gmail.com> Co-authored-by: Vidya Reddy <59590642+Vidya2606@users.noreply.github.com> Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com> Co-authored-by: Jaiveer Katariya <35347859+jaiveerk@users.noreply.github.com>
- Loading branch information
1 parent
97c530f
commit 01575fa
Showing
174 changed files
with
149,641 additions
and
13,273 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 |
---|---|---|
|
@@ -4,7 +4,4 @@ about: Create a report to help us improve | |
title: '' | ||
labels: need-to-triage | ||
assignees: '' | ||
|
||
--- | ||
|
||
|
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,30 +1,30 @@ | ||
name: setting-default-labels | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0/3 * * *" | ||
schedule: | ||
- cron: '0 0/3 * * *' | ||
|
||
jobs: | ||
label-issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v3 | ||
name: Setting issue as idle | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.' | ||
stale-issue-label: 'idle' | ||
days-before-stale: 14 | ||
days-before-close: -1 | ||
operations-per-run: 100 | ||
exempt-issue-labels: 'backlog' | ||
- uses: actions/stale@v3 | ||
name: Setting PR as idle | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.' | ||
stale-pr-label: 'idle' | ||
days-before-stale: 14 | ||
days-before-close: -1 | ||
operations-per-run: 100 | ||
label-issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v3 | ||
name: Setting issue as idle | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.' | ||
stale-issue-label: 'idle' | ||
days-before-stale: 14 | ||
days-before-close: -1 | ||
operations-per-run: 100 | ||
exempt-issue-labels: 'backlog' | ||
|
||
- uses: actions/stale@v3 | ||
name: Setting PR as idle | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.' | ||
stale-pr-label: 'idle' | ||
days-before-stale: 14 | ||
days-before-close: -1 | ||
operations-per-run: 100 |
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,68 +1,68 @@ | ||
name: Integration test for k8s-bake-v1 | ||
on: | ||
pull_request: | ||
pull_request: | ||
|
||
jobs: | ||
run-integration-test: | ||
name: Validate release and main branch | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
name: Checkout branch | ||
run-integration-test: | ||
name: Validate release and main branch | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
name: Checkout branch | ||
|
||
- name: Install npm packages | ||
run: | | ||
npm install --no-bin-links | ||
- name: Install npm packages | ||
run: | | ||
npm install --no-bin-links | ||
- name: Install ncc | ||
run: npm i -g @vercel/ncc | ||
|
||
- name: Build | ||
run: ncc build src/run.ts -o lib | ||
- name: Install ncc | ||
run: npm i -g @vercel/ncc | ||
|
||
- name: Bake using Helm on ${{ matrix.os }} | ||
uses: ./ | ||
with: | ||
renderEngine: "helm" | ||
helmChart: "./testResources/Helm/HelmCharts" | ||
helm-version: "latest" | ||
silent: "false" | ||
namespace: "namespaceExample" | ||
overrideFiles: "./testResources/Helm/values.yaml" | ||
overrides: | | ||
serviceName:aks-helloworld-test | ||
id: helm-bake | ||
- name: Build | ||
run: ncc build src/run.ts -o lib | ||
|
||
- name: Validate created manifest ${{ matrix.os }} | ||
uses: Azure/k8s-lint@v1 | ||
with: | ||
manifests: ${{ steps.helm-bake.outputs.manifestsBundle }} | ||
- name: Bake using Helm on ${{ matrix.os }} | ||
uses: ./ | ||
with: | ||
renderEngine: 'helm' | ||
helmChart: './testResources/Helm/HelmCharts' | ||
helm-version: 'latest' | ||
silent: 'false' | ||
namespace: 'namespaceExample' | ||
overrideFiles: './testResources/Helm/values.yaml' | ||
overrides: | | ||
serviceName:aks-helloworld-test | ||
id: helm-bake | ||
|
||
- name: Executing latest changes on ${{ matrix.os }} | ||
uses: ./ | ||
with: | ||
renderEngine: "kompose" | ||
dockerComposeFile: "./testResources/Kompose/docker-compose.yml" | ||
kompose-version: "latest" | ||
id: kompose-bake | ||
- name: Validate created manifest ${{ matrix.os }} | ||
uses: Azure/k8s-lint@v1 | ||
with: | ||
manifests: ${{ steps.helm-bake.outputs.manifestsBundle }} | ||
|
||
- name: validate created manifest ${{ matrix.os }} | ||
uses: Azure/k8s-lint@v1 | ||
with: | ||
manifests: ${{ steps.kompose-bake.outputs.manifestsBundle }} | ||
- name: Executing latest changes on ${{ matrix.os }} | ||
uses: ./ | ||
with: | ||
renderEngine: 'kompose' | ||
dockerComposeFile: './testResources/Kompose/docker-compose.yml' | ||
kompose-version: 'latest' | ||
id: kompose-bake | ||
|
||
- name: Bake using Kustomize on ${{ matrix.os }} | ||
uses: ./ | ||
with: | ||
renderEngine: "kustomize" | ||
kustomizationPath: "./testResources/Kustomize" | ||
kubectl-version: "latest" | ||
id: kustomize-bake | ||
- name: validate created manifest ${{ matrix.os }} | ||
uses: Azure/k8s-lint@v1 | ||
with: | ||
manifests: ${{ steps.kompose-bake.outputs.manifestsBundle }} | ||
|
||
- name: Validate created manifest ${{ matrix.os }} | ||
uses: Azure/k8s-lint@v1 | ||
with: | ||
manifests: ${{ steps.kustomize-bake.outputs.manifestsBundle }} | ||
- name: Bake using Kustomize on ${{ matrix.os }} | ||
uses: ./ | ||
with: | ||
renderEngine: 'kustomize' | ||
kustomizationPath: './testResources/Kustomize' | ||
kubectl-version: 'latest' | ||
id: kustomize-bake | ||
|
||
- name: Validate created manifest ${{ matrix.os }} | ||
uses: Azure/k8s-lint@v1 | ||
with: | ||
manifests: ${{ steps.kustomize-bake.outputs.manifestsBundle }} |
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,18 @@ | ||
name: 'Run prettify' | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
prettier: | ||
name: Prettier Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Enforce Prettier | ||
uses: actionsx/prettier@v2 | ||
with: | ||
args: --check . |
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,14 @@ | ||
name: Create release PR | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: "Define release version (ex: v1, v2, v3)" | ||
required: true | ||
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 | ||
with: | ||
release: ${{ github.event.inputs.release }} | ||
release-pr: | ||
uses: OliverMKing/javascript-release-workflow/.github/workflows/release-pr.yml@main | ||
with: | ||
release: ${{ github.event.inputs.release }} |
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,10 +1,10 @@ | ||
name: Tag and create release draft | ||
|
||
on: | ||
push: | ||
branches: | ||
- releases/* | ||
push: | ||
branches: | ||
- releases/* | ||
|
||
jobs: | ||
tag-and-release: | ||
uses: OliverMKing/javascript-release-workflow/.github/workflows/tag-and-release.yml@main | ||
tag-and-release: | ||
uses: OliverMKing/javascript-release-workflow/.github/workflows/tag-and-release.yml@main |
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,22 +1,22 @@ | ||
name: "Run unit tests." | ||
name: 'Run unit tests.' | ||
on: # rebuild any PRs and main branch changes | ||
pull_request: | ||
branches: | ||
- main | ||
- "releases/*" | ||
push: | ||
branches: | ||
- main | ||
- "releases/*" | ||
pull_request: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
push: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
|
||
jobs: | ||
build: # make sure build/ci works properly | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Running L0 tests. | ||
run: | | ||
sudo npm install n | ||
sudo n latest | ||
npm install | ||
npm test | ||
build: # make sure build/ci works properly | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Running L0 tests. | ||
run: | | ||
sudo npm install n | ||
sudo n latest | ||
npm install | ||
npm test |
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,4 @@ | ||
# dependencies | ||
/node_modules | ||
coverage | ||
/lib |
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,8 @@ | ||
{ | ||
"trailingComma": "none", | ||
"bracketSpacing": false, | ||
"semi": false, | ||
"tabWidth": 3, | ||
"singleQuote": true, | ||
"printWidth": 80 | ||
} |
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,9 +1,9 @@ | ||
# Microsoft Open Source Code of Conduct | ||
|
||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). | ||
|
||
Resources: | ||
|
||
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) | ||
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) | ||
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns | ||
# Microsoft Open Source Code of Conduct | ||
|
||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). | ||
|
||
Resources: | ||
|
||
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) | ||
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) | ||
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns |
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.