Skip to content

Commit

Permalink
Merge branch 'master' into add-pingdom-transaction-checks
Browse files Browse the repository at this point in the history
  • Loading branch information
karlderkaefer authored Jun 8, 2024
2 parents c06ff6e + 88a3c47 commit 8e9a013
Show file tree
Hide file tree
Showing 19 changed files with 285 additions and 101 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:

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

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOLANG_VERSION }}

Expand All @@ -41,7 +41,7 @@ jobs:

# Set up helm binary
- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: ${{ env.HELM_VERSION }}

Expand Down Expand Up @@ -78,15 +78,15 @@ jobs:
echo "GIT_TAG=$(echo ${tag})" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.STAKATER_DOCKERHUB_USERNAME }}
password: ${{ secrets.STAKATER_DOCKERHUB_PASSWORD }}
Expand All @@ -96,7 +96,7 @@ jobs:
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ${{ env.DOCKER_FILE_PATH }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOLANG_VERSION }}

Expand All @@ -49,7 +49,7 @@ jobs:

# Set up helm binary
- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: ${{ env.HELM_VERSION }}

Expand Down Expand Up @@ -88,15 +88,15 @@ jobs:
DRY_RUN: true

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: --debug

- name: Login to Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.STAKATER_DOCKERHUB_USERNAME }}
password: ${{ secrets.STAKATER_DOCKERHUB_PASSWORD }}
Expand All @@ -106,7 +106,7 @@ jobs:
echo IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ${{ env.DOCKER_FILE_PATH }}
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
run: operator-sdk bundle validate ./bundle --select-optional name=operatorhub

- name: Build and push Bundle Image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: .
file: ${{ env.BUNDLE_DOCKER_FILE_PATH }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # See: https://goreleaser.com/ci/actions/

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOLANG_VERSION }}

Expand Down
8 changes: 8 additions & 0 deletions api/v1alpha1/endpointmonitor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,14 @@ type GCloudConfig struct {
// GrafnaConfiguration defines the configuration for Grafana Cloud Monitor Provider
type GrafanaConfig struct {
TenantId int64 `json:"tenantId,omitempty"`

// The frequency value specifies how often the check runs in milliseconds
Frequency int64 `json:"frequency,omitempty"`

// Probes are the monitoring agents responsible for simulating user interactions with your web applications
// or services. These agents periodically send requests to predefined URLs and record the responses,
// checking for expected outcomes and measuring performance.
Probes []string `json:"probes,omitempty"`
}

// URLSource represents the set of resources to fetch the URL from
Expand Down
7 changes: 6 additions & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ spec:
grafanaConfig:
description: Configuration for Grafana Cloud Monitor Provider
properties:
frequency:
description: The frequency value specifies how often the check
runs in milliseconds
format: int64
type: integer
probes:
description: Probes are the monitoring agents responsible for
simulating user interactions with your web applications or services.
These agents periodically send requests to predefined URLs and
record the responses, checking for expected outcomes and measuring
performance.
items:
type: string
type: array
tenantId:
format: int64
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ metadata:
capabilities: Basic Install
operators.operatorframework.io/builder: operator-sdk-v1.18.0+git
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
name: ingressmonitorcontroller.v2.1.49
name: ingressmonitorcontroller.v2.1.59
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -151,7 +151,7 @@ spec:
- --leader-elect
command:
- /manager
image: stakater/ingressmonitorcontroller:v2.1.49
image: stakater/ingressmonitorcontroller:v2.1.59
livenessProbe:
httpGet:
path: /healthz
Expand Down Expand Up @@ -251,4 +251,4 @@ spec:
provider:
name: stakater
url: https://stakater.com
version: 2.1.49
version: 2.1.59
4 changes: 2 additions & 2 deletions charts/ingressmonitorcontroller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: ingressmonitorcontroller
description: IngressMonitorController Operator chart that runs on kubernetes

# Helm chart Version
version: 2.1.49
version: 2.1.59

# Application version to be deployed
appVersion: 2.1.49
appVersion: 2.1.59

keywords:
- IngressMonitorController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ spec:
grafanaConfig:
description: Configuration for Grafana Cloud Monitor Provider
properties:
frequency:
description: The frequency value specifies how often the check
runs in milliseconds
format: int64
type: integer
probes:
description: Probes are the monitoring agents responsible for
simulating user interactions with your web applications or services.
These agents periodically send requests to predefined URLs and
record the responses, checking for expected outcomes and measuring
performance.
items:
type: string
type: array
tenantId:
format: int64
type: integer
Expand Down
4 changes: 4 additions & 0 deletions charts/ingressmonitorcontroller/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
labels:
{{- include "ingress-monitor-controller.labels" . | nindent 4 }}
control-plane: controller-manager
{{- with .Values.deploymentAnnotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down
4 changes: 3 additions & 1 deletion charts/ingressmonitorcontroller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ replicaCount: 1

image:
repository: stakater/ingressmonitorcontroller
tag: v2.1.49
tag: v2.1.59
pullPolicy: IfNotPresent
imagePullSecrets: []

Expand Down Expand Up @@ -71,6 +71,8 @@ resources:
# cpu: 100m
# memory: 128Mi

deploymentAnnotations: {}

podAnnotations: {}

podSecurityContext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ spec:
grafanaConfig:
description: Configuration for Grafana Cloud Monitor Provider
properties:
frequency:
description: The frequency value specifies how often the check
runs in milliseconds
format: int64
type: integer
probes:
description: Probes are the monitoring agents responsible for
simulating user interactions with your web applications or services.
These agents periodically send requests to predefined URLs and
record the responses, checking for expected outcomes and measuring
performance.
items:
type: string
type: array
tenantId:
format: int64
type: integer
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ kind: Kustomization
images:
- name: controller
newName: stakater/ingressmonitorcontroller
newTag: v2.1.49
newTag: v2.1.59
7 changes: 5 additions & 2 deletions docs/grafana-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ metadata:
spec:
forceHttps: true
url: https://stakater.com/
gcloudConfig:
frequency: 5000
grafanaConfig:
frequency: 10000
probes:
- Amsterdam
- Singapore
```
Loading

0 comments on commit 8e9a013

Please sign in to comment.