Skip to content
Snippets Groups Projects
Unverified Commit b7efbb8f authored by Jayapriya Pai's avatar Jayapriya Pai Committed by GitHub
Browse files

Merge pull request #2661 from slashpai/fixes

chore: update kind version and add github lint action
parents 1e4df581 43bd2fab
No related branches found
No related tags found
No related merge requests found
kind-version=v0.27.0
kind-version=v0.28.0
golang-version=1.24
name: lint gitHub action workflows
on:
push:
paths:
- ".github/workflows/**"
pull_request:
paths:
- ".github/workflows/**"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.7.7/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color
shell: bash
......@@ -87,9 +87,9 @@ jobs:
strategy:
matrix:
kind-image:
- 'kindest/node:v1.33.0'
- 'kindest/node:v1.32.3'
- 'kindest/node:v1.31.6'
- "kindest/node:v1.33.1"
- "kindest/node:v1.32.5"
- "kindest/node:v1.31.9"
steps:
- uses: actions/checkout@v4
with:
......@@ -105,11 +105,11 @@ jobs:
version: ${{ env.kind-version }}
node_image: ${{ matrix.kind-image }}
wait: 10s # Without default CNI, control-plane doesn't get ready until Cilium is installed
config: .github/workflows/kind/config.yml
config: tests/e2e/kind/config.yml
cluster_name: e2e
- name: Install kube-router for NetworkPolicy support
run: |
kubectl apply -f .github/workflows/kind/kube-router.yaml
kubectl apply -f tests/e2e/kind/kube-router.yaml
- name: Wait for cluster to finish bootstraping
run: kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s
- name: Create kube-prometheus stack
......
......@@ -3,17 +3,17 @@ name: Upgrade to latest versions
on:
workflow_dispatch:
schedule:
- cron: '37 7 * * 1'
- cron: "37 7 * * 1"
jobs:
versions:
runs-on: ubuntu-latest
strategy:
matrix:
branch:
- 'release-0.11'
- 'release-0.12'
- 'release-0.13'
- 'main'
- "release-0.11"
- "release-0.12"
- "release-0.13"
- "main"
steps:
- uses: actions/checkout@v4
with:
......@@ -26,7 +26,7 @@ jobs:
- name: Upgrade versions
id: versions
run: |
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
export GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}"
# Write to temporary file to make update atomic
scripts/generate-versions.sh > /tmp/versions.json
mv /tmp/versions.json jsonnet/kube-prometheus/versions.json
......@@ -35,10 +35,10 @@ jobs:
# Get the links to the changelogs of the updated versions and make them
# available to the reviewers
{
echo 'new_changelogs<<EOF'
echo $(scripts/get-new-changelogs.sh)
echo EOF
} >> $GITHUB_OUTPUT
echo "new_changelogs<<EOF"
scripts/get-new-changelogs.sh
echo "EOF"
} >> "$GITHUB_OUTPUT"
if: matrix.branch == 'main'
- name: Update jsonnet dependencies
run: |
......@@ -46,7 +46,7 @@ jobs:
make generate
# Reset jsonnetfile.lock.json if no dependencies were updated
changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json' | wc -l)
changedFiles=$(git diff --name-only | grep -vc 'jsonnetfile.lock.json')
if [[ "$changedFiles" -eq 0 ]]; then
git checkout -- jsonnetfile.lock.json;
fi
......
......@@ -79,7 +79,7 @@ be created successfully.
kubectl delete --ignore-not-found=true -f manifests/ -f manifests/setup
```
The [official documentation](https://prometheus-operator.dev/docs/prologue/quick-start/) contains the full version of this quick-start guide, and includes instructions on how to access Prometheus, AlertManager, and Grafana.
The [official documentation](http://prometheus-operator.dev/docs/getting-started/installation/) contains the full version of this quick-start guide, and includes [instructions](https://prometheus-operator.dev/kube-prometheus/kube/access-ui/) on how to access Prometheus, AlertManager, and Grafana.
### minikube
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment