Skip to content

Commit

Permalink
Remove unnecessary sentry helper variables, update sentry name and re…
Browse files Browse the repository at this point in the history
…lease.
  • Loading branch information
ewelinagr committed Jan 20, 2025
1 parent 7562af7 commit b844fe6
Show file tree
Hide file tree
Showing 24 changed files with 26 additions and 194 deletions.
14 changes: 0 additions & 14 deletions charts/app-config/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,3 @@ Create the name of the service account to use
{{ default "default" .Values.serviceAccount.name }}
{{- end -}}
{{- end -}}

{{/*
Service name to be used by Sentry
*/}}
{{- define "app-config.sentryName" -}}
{{- printf "%s" (include "app-config.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "app-config.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/app-config/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "app-config.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "app-config.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "app-config.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/catalog-server/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,3 @@ Create chart name and version as used by the chart label.
{{- define "catalog-server.saslJaasConfig" -}}
{{- printf "org.apache.kafka.common.security.plain.PlainLoginModule required username='%s' password='%s';" .apiKey .apiSecret | b64enc | quote -}}
{{- end -}}

{{/*
Service name to be used by Sentry
*/}}
{{- define "catalog-server.sentryName" -}}
{{- printf "%s" (include "catalog-server.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "catalog-server.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
8 changes: 4 additions & 4 deletions charts/catalog-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "catalog-server.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "catalog-server.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "catalog-server.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down Expand Up @@ -137,9 +137,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "catalog-server.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "catalog-server.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "catalog-server.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/data-dashboard-backend/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,3 @@ Selector labels
app.kubernetes.io/name: {{ include "data-dashboard-backend.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Service name to be used by Sentry
*/}}
{{- define "data-dashboard-backend.sentryName" -}}
{{- printf "%s" (include "data-dashboard-backend.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "data-dashboard-backend.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/data-dashboard-backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "data-dashboard-backend.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "data-dashboard-backend.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "data-dashboard-backend.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/management-portal/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,3 @@ Return true if a secret object should be created
{{- true -}}
{{- end -}}
{{- end -}}

{{/*
Service name to be used by Sentry
*/}}
{{- define "management-portal.sentryName" -}}
{{- printf "%s" (include "management-portal.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "management-portal.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/management-portal/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "management-portal.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "management-portal.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "management-portal.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/radar-appserver/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,3 @@ Selector labels
app.kubernetes.io/name: {{ include "radar-appserver.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Service name to be used by Sentry
*/}}
{{- define "radar-appserver.sentryName" -}}
{{- printf "%s" (include "radar-appserver.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "radar-appserver.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/radar-appserver/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "radar-appserver.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "radar-appserver.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "radar-appserver.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/radar-fitbit-connector/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,3 @@ Create chart name and version as used by the chart label.
{{- define "radar-fitbit-connector.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Service name to be used by Sentry
*/}}
{{- define "radar-fitbit-connector.sentryName" -}}
{{- printf "%s" (include "radar-fitbit-connector.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "radar-fitbit-connector.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/radar-fitbit-connector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "radar-fitbit-connector.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "radar-fitbit-connector.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "radar-fitbit-connector.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/radar-gateway/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,3 @@ Create chart name and version as used by the chart label.
{{- define "radar-gateway.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Service name to be used by Sentry
*/}}
{{- define "radar-gateway.sentryName" -}}
{{- printf "%s" (include "radar-gateway.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "radar-gateway.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/radar-gateway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "radar-gateway.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "radar-gateway.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "radar-gateway.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/radar-jdbc-connector/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,3 @@ app.kubernetes.io/instance: {{ .Release.Name }}
{{- fail "Mode must be 'source' for JDBC source connector or 'sink' for JDBC sink connector."}}
{{- end -}}
{{- end -}}

{{/*
Service name to be used by Sentry
*/}}
{{- define "radar-jdbc-connector.sentryName" -}}
{{- printf "%s" (include "radar-jdbc-connector.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "radar-jdbc-connector.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/radar-jdbc-connector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "radar-jdbc-connector.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "radar-jdbc-connector.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "radar-jdbc-connector.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/radar-oura-connector/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,3 @@ Create chart name and version as used by the chart label.
{{- define "radar-oura-connector.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Service name to be used by Sentry
*/}}
{{- define "radar-oura-connector.sentryName" -}}
{{- printf "%s" (include "radar-oura-connector.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "radar-oura-connector.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/radar-oura-connector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "radar-oura-connector.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "radar-oura-connector.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "radar-oura-connector.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/radar-output/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,3 @@ Selector labels
app.kubernetes.io/name: {{ include "radar-output.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Service name to be used by Sentry
*/}}
{{- define "radar-output.sentryName" -}}
{{- printf "%s" (include "radar-output.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "radar-output.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/radar-output/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "radar-output.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "radar-output.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "radar-output.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/radar-rest-sources-backend/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,3 @@ Return true if a secret object should be created
{{- end -}}
{{- end -}}
{{ end -}}

{{/*
Service name to be used by Sentry
*/}}
{{- define "radar-rest-sources-backend.sentryName" -}}
{{- printf "%s" (include "radar-rest-sources-backend.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "radar-rest-sources-backend.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
4 changes: 2 additions & 2 deletions charts/radar-rest-sources-backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "radar-rest-sources-backend.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "radar-rest-sources-backend.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "radar-rest-sources-backend.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down
14 changes: 0 additions & 14 deletions charts/radar-upload-source-connector/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,3 @@ Create chart name and version as used by the chart label.
{{- define "radar-upload-source-connector.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Service name to be used by Sentry
*/}}
{{- define "radar-upload-source-connector.sentryName" -}}
{{- printf "%s" (include "radar-upload-source-connector.fullname" .) -}}
{{- end -}}

{{/*
App release to be used by Sentry
*/}}
{{- define "radar-upload-source-connector.sentryRelease" -}}
{{- printf "%s" .Chart.AppVersion -}}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ spec:
value: {{ .Values.sentry.stacktrace.packages}}
{{- end }}
- name: SENTRY_NAME
value: {{ include "radar-upload-source-connector.sentryName" . }}
value: {{ .Values.sentry.service.name | default (include "radar-upload-source-connector.fullname" .) }}
- name: SENTRY_RELEASE
value: {{ include "radar-upload-source-connector.sentryRelease" . }}
value: {{ .Values.sentry.service.release | default (printf "%s-%s" .Chart.Version .Chart.AppVersion) }}
- name: SENTRY_ENVIRONMENT
value: {{ .Values.sentry.service.environment }}
{{- else }}
Expand Down

0 comments on commit b844fe6

Please sign in to comment.