Skip to content

Commit

Permalink
Merge pull request #51 from foomo/fix-if-end
Browse files Browse the repository at this point in the history
fix(sesamy-gtm): service monitor condition
  • Loading branch information
franklinkim authored Nov 29, 2024
2 parents e7b5351 + 644bb2f commit 776d241
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 62 deletions.
4 changes: 2 additions & 2 deletions charts/sesamy-gtm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ sources:
annotations:
"artifacthub.io/links": |
- name: Chart Source
url: https://github.com/foomo/helm-charts
url: https://github.com/foomo/helm-charts/tree/main/charts/sesamy-gtm
- name: GTM Changelog
url: https://developers.google.com/tag-platform/tag-manager/server-side/release-notes
version: 0.1.1
version: 0.1.2
appVersion: 2.4.0
44 changes: 13 additions & 31 deletions charts/sesamy-gtm/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sesamy-gtm

![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.4.0](https://img.shields.io/badge/AppVersion-2.4.0-informational?style=flat-square)
![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.4.0](https://img.shields.io/badge/AppVersion-2.4.0-informational?style=flat-square)

Helm chart for the Sesamy GTM tagging & preview service.

Expand Down Expand Up @@ -51,9 +51,10 @@ Helm chart for the Sesamy GTM tagging & preview service.
| collect.readinessProbe | object | `{}` | Readiness probe settings for pods |
| collect.replicaCount | int | `1` | Number of replicas |
| collect.resources | object | `{}` | Resource request & limits |
| collect.securityContext | object | `{}` | Security context |
| collect.securityContext | object | `{}` | Security Context |
| collect.service.annotations | object | `{}` | Annotations for the service |
| collect.service.labels | object | `{}` | Labels for service |
| collect.service.ports | object | `{"ga4":8080,"mpv2":8081}` | Ports of the service |
| collect.service.type | string | `"ClusterIP"` | Type of the service |
| collect.startupProbe | object | `{}` | Startup probe settings for pods |

Expand Down Expand Up @@ -93,9 +94,10 @@ Helm chart for the Sesamy GTM tagging & preview service.
| ingress.className | string | `""` | Ingress class name |
| ingress.enabled | bool | `false` | Enable ingress |
| ingress.hosts | list | `["example.com"]` | Hosts to listen to |
| ingress.paths | object | `{"preview":[{"path":"/gtm","pathType":"Prefix","port":8080}],"tagging":[{"path":"/gtm.js","pathType":"Exact","port":8080},{"path":"/gtag/js","pathType":"Prefix","port":8080},{"path":"/g/collect","pathType":"Prefix","port":8080}]}` | Path settings |
| ingress.tls | list | `[]` | Tls setttings |

### Network policy
### Network Policy

| Key | Type | Default | Description |
|-----|------|---------|-------------|
Expand All @@ -122,16 +124,19 @@ Helm chart for the Sesamy GTM tagging & preview service.
| preview.extraVolumes | list | `[]` | Volumes to add |
| preview.hostAliases | list | `[]` | Host aliases to add |
| preview.imagePullSecrets | list | `[]` | Image pull secrets |
| preview.livenessProbe | object | `{"httpGet":{"path":"/healthz","port":"http"}}` | Liveness probe settings for pods |
| preview.podAnnotations | object | `{}` | Annotations for pods |
| preview.podLabels | object | `{}` | Labels for pods |
| preview.podSecurityContext | object | `{}` | The SecurityContext for pods |
| preview.readinessProbe | object | `{"httpGet":{"path":"/healthz","port":"http"}}` | Readiness probe settings for pods |
| preview.replicaCount | int | `1` | Number of replicas |
| preview.resources | object | `{}` | Resource request & limits |
| preview.securityContext | object | `{}` | Security context |
| preview.securityContext | object | `{}` | Security Context |
| preview.service.annotations | object | `{}` | Annotations for the service |
| preview.service.labels | object | `{}` | Labels for service |
| preview.service.port | int | `8080` | Port of the service |
| preview.service.type | string | `"ClusterIP"` | Type of the service |
| preview.startupProbe | object | `{"httpGet":{"path":"/healthz","port":"http"}}` | Startup probe settings for pods |

### HTTPS Proxy

Expand Down Expand Up @@ -200,49 +205,26 @@ Helm chart for the Sesamy GTM tagging & preview service.
| tagging.extraVolumes | list | `[]` | Volumes to add |
| tagging.hostAliases | list | `[]` | Host aliases to add |
| tagging.imagePullSecrets | list | `[]` | Image pull secrets |
| tagging.livenessProbe | object | `{"httpGet":{"path":"/healthz","port":"http"}}` | Liveness probe settings for pods |
| tagging.podAnnotations | object | `{}` | Pod annotations |
| tagging.podLabels | object | `{}` | Labels for pods |
| tagging.podSecurityContext | object | `{}` | The SecurityContext for pods |
| tagging.readinessProbe | object | `{"httpGet":{"path":"/healthz","port":"http"}}` | Readiness probe settings for pods |
| tagging.replicaCount | int | `1` | Number of replicas |
| tagging.resources | object | `{}` | Resource request & limits |
| tagging.securityContext | object | `{}` | Security context |
| tagging.securityContext | object | `{}` | Security Context |
| tagging.service.annotations | object | `{}` | Annotations for the service |
| tagging.service.appProtocol | string | `nil` | Set appProtocol for the service |
| tagging.service.clusterIP | string | `nil` | ClusterIP of the gateway service |
| tagging.service.labels | object | `{}` | Labels for service |
| tagging.service.nodePort | string | `nil` | Node port if service type is NodePort |
| tagging.service.port | int | `8080` | Port of the service |
| tagging.service.type | string | `"ClusterIP"` | Type of the service |
| tagging.startupProbe | object | `{"httpGet":{"path":"/healthz","port":"http"}}` | Liveness probe settings for pods |

### Other Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| collect.service.ports.ga4 | int | `8080` | |
| collect.service.ports.mpv2 | int | `8081` | |
| ingress.paths.preview[0].path | string | `"/gtm"` | |
| ingress.paths.preview[0].pathType | string | `"Prefix"` | |
| ingress.paths.preview[0].port | int | `8080` | |
| ingress.paths.tagging[0].path | string | `"/gtm.js"` | |
| ingress.paths.tagging[0].pathType | string | `"Exact"` | |
| ingress.paths.tagging[0].port | int | `8080` | |
| ingress.paths.tagging[1].path | string | `"/gtag/js"` | |
| ingress.paths.tagging[1].pathType | string | `"Prefix"` | |
| ingress.paths.tagging[1].port | int | `8080` | |
| ingress.paths.tagging[2].path | string | `"/g/collect"` | |
| ingress.paths.tagging[2].pathType | string | `"Prefix"` | |
| ingress.paths.tagging[2].port | int | `8080` | |
| preview.livenessProbe.httpGet.path | string | `"/healthz"` | |
| preview.livenessProbe.httpGet.port | string | `"http"` | |
| preview.readinessProbe.httpGet.path | string | `"/healthz"` | |
| preview.readinessProbe.httpGet.port | string | `"http"` | |
| preview.startupProbe.httpGet.path | string | `"/healthz"` | |
| preview.startupProbe.httpGet.port | string | `"http"` | |
| serviceMonitor.scrapeTimeout | string | `""` | ServiceMonitor scrape timeout in Go duration format (e.g. 15s) |
| tagging.livenessProbe.httpGet.path | string | `"/healthz"` | |
| tagging.livenessProbe.httpGet.port | string | `"http"` | |
| tagging.readinessProbe.httpGet.path | string | `"/healthz"` | |
| tagging.readinessProbe.httpGet.port | string | `"http"` | |
| tagging.startupProbe.httpGet.path | string | `"/healthz"` | |
| tagging.startupProbe.httpGet.port | string | `"http"` | |

5 changes: 2 additions & 3 deletions charts/sesamy-gtm/templates/collect/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@ metadata:
namespace: {{ include "sesamy.gtm.namespace" . }}
spec:
selector:
matchLabels:
{{- include "sesamy.gtm.collect.selectorLabels" $ | nindent 6 }}
matchLabels: {{- include "sesamy.gtm.collect.selectorLabels" $ | nindent 6 }}
namespaceSelector:
matchNames:
- {{ include "sesamy.gtm.namespace" . }}
{{- end }}
endpoints:
- port: prometheus
path: /metrics
Expand All @@ -43,3 +41,4 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
14 changes: 11 additions & 3 deletions charts/sesamy-gtm/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
},
"securityContext": {
"additionalProperties": true,
"description": "podSecurityContext:\n fsGroup: 2000\nSecurity context",
"description": "podSecurityContext:\n fsGroup: 2000\nSecurity Context",
"required": [],
"title": "securityContext",
"type": "object"
Expand All @@ -300,6 +300,7 @@
},
"ports": {
"additionalProperties": true,
"description": "Ports of the service",
"properties": {
"ga4": {
"default": 8080,
Expand Down Expand Up @@ -480,6 +481,7 @@
},
"paths": {
"additionalProperties": true,
"description": "Path settings",
"properties": {
"preview": {
"items": {
Expand Down Expand Up @@ -868,6 +870,7 @@
},
"livenessProbe": {
"additionalProperties": true,
"description": "Liveness probe settings for pods",
"properties": {
"httpGet": {
"additionalProperties": false,
Expand Down Expand Up @@ -922,6 +925,7 @@
},
"readinessProbe": {
"additionalProperties": true,
"description": "Readiness probe settings for pods",
"properties": {
"httpGet": {
"additionalProperties": false,
Expand Down Expand Up @@ -969,7 +973,7 @@
},
"securityContext": {
"additionalProperties": true,
"description": "podSecurityContext:\n fsGroup: 2000\nSecurity context",
"description": "podSecurityContext:\n fsGroup: 2000\nSecurity Context",
"required": [],
"title": "securityContext",
"type": "object"
Expand Down Expand Up @@ -1016,6 +1020,7 @@
},
"startupProbe": {
"additionalProperties": true,
"description": "Startup probe settings for pods",
"properties": {
"httpGet": {
"additionalProperties": false,
Expand Down Expand Up @@ -1413,6 +1418,7 @@
},
"livenessProbe": {
"additionalProperties": true,
"description": "Liveness probe settings for pods",
"properties": {
"httpGet": {
"additionalProperties": false,
Expand Down Expand Up @@ -1467,6 +1473,7 @@
},
"readinessProbe": {
"additionalProperties": true,
"description": "Readiness probe settings for pods",
"properties": {
"httpGet": {
"additionalProperties": false,
Expand Down Expand Up @@ -1514,7 +1521,7 @@
},
"securityContext": {
"additionalProperties": true,
"description": "podSecurityContext\n fsGroup: 2000\nSecurity context",
"description": "podSecurityContext\n fsGroup: 2000\nSecurity Context",
"required": [],
"title": "securityContext",
"type": "object"
Expand Down Expand Up @@ -1592,6 +1599,7 @@
},
"startupProbe": {
"additionalProperties": true,
"description": "Liveness probe settings for pods",
"properties": {
"httpGet": {
"additionalProperties": false,
Expand Down
Loading

0 comments on commit 776d241

Please sign in to comment.