Skip to content

Commit

Permalink
Merge pull request #738 from uselagoon/fix-storagecalc-servicemonitor
Browse files Browse the repository at this point in the history
fix: storage-calculator servicemonitor for new metrics endpoint
  • Loading branch information
shreddedbacon authored Jan 9, 2025
2 parents 96ff4e0 + dcd915a commit 0be8ff9
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 15 deletions.
6 changes: 3 additions & 3 deletions charts/lagoon-remote/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
dependencies:
- name: lagoon-build-deploy
repository: https://uselagoon.github.io/lagoon-charts/
version: 0.31.0
version: 0.31.1
- name: dbaas-operator
repository: https://amazeeio.github.io/charts/
version: 0.3.1
- name: nats
repository: https://nats-io.github.io/k8s/helm/charts/
version: 1.2.8
digest: sha256:9814199e2380bbb6f3bb972a0c961b6078a22a363b9ab2b72a1817358690497c
generated: "2024-12-18T23:16:59.119513362Z"
digest: sha256:976ff2199d6ca6fce5afbe053bb0ad47b646c84a11e8af019173fe7854656b60
generated: "2025-01-10T08:48:03.095235516+11:00"
14 changes: 3 additions & 11 deletions charts/lagoon-remote/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type: application
# This is the chart version. This version number should be incremented each
# time you make changes to the chart and its templates, including the app
# version.
version: 0.96.0
version: 0.96.1

dependencies:
- name: lagoon-build-deploy
Expand All @@ -41,14 +41,6 @@ dependencies:
annotations:
artifacthub.io/changes: |
- kind: changed
description: update dbaas-operator chart dependency to 0.3.1
description: update build-deploy chart dependency to 0.31.1
- kind: changed
description: update build-deploy chart dependency to 0.31.0
- kind: changed
description: update NATS chart dependency to 1.2.8
- kind: added
description: add daemonset to manage node sysctl changes
- kind: changed
description: update uselagoon/lagoon-ssh-portal/ssh-portal from v0.41.3 to v0.41.4
- kind: changed
description: update storage-calculator to v0.7.0 and adjust metrics endpoint
description: update storage-calculator to metrics servicemonitor
24 changes: 24 additions & 0 deletions charts/lagoon-remote/templates/storage-calculator.role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,28 @@ rules:
verbs:
- create
- patch
- apiGroups:
- "authentication.k8s.io"
resources:
- tokenreviews
verbs:
- "create"
- apiGroups:
- "authorization.k8s.io"
resources:
- subjectaccessreviews
verbs:
- "create"
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ metadata:
{{- include "lagoon-remote.storageCalculator.labels" . | nindent 4 }}
spec:
endpoints:
- port: https
- path: /metrics
port: https
scheme: https
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
tlsConfig:
insecureSkipVerify: true
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
Expand Down

0 comments on commit 0be8ff9

Please sign in to comment.