forked from awslabs/amazon-eks-ami
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (56 loc) · 2.07 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
53
54
55
56
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@e3dd6a429d7300a6a4c196c26e071d42e0343502 # 4.0.2
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN_SYNC_ENI_MAX_PODS }}
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
with:
repository: awslabs/amazon-eks-ami
ref: refs/heads/main
path: amazon-eks-ami/
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
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/templates/shared/runtime/eni-max-pods.txt
cp misc/eni-max-pods.txt ../amazon-eks-ami/nodeadm/internal/kubelet/eni-max-pods.txt
- uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # 6.1.0
with:
branch: update-eni-max-pods
path: amazon-eks-ami/
base: main
add-paths: |
templates/shared/runtime/eni-max-pods.txt
nodeadm/internal/kubelet/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
```