Skip to content

Commit

Permalink
feat: added flags on individual components (#1188)
Browse files Browse the repository at this point in the history
  • Loading branch information
yildizozgur authored Apr 17, 2024
1 parent cd508ff commit fb4d6f1
Show file tree
Hide file tree
Showing 71 changed files with 181 additions and 31 deletions.
36 changes: 36 additions & 0 deletions sentry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ Note: this table is incomplete, so have a look at the values.yaml in case you mi
| `user.create` | if `true`, creates a default admin user defined from `email` and `password` | `true` |
| `user.email` | Admin user email | `[email protected]` |
| `user.password` | Admin user password | `aaaa` |
| `hooks.dbCheck.enabled` | Enable Sentry database check job | `true` |
| `hooks.dbInit.enabled` | Enable Sentry database init job | `true` |
| `hooks.snubaInit.enabled` | Enable Snuba database init job | `true` |
| `hooks.snubaMigrate.enabled` | Enable Snuba migration job | `true` |
| `ingress.enabled` | Enabling Ingress | `false` |
| `ingress.regexPathStyle` | Allows setting the style the regex paths are rendered in the ingress for the ingress controller in use. Possible values are `nginx`, `aws-alb`, `gke` and `traefik` | `nginx` |
| `nginx.enabled` | Enabling NGINX | `true` |
Expand All @@ -59,6 +63,24 @@ Note: this table is incomplete, so have a look at the values.yaml in case you mi
| `metrics.serviceMonitor.honorLabels` | honorLabels chooses the metric's labels on collisions with target labels. | `false` |
| `metrics.serviceMonitor.namespace` | namespace where servicemonitor resource should be created | `the same namespace as sentry` |
| `metrics.serviceMonitor.scrapeInterval` | interval between Prometheus scraping | `30s` |
| `relay.enabled` | Enable Relay | `true` |
| `sentry.billingMetricsConsumer.enabled` | Enable Sentry billing metrics | `true` |
| `sentry.cron.enabled` | Enable Sentry cron | `true` |
| `sentry.genericMetricsConsumer.enabled` | Enable Sentry generic metrics consumer | `true` |
| `sentry.ingestConsumer.enabled` | Enable Sentry ingest consumer attachments, events, transactions | `true` |
| `sentry.ingestMonitors.enabled` | Enable Sentry ingest monitors | `true` |
| `sentry.ingestOccurrences.enabled` | Enable Sentry ingest occurences | `true` |
| `sentry.ingestReplayRecordings.enabled` | Enable Sentry ingest replay recordings | `true` |
| `sentry.metricsConsumer.enabled` | Enable Sentry metrics consumer | `true` |
| `sentry.postProcessForwardErrors.enabled` | Enable Sentry post process forward errors | `true` |
| `sentry.postProcessForwardIssuePlatform.enabled` | Enable Sentry post process forward issue platform | `true` |
| `sentry.postProcessForwardTransactions.enabled` | Enable Sentry post process forward transactions | `true` |
| `sentry.subscriptionConsumerEvents.enabled` | Enable Sentry subscription consumer events | `true` |
| `sentry.subscriptionConsumerGenericMetrics.enabled` | Enable Sentry subscription consumer generic metrics | `true` |
| `sentry.subscriptionConsumerMetrics.enabled` | Enable Sentry subscription consumer metrics | `true` |
| `sentry.subscriptionConsumerTransactions.enabled` | Enable Sentry subscription consumer transactions | `true` |
| `sentry.sentry.web.enabled` | Enable Sentry web | `true` |
| `sentry.sentry.worker.enabled` | Enable Sentry worker | `true` |
| `serviceAccount.annotations` | Additional Service Account annotations. | `{}` |
| `serviceAccount.enabled` | If `true`, a custom Service Account will be used. | `false` |
| `serviceAccount.name` | The base name of the ServiceAccount to use. Will be appended with e.g. `snuba` or `web` for the pods accordingly. | `"sentry"` |
Expand All @@ -67,6 +89,20 @@ Note: this table is incomplete, so have a look at the values.yaml in case you mi
| `sentry.features.vstsLimitedScopes` | Disables the azdo-integrations with limited scopes that is the cause of so much pain | `true` |
| `sentry.web.customCA.secretName` | Allows mounting a custom CA secret | `nil` |
| `sentry.web.customCA.item` | Key of CA cert object within the secret | `ca.crt` |
| `snuba.api.enabled` | Enable Snuba api | `true` |
| `snuba.consumer.enabled` | Enable Snuba consumer | `true` |
| `snuba.genericMetricsCountersConsumer.enabled` | Enable Snuba generic metrics counters consumer | `true` |
| `snuba.genericMetricsDistributionConsumer.enabled` | Enable Snuba generic metrics distribution consumer | `true` |
| `snuba.genericMetricsSetsConsumer.enabled` | Enable Snuba generic metrics sets consumer | `true` |
| `snuba.issueOccurrenceConsumer.enabled` | Enable Snuba issue occurrence consumer | `true` |
| `snuba.metricsConsumer.enabled` | Enable Snuba metrics consumer | `true` |
| `snuba.outcomesConsumer.enabled` | Enable Snuba outcomes consumer | `true` |
| `snuba.replacer.enabled` | Enable Snuba replacer | `true` |
| `snuba.replaysConsumer.enabled` | Enable Snuba replays consumer | `true` |
| `snuba.subscriptionConsumerEvents.enabled` | Enable Snuba subscription consumer events | `true` |
| `snuba.subscriptionConsumerMetrics.enabled` | Enable Snuba subscription consumer metrics | `true` |
| `snuba.subscriptionConsumerTransactions.enabled` | Enable Snuba subscription consumer transactions | `true` |
| `snuba.transactionsConsumer.enabled` | Enable Snuba transactions consumer | `true` |
| `symbolicator.api.enabled` | Enable Symbolicator | `false` |
| `symbolicator.api.config` | Config file for Symbolicator, see [its docs](https://getsentry.github.io/symbolicator/#configuration) | see values.yaml |

Expand Down
2 changes: 2 additions & 0 deletions sentry/templates/configmap-memcached.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
{{- if .Values.sourcemaps.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "sentry.fullname" . }}-memcached
data:
MEMCACHED_MEMORY_LIMIT: "{{ .Values.memcached.memoryLimit }}"
MEMCACHED_MAX_ITEM_SIZE: "{{ .Values.memcached.maxItemSize }}"
{{- end }}
2 changes: 2 additions & 0 deletions sentry/templates/configmap-relay.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.relay.enabled }}
{{- $redisHost := include "sentry.redis.host" . -}}
{{- $redisPort := include "sentry.redis.port" . -}}
{{- $redisPass := include "sentry.redis.password" . -}}
Expand Down Expand Up @@ -42,3 +43,4 @@ data:
metrics_sessions: ingest-metrics
{{ .Values.config.relay | indent 4 }}
{{- end }}
2 changes: 2 additions & 0 deletions sentry/templates/deployment-relay.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.relay.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -176,3 +177,4 @@ spec:
{{- if .Values.relay.priorityClassName }}
priorityClassName: "{{ .Values.relay.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.billingMetricsConsumer.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -148,3 +149,4 @@ spec:
{{- if .Values.sentry.billingMetricsConsumer.priorityClassName }}
priorityClassName: "{{ .Values.sentry.billingMetricsConsumer.priorityClassName }}"
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions sentry/templates/deployment-sentry-cron.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.cron.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -129,3 +130,4 @@ spec:
{{- if .Values.sentry.cron.priorityClassName }}
priorityClassName: "{{ .Values.sentry.cron.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.genericMetricsConsumer.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -146,3 +147,4 @@ spec:
{{- if .Values.sentry.genericMetricsConsumer.priorityClassName }}
priorityClassName: "{{ .Values.sentry.genericMetricsConsumer.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.ingestConsumer.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -148,3 +149,4 @@ spec:
{{- if .Values.sentry.ingestConsumer.priorityClassName }}
priorityClassName: "{{ .Values.sentry.ingestConsumer.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.ingestConsumer.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -151,3 +152,4 @@ spec:
{{- if .Values.sentry.ingestConsumer.priorityClassName }}
priorityClassName: "{{ .Values.sentry.ingestConsumer.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.ingestConsumer.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -151,3 +152,4 @@ spec:
{{- if .Values.sentry.ingestConsumer.priorityClassName }}
priorityClassName: "{{ .Values.sentry.ingestConsumer.priorityClassName }}"
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions sentry/templates/deployment-sentry-ingest-monitors.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.ingestMonitors.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -140,3 +141,4 @@ spec:
{{- if .Values.sentry.ingestMonitors.priorityClassName }}
priorityClassName: "{{ .Values.sentry.ingestMonitors.priorityClassName }}"
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions sentry/templates/deployment-sentry-ingest-occurrences.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.ingestOccurrences.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -140,3 +141,4 @@ spec:
{{- if .Values.sentry.ingestOccurrences.priorityClassName }}
priorityClassName: "{{ .Values.sentry.ingestOccurrences.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.ingestReplayRecordings.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -140,3 +141,4 @@ spec:
{{- if .Values.sentry.ingestReplayRecordings.priorityClassName }}
priorityClassName: "{{ .Values.sentry.ingestReplayRecordings.priorityClassName }}"
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions sentry/templates/deployment-sentry-metrics-consumer.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.metricsConsumer.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -146,3 +147,4 @@ spec:
{{- if .Values.sentry.metricsConsumer.priorityClassName }}
priorityClassName: "{{ .Values.sentry.metricsConsumer.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.postProcessForwardErrors.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -138,3 +139,4 @@ spec:
{{- if .Values.sentry.postProcessForwardErrors.priorityClassName }}
priorityClassName: "{{ .Values.sentry.postProcessForwardErrors.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.postProcessForwardIssuePlatform.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -139,3 +140,4 @@ spec:
{{- if .Values.sentry.postProcessForwardIssuePlatform.priorityClassName }}
priorityClassName: "{{ .Values.sentry.postProcessForwardIssuePlatform.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.postProcessForwardTransactions.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -142,3 +143,4 @@ spec:
{{- if .Values.sentry.postProcessForwardTransactions.priorityClassName }}
priorityClassName: "{{ .Values.sentry.postProcessForwardTransactions.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.subscriptionConsumerEvents.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -129,3 +130,4 @@ spec:
{{- if .Values.sentry.subscriptionConsumerEvents.priorityClassName }}
priorityClassName: "{{ .Values.sentry.subscriptionConsumerEvents.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.subscriptionConsumerGenericMetrics.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -146,3 +147,4 @@ spec:
{{- if .Values.sentry.subscriptionConsumerGenericMetrics.priorityClassName }}
priorityClassName: "{{ .Values.sentry.subscriptionConsumerGenericMetrics.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.subscriptionConsumerMetrics.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -146,3 +147,4 @@ spec:
{{- if .Values.sentry.subscriptionConsumerMetrics.priorityClassName }}
priorityClassName: "{{ .Values.sentry.subscriptionConsumerMetrics.priorityClassName }}"
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.sentry.subscriptionConsumerTransactions.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -129,3 +130,4 @@ spec:
{{- if .Values.sentry.subscriptionConsumerTransactions.priorityClassName }}
priorityClassName: "{{ .Values.sentry.subscriptionConsumerTransactions.priorityClassName }}"
{{- end }}
{{- end }}
Loading

0 comments on commit fb4d6f1

Please sign in to comment.