fix: make kafka support headless svc/pod ip/nodeport network types (#… #4267
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
name: Check Chart | |
on: | |
push: | |
paths: | |
- "addons/**" | |
- "addons-cluster/**" | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
HELM_VERSION: v3.15.4 | |
jobs: | |
check-addons-helm: | |
strategy: | |
fail-fast: false | |
matrix: | |
registry: [ "", "dockerhub", "aliyun" ] | |
uses: apecloud/apecloud-cd/.github/workflows/[email protected] | |
with: | |
CHART_DIR: "addons" | |
APECD_REF: "v0.1.68" | |
SET_REGISTRY: "${{ matrix.registry }}" | |
secrets: inherit | |
check-addons-cluster-helm: | |
uses: apecloud/apecloud-cd/.github/workflows/[email protected] | |
with: | |
CHART_DIR: "addons-cluster" | |
APECD_REF: "v0.1.68" | |
secrets: inherit | |
generate-files: | |
if: ${{ github.ref_name != 'main' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: ${{ env.HELM_VERSION }} | |
- uses: actions/checkout@v4 | |
- name: Generate Files | |
id: generate | |
run: | | |
bash hack/update-readme.sh | |
bash hack/update-codeowners.sh | |
FILE_CHANGES=`git diff --name-only ${{ github.sha }}` | |
if [[ ! -z "$FILE_CHANGES" ]]; then | |
echo $FILE_CHANGES | |
git config --local user.name "$GITHUB_ACTOR" | |
git config --local user.email "[email protected]" | |
git commit -a -m "chore: auto generated files" | |
fi | |
echo file_changes=$FILE_CHANGES >> $GITHUB_OUTPUT | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
if: ${{ steps.generate.outputs.file_changes }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |