forked from awslabs/amazon-eks-ami
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from AdvMicrogrid/unified_changes_with_upstrea…
…m_v20230703 Unified changes with upstream v20230703
- Loading branch information
Showing
95 changed files
with
6,050 additions
and
1,904 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# ensure that these rules are equivalent to the flags to shfmt in the Makefile. | ||
# we can't use this file with shfmt directly because there's no way to express | ||
# shebang matching on files without the `sh` extension. | ||
[*.sh] | ||
indent_style = space | ||
indent_size = 2 | ||
binary_next_line = true | ||
switch_case_indent = true | ||
space_redirects = true | ||
keep_padding = false | ||
function_next_line = false |
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,3 @@ | ||
# Applied code style rules to shell files | ||
6014c4e6872a23f82ca295afa93b033207042876 | ||
|
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,8 +1,14 @@ | ||
*Issue #, if available:* | ||
**Issue #, if available:** | ||
|
||
*Description of changes:* | ||
**Description of changes:** | ||
|
||
|
||
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. | ||
|
||
<!-- If this is a security issue, please do not discuss on GitHub. Please report any suspected or confirmed security issues to AWS Security https://aws.amazon.com/security/vulnerability-reporting/ --> | ||
|
||
**Testing Done** | ||
|
||
<!-- Include information regarding the testing that was completed with this changes. Where applicable, include details steps to replicate. --> | ||
|
||
*[See this guide for recommended testing for PRs.](../doc/CONTRIBUTING.md#testing-changes) Some tests may not apply. Completing tests and providing additional validation steps are not required, but it is recommended and may reduce review time and time to merge.* |
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,26 @@ | ||
--- | ||
name: "[ALAS] Open issues for new bulletins" | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
window: | ||
description: "Only consider bulletins published within this relative time window (golang Duration)" | ||
default: "24h" | ||
required: true | ||
schedule: | ||
# once an hour, at the top of hour | ||
- cron: "0 * * * *" | ||
permissions: | ||
issues: write | ||
jobs: | ||
alas-al2-bulletins: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: guilhem/rss-issues-action@0.5.2 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
feed: "https://alas.aws.amazon.com/AL2/alas.rss" | ||
dry-run: "true" | ||
lastTime: "${{ github.event.inputs.window || '24h' }}" | ||
labels: "alas,alas/al2" | ||
titleFilter: "(medium|low)" |
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,24 @@ | ||
name: CI | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'master' | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | ||
- run: go install mvdan.cc/sh/v3/cmd/shfmt@latest | ||
- run: make lint | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: make 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,48 @@ | ||
name: '[Sync] Update eni-max-pods.txt' | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# once a day | ||
- cron: '0 0 * * *' | ||
permissions: | ||
id-token: write | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
update-max-pods: | ||
# this workflow will always fail in forks; bail if this isn't running in the upstream | ||
if: github.repository == 'awslabs/amazon-eks-ami' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
role-to-assume: ${{ secrets.AWS_ROLE_ARN }} | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: awslabs/amazon-eks-ami | ||
ref: refs/heads/master | ||
path: amazon-eks-ami/ | ||
- uses: actions/checkout@v3 | ||
with: | ||
repository: aws/amazon-vpc-cni-k8s | ||
ref: refs/heads/master | ||
path: amazon-vpc-cni-k8s/ | ||
- run: | | ||
#!/usr/bin/env bash | ||
set -o errexit | ||
cd amazon-vpc-cni-k8s/ | ||
make generate-limits | ||
cp misc/eni-max-pods.txt ../amazon-eks-ami/files/eni-max-pods.txt | ||
- uses: peter-evans/create-pull-request@v4 | ||
with: | ||
branch: update-eni-max-pods | ||
path: amazon-eks-ami/ | ||
add-paths: files/eni-max-pods.txt | ||
commit-message: "Update eni-max-pods.txt" | ||
title: "Update eni-max-pods.txt" | ||
body: | | ||
Generated by [aws/amazon-vpc-cni-k8s](https://github.com/aws/amazon-vpc-cni-k8s): | ||
``` | ||
make generate-limits | ||
``` |
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,5 @@ | ||
*manifest.json | ||
*.swp | ||
.idea | ||
*version-info.json | ||
.DS_Store |
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.