Update Helm release victoria-metrics-operator to v0.40.3 #4731
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'main' | |
env: | |
go-version: 1.22 | |
jobs: | |
sync: | |
name: Sync all applications | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.go-version }} | |
- run: go install github.com/yusukebe/t/cmd/t@latest | |
- uses: aquaproj/[email protected] | |
with: | |
aqua_version: v2.40.0 | |
policy_allow: "true" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: make launch-k8s | |
- run: make deploy-argocd | |
- name: patch targetRevision | |
run: | | |
if [[ ${{ github.event_name }} == 'pull_request' ]]; then | |
BRANCH_NAME=${GITHUB_HEAD_REF} | |
else | |
BRANCH_NAME=${GITHUB_REF#refs/heads/} | |
fi | |
echo change targetRevision to ${BRANCH_NAME} | |
for app in namespaces monitoring sandbox; do | |
kubectl patch -n argocd applications $app --type=json -p="[{'op':'replace','path':'/spec/source/targetRevision','value':${BRANCH_NAME}}]" | |
done | |
- run: make sync-applications | |
- name: check status | |
run: | | |
IFS=$'\n'; for item in $(kubectl get app -n argocd -o json | jq -c '.items[]'); do | |
echo $item | jq -r .metadata.name | |
echo $item | jq -r .status.health.status | t Healthy | |
echo $item | jq -r .status.sync.status | t Synced | |
done |