feat: optimize k8sattributes processor for node-logs-metrics daemonset #1415
This file contains hidden or 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
| name: pre-commit | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| pre-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: gabe565/setup-helm-docs-action@v1 | |
| - uses: pre-commit/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| chart-version-bumps: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup updatecli | |
| uses: updatecli/updatecli-action@v2 | |
| - name: Bump any charts that require it | |
| run: | | |
| make updatecli/internal | |
| git diff > diff.txt | |
| if [ -s diff.txt ]; then | |
| echo "Chart version bumps are needed. Please check the PR comments." | |
| echo "The following chart updates are necessary:" > formatted_diff.txt | |
| echo "\`\`\`" >> formatted_diff.txt | |
| cat diff.txt >> formatted_diff.txt | |
| echo "\`\`\`" >> formatted_diff.txt | |
| exit 1 | |
| fi | |
| env: | |
| UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Comment PR with needed changes | |
| if: failure() | |
| uses: thollander/actions-comment-pull-request@v3 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| file-path: ./formatted_diff.txt | |
| comment-tag: chart-bump-changes | |
| reactions: eyes |