Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
e4596fb
Add raw_post_data var to statuscake
matthijswolters-rl Oct 2, 2024
30c9cbb
Add user_agent var to statuscake
matthijswolters-rl Oct 2, 2024
91b5b8b
Update formatting for user_agent
matthijswolters-rl Oct 2, 2024
b4c2ecf
Fix tabs in statuscake-monitor.go
matthijswolters-rl Oct 2, 2024
49046b8
Update base crds
matthijswolters-rl Oct 2, 2024
b64294a
Docs and example update
matthijswolters-rl Oct 2, 2024
4a667f0
Update CRDs
matthijswolters-rl Oct 3, 2024
2001476
update (#611)
karl-johan-grahn Oct 4, 2024
c862ace
[skip-ci] Update artifacts
stakater-user Oct 7, 2024
bce64f5
fix(deps): update module github.com/stretchr/testify to v1.9.0 (#582)
renovate[bot] Oct 30, 2024
668547b
[skip-ci] Update artifacts
stakater-user Nov 7, 2024
18056df
fix(deps): update google.golang.org/genproto/googleapis/api digest to…
renovate[bot] Nov 20, 2024
6b29093
Merge pull request #609 from RosemanLabs/upstream/add-statuscake-config
SheryarButt Nov 21, 2024
7aac31d
[skip-ci] Update artifacts
stakater-user Nov 21, 2024
6100e17
Statuscake: read basicauth password straight from secret (#608)
matthijswolters-rl Nov 25, 2024
8cc3d8b
[skip-ci] Update artifacts
stakater-user Nov 25, 2024
7a3f1d0
Statuscake: Implement Equals function using TestTags (#610)
matthijswolters-rl Dec 4, 2024
f2d117a
adding doRequest function to handle StatusCake connection and avoid r…
evilgn0me Dec 4, 2024
27443ef
chore(deps): update golangci/golangci-lint-action action to v6 (#616)
renovate[bot] Dec 9, 2024
6354179
chore(deps): update docker/build-push-action action to v6 (#615)
renovate[bot] Dec 11, 2024
96cea5e
Fix recursion in statuscake code (#619)
MuneebAijaz Dec 13, 2024
78a9718
Fix grafana synthetic tests (#622)
MuneebAijaz Dec 13, 2024
94c1bbb
[skip-ci] Update artifacts
stakater-user Dec 13, 2024
de25bb8
Fix incorrect encoding of health endpoint (#618)
karl-johan-grahn Dec 17, 2024
86a40ae
[skip-ci] Update artifacts
stakater-user Dec 17, 2024
18239ff
Add support for retries in uptimerobot (#625)
MuneebAijaz Dec 24, 2024
dbd3c31
[skip-ci] Update artifacts
stakater-user Dec 24, 2024
932b2d7
chore(deps): update module golang.org/x/net to v0.33.0 [security] (#624)
renovate[bot] Jan 29, 2025
07a1390
chore(deps): update module github.com/golang-jwt/jwt/v4 to v4.5.1 [se…
renovate[bot] Jan 29, 2025
f0d78e6
feat: allow configuring reconciliation concurrency (#628)
xabufr Mar 5, 2025
65426df
[skip-ci] Update artifacts
stakater-user Mar 5, 2025
69ed36e
fix(deps): update module github.com/go-logr/logr to v1.4.2 (#614)
renovate[bot] Mar 14, 2025
e348f06
[skip-ci] Update artifacts
stakater-user Mar 14, 2025
fde1c4d
chore(deps): update module github.com/golang-jwt/jwt/v4 to v4.5.2 [se…
renovate[bot] Apr 9, 2025
dff447a
[skip-ci] Update artifacts
stakater-user Apr 9, 2025
f80e6a6
Removed kube-rbac-proxy and upgraded to operator-sdk 1.39.2
msafwankarim Jul 23, 2025
12c3adf
fixed values.yaml
msafwankarim Jul 23, 2025
378b0ed
chart changes
msafwankarim Jul 23, 2025
b4c4f25
fix for watch namespace
msafwankarim Jul 23, 2025
7e32d13
fixed helm chart errors for multi namespaces
msafwankarim Jul 23, 2025
921763a
resolved comments
msafwankarim Jul 23, 2025
bfd8651
Merge pull request #639 from stakater/sa-7353-remove-kube-rbac-proxy
msafwankarim Jul 24, 2025
e57e1ed
fixed kustomize version (#641)
msafwankarim Jul 24, 2025
f7e0724
Revert Kustomize change and update makefile (#642)
msafwankarim Jul 24, 2025
7506e03
[skip-ci] Update artifacts
stakater-user Jul 24, 2025
0a42dfc
Update azure sdk to track 2 (#644)
Felix-Stakater Aug 18, 2025
50974e7
[skip-ci] Update artifacts
stakater-user Aug 18, 2025
34be2e7
updated goreleaser
Felix-Stakater Aug 19, 2025
ee06892
[skip-ci] Update artifacts
stakater-user Aug 19, 2025
fda9268
Fixed example config for AppInsights
Felix-Stakater Sep 16, 2025
b544ac3
Edited error message for clarity
Felix-Stakater Sep 16, 2025
f2dcc7d
Update appinsights-configuration.md
KhizerJaan Sep 16, 2025
a947fb3
Update appinsights-configuration.md
KhizerJaan Sep 16, 2025
7f6b9ec
Merge pull request #651 from stakater/KhizerJaan-patch-1
KhizerJaan Sep 16, 2025
0a74a4d
fix: use errors pkg for comparison
PascalBourdier Sep 3, 2025
d7af042
Add timeout to statuscake endpointmonitor (#7)
robinderooij-rl Sep 4, 2025
a389cfe
Set minimum to 5
robinderooij-rl Sep 10, 2025
74edf32
Merge branch 'master' of github.com:stakater/IngressMonitorController…
matthijswolters-rl Sep 30, 2025
a0f762e
Merge branch 'stakater-master-fix' into stakater-master
matthijswolters-rl Sep 30, 2025
051c3d5
Update status-monitor_test.go
matthijswolters-rl Sep 30, 2025
9b9ce68
Remove caching
matthijswolters-rl Sep 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 4 additions & 28 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ on:
- 'config/'
env:
DOCKER_FILE_PATH: Dockerfile
GOLANG_VERSION: 1.21
HELM_VERSION: v3.8.2
KIND_VERSION: "v0.17.0"
REGISTRY: ghcr.io

jobs:
Expand All @@ -31,12 +29,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOLANG_VERSION }}
go-version-file: go.mod

- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.54
version: v1.64
only-new-issues: false
args: --timeout 10m

Expand All @@ -50,27 +48,6 @@ jobs:
run: |
helm lint charts/ingressmonitorcontroller

# - name: Install kind
# uses: engineerd/[email protected]
# with:
# version: ${{ env.KIND_VERSION }}

# - name: Check cluster info
# run: |
# kubectl version --client
# kind version
# kind version | grep -q ${KIND_VERSION}

# - name: Set up Cluster
# run: |
# kubectl cluster-info
# make install
# mkdir -p .local
# echo "${{ secrets.SECRET_KUBERNETES_RESOURCES }}" | base64 --decode > .local/test-config.yaml

# - name: Test
# run: make test

- name: Generate Tag
id: generate_tag
run: |
Expand All @@ -93,7 +70,7 @@ jobs:
# To identify any broken changes in dockerfiles or dependencies

- name: Build image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ${{ env.DOCKER_FILE_PATH }}
Expand All @@ -107,5 +84,4 @@ jobs:
${{ env.GHCR_IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.GIT_TAG }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
60 changes: 60 additions & 0 deletions .github/workflows/pull_request_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Run Tests on PR Label

on:
pull_request:
branches:
- 'master'
paths-ignore:
- '*.md'
- 'docs/'
- 'examples/'
- 'hack/'
- 'config/'
types: [ labeled ]

env:
KIND_VERSION: "v0.25.0"

jobs:

test:
runs-on: ubuntu-latest
name: Test
if: ${{ github.event.label.name == 'ok-to-test' }}
steps:

- name: Remove the test label
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: ok-to-test

- name: Check out code
uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.sha}}

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Install kind
uses: engineerd/[email protected]
with:
version: ${{ env.KIND_VERSION }}

- name: Check cluster info
run: |
kubectl version --client
kind version
kind version | grep -q ${KIND_VERSION}

- name: Set up Cluster
run: |
kubectl cluster-info
make install
mkdir -p .local
echo "${{ secrets.IMC_GITHUB_PIPELINE_CONFIG_ENCODED }}" | base64 --decode > .local/test-config.yaml

- name: Test
run: make test
149 changes: 141 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ on:
env:
DOCKER_FILE_PATH: Dockerfile
BUNDLE_DOCKER_FILE_PATH: bundle.Dockerfile
GOLANG_VERSION: 1.21
OPERATOR_SDK_VERSION: "1.19.0"
KUSTOMIZE_VERSION: "4.5.7"
OPERATOR_SDK_VERSION: "1.39.2"
KUSTOMIZE_VERSION: "5.4.3"
KUBERNETES_VERSION: "1.23.5"
KIND_VERSION: "v0.17.0"
HELM_REGISTRY_URL: ""
Expand All @@ -39,12 +38,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOLANG_VERSION }}
go-version-file: go.mod

- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v6
with:
version: v1.54
version: v1.64
only-new-issues: false
args: --timeout 10m

Expand Down Expand Up @@ -74,7 +73,7 @@ jobs:
kubectl cluster-info
make install
mkdir -p .local
echo "${{ secrets.SECRET_KUBERNETES_RESOURCES }}" | base64 --decode > .local/test-config.yaml
echo "${{ secrets.IMC_GITHUB_PIPELINE_CONFIG_ENCODED }}" | base64 --decode > .local/test-config.yaml

- name: Test
run: make test
Expand Down Expand Up @@ -108,7 +107,7 @@ jobs:
echo GHCR_IMAGE_REPOSITORY=${{env.REGISTRY}}/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV

- name: Build and Push image to ghcr registry
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ${{ env.DOCKER_FILE_PATH }}
Expand All @@ -124,3 +123,137 @@ jobs:
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}

- name: Login to Dockerhub Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.STAKATER_DOCKERHUB_USERNAME }}
password: ${{ secrets.STAKATER_DOCKERHUB_PASSWORD }}

- name: Generate image repository path for DockerHub registry
run: |
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV

- name: Build and push image to DockerHub registry
uses: docker/build-push-action@v6
with:
context: .
file: ${{ env.DOCKER_FILE_PATH }}
pull: true
push: true
build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm,linux/arm64
tags: |
${{ env.IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.new_tag }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}

##############################
## Add steps to generate required artifacts for a release here(helm chart, operator manifest etc.)
##############################

# Generate tag for operator without "v"
- name: Generate Operator Tag
id: generate_operator_tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
WITH_V: false
DEFAULT_BUMP: patch
DRY_RUN: true

# Install operator-sdk
- name: Install operator-sdk
uses: redhat-actions/openshift-tools-installer@v1
with:
source: "github"
operator-sdk: ${{ env.OPERATOR_SDK_VERSION }}

# Install kustomize
- name: Install kustomize
uses: imranismail/setup-kustomize@v2
with:
kustomize-version: ${{ env.KUSTOMIZE_VERSION }}

- name: Generate Bundle
env:
VERSION: ${{ steps.generate_operator_tag.outputs.new_tag }}
IMG: ${{ env.IMAGE_REPOSITORY }}:${{ steps.generate_tag.outputs.new_tag }}
run: make bundle

- name: Verify bundle
run: operator-sdk bundle validate ./bundle --select-optional name=operatorhub

- name: Build and push Bundle Image
uses: docker/build-push-action@v6
with:
context: .
file: ${{ env.BUNDLE_DOCKER_FILE_PATH }}
pull: true
push: true
cache-to: type=inline
tags: |
${{ env.IMAGE_REPOSITORY }}-bundle:${{ steps.generate_tag.outputs.new_tag }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}

# Update chart tag to the latest semver tag
- name: Update Chart Version
env:
VERSION: ${{ steps.generate_operator_tag.outputs.new_tag }}
run: make bump-chart

- name: Update Chart CRDs
run: make generate-crds

# Publish helm chart
- name: Publish Helm chart
uses: stefanprodan/helm-gh-pages@master
with:
branch: master
repository: stakater-charts
target_dir: docs
token: ${{ secrets.GHCR_TOKEN }}
charts_dir: charts/
charts_url: ${{ env.HELM_REGISTRY_URL }}
owner: stakater
linting: on
commit_username: stakater-user
commit_email: [email protected]

# Commit back changes
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "stakater-user"
git status
git add .
git commit -m "[skip-ci] Update artifacts" -a

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PUBLISH_TOKEN }}

# Push Latest Tag
- name: Push Latest Tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch

- name: Notify Slack
uses: 8398a7/action-slack@v3
if: always() # Pick up events even if the job fails or is canceled.
with:
status: ${{ job.status }}
fields: repo,author,action,eventName,ref,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.STAKATER_DELIVERY_SLACK_WEBHOOK }}
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
tags:
- "v*"

env:
GOLANG_VERSION: 1.21

jobs:
build:
name: GoReleaser build
Expand All @@ -22,12 +19,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOLANG_VERSION }}
go-version-file: go.mod

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@master
uses: goreleaser/goreleaser-action@v6
with:
version: latest
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
vendor
.idea
\.vscode/
out
/IngressMonitorController
/build/_output/bin/
Expand Down
5 changes: 4 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# .goreleaser.yml
version: 2

before:
hooks:
- go mod download
Expand All @@ -15,10 +17,11 @@ builds:
- amd64
- arm
- arm64
main: ./cmd
archives:
- name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
snapshot:
name_template: "{{ .Tag }}-next"
version_template: "{{ .Tag }}-next"
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
changelog:
Expand Down
19 changes: 19 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"env": {
"OPERATOR_NAMESPACE": "stakater-ingress-monitor-controller"
}
}

]
}
Loading