forked from awslabs/amazon-eks-ami
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (52 loc) · 1.7 KB
/
sync-eni-max-pods.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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_SYNC_ENI_MAX_PODS }}
- 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"
committer: "GitHub <[email protected]>"
author: "GitHub <[email protected]>"
labels: |
changelog/exclude
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
```