diff --git a/README.md b/README.md index 8c40ebd..fae08bb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Lupa Helm Charts +# Teletrace Helm Charts -This repository contains [Helm](https://helm.sh) charts for the [Lupa](https://github.com/epsagon/lupa) project. +This repository contains [Helm](https://helm.sh) charts for the [Teletrace](https://github.com/epsagon/lupa) project. ## Usage @@ -10,9 +10,9 @@ Please refer to Helm's [documentation](https://helm.sh/docs) to get started. Once Helm has been set up correctly, add the repo as follows: ```sh -helm repo add lupa https://epsagon.github.io/lupa-helm-charts +helm repo add teletrace https://epsagon.github.io/lupa-helm-charts ``` If you had already added this repo earlier, run `helm repo update` to retrieve the latest versions of the packages.\ -You can then run `helm search repo lupa` to see the charts. +You can then run `helm search repo teletrace` to see the charts. diff --git a/charts/lupa/templates/NOTES.txt b/charts/lupa/templates/NOTES.txt deleted file mode 100644 index 3d0e09c..0000000 --- a/charts/lupa/templates/NOTES.txt +++ /dev/null @@ -1,7 +0,0 @@ -********************************************************** - Welcome to Lupa! - Chart version: {{ .Chart.Version }} - Lupa version: {{ .Values.image.tag | default .Chart.AppVersion }} - - Learn more about Lupa at https://github.com/epsagon/lupa -********************************************************** diff --git a/charts/lupa/.helmignore b/charts/teletrace/.helmignore similarity index 100% rename from charts/lupa/.helmignore rename to charts/teletrace/.helmignore diff --git a/charts/lupa/Chart.yaml b/charts/teletrace/Chart.yaml similarity index 51% rename from charts/lupa/Chart.yaml rename to charts/teletrace/Chart.yaml index 9c3778e..434a2bd 100644 --- a/charts/lupa/Chart.yaml +++ b/charts/teletrace/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -name: lupa -description: Lupa Helm chart for Kubernetes +name: teletrace +description: Teletrace Helm chart for Kubernetes type: application version: 0.3.0 appVersion: "v0.5.0" diff --git a/charts/lupa/README.md b/charts/teletrace/README.md similarity index 89% rename from charts/lupa/README.md rename to charts/teletrace/README.md index fec5d63..c29fd10 100644 --- a/charts/lupa/README.md +++ b/charts/teletrace/README.md @@ -1,8 +1,8 @@ -# lupa +# teletrace ![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v0.0.1](https://img.shields.io/badge/AppVersion-v0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) -Lupa Helm chart for Kubernetes +Teletrace Helm chart for Kubernetes ## Values @@ -14,7 +14,7 @@ Lupa Helm chart for Kubernetes | autoscaling.minReplicas | int | `1` | Minimum autoscaling replicas | | autoscaling.targetCPUUtilizationPercentage | int | `80` | Target CPU utilization percentage | | autoscaling.targetMemoryUtilizationPercentage | int | `nil` | Target memory utilization percentage | -| collectorConfig | string | `"receivers:\n otlp:\n protocols:\n grpc:\n http:\nprocessors:\n batch:\nexporters:\n # elasticsearch:\n # endpoints: [\"http://elastic-svc.elastic-ns:9200/\"]\n # username: \"elastic\"\n # password: \"password\"\nservice:\n pipelines:\n traces:\n receivers: [otlp]\n processors: [batch]\n # exporters: [elasticsearch]\n"` | Lupa OpenTelemetry collector config | +| collectorConfig | string | `"receivers:\n otlp:\n protocols:\n grpc:\n http:\nprocessors:\n batch:\nexporters:\n # elasticsearch:\n # endpoints: [\"http://elastic-svc.elastic-ns:9200/\"]\n # username: \"elastic\"\n # password: \"password\"\nservice:\n pipelines:\n traces:\n receivers: [otlp]\n processors: [batch]\n # exporters: [elasticsearch]\n"` | Teletrace OpenTelemetry collector config | | env | object | `{"API_PORT":"8080","DEBUG":"false"}` | Environment variables to add | | fullnameOverride | string | `""` | Overrides the chart computed fullname | | image.pullPolicy | string | `"IfNotPresent"` | Image pull policy | @@ -31,10 +31,10 @@ Lupa Helm chart for Kubernetes | nodeSelector | object | `{}` | Node selector for pods | | podAnnotations | object | `{}` | Annotations for pods | | podSecurityContext | object | `{}` | Pod-level security configuration | -| ports.lupa-api.containerPort | int | `8080` | Container port for API | -| ports.lupa-api.enabled | bool | `true` | Whether to enable port for the API (+frontend) | -| ports.lupa-api.protocol | string | `"TCP"` | Protocol to use for API | -| ports.lupa-api.servicePort | int | `8080` | Service port for API | +| ports.teletrace-api.containerPort | int | `8080` | Container port for API | +| ports.teletrace-api.enabled | bool | `true` | Whether to enable port for the API (+frontend) | +| ports.teletrace-api.protocol | string | `"TCP"` | Protocol to use for API | +| ports.teletrace-api.servicePort | int | `8080` | Service port for API | | ports.otlp-grpc.containerPort | int | `4317` | Container port for OTLP gRPC | | ports.otlp-grpc.enabled | bool | `true` | Whether to enable port for OTLP gRPC | | ports.otlp-grpc.protocol | string | `"TCP"` | Protocol to use for OTLP gRPC | diff --git a/charts/lupa/README.md.gotmpl b/charts/teletrace/README.md.gotmpl similarity index 100% rename from charts/lupa/README.md.gotmpl rename to charts/teletrace/README.md.gotmpl diff --git a/charts/teletrace/templates/NOTES.txt b/charts/teletrace/templates/NOTES.txt new file mode 100644 index 0000000..20f95f6 --- /dev/null +++ b/charts/teletrace/templates/NOTES.txt @@ -0,0 +1,7 @@ +********************************************************** + Welcome to Teletrace! + Chart version: {{ .Chart.Version }} + Teletrace version: {{ .Values.image.tag | default .Chart.AppVersion }} + + Learn more about Teletrace at https://github.com/epsagon/lupa +********************************************************** diff --git a/charts/lupa/templates/_helpers.tpl b/charts/teletrace/templates/_helpers.tpl similarity index 77% rename from charts/lupa/templates/_helpers.tpl rename to charts/teletrace/templates/_helpers.tpl index d3daa76..9781669 100644 --- a/charts/lupa/templates/_helpers.tpl +++ b/charts/teletrace/templates/_helpers.tpl @@ -1,7 +1,7 @@ {{/* Expand the name of the chart. */}} -{{- define "lupa.name" -}} +{{- define "teletrace.name" -}} {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} {{- end }} @@ -10,7 +10,7 @@ Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). If release name contains chart name it will be used as a full name. */}} -{{- define "lupa.fullname" -}} +{{- define "teletrace.fullname" -}} {{- if .Values.fullnameOverride }} {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} {{- else }} @@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name. {{/* Create chart name and version as used by the chart label. */}} -{{- define "lupa.chart" -}} +{{- define "teletrace.chart" -}} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} {{- end }} {{/* Common labels */}} -{{- define "lupa.labels" -}} -helm.sh/chart: {{ include "lupa.chart" . }} -{{ include "lupa.selectorLabels" . }} +{{- define "teletrace.labels" -}} +helm.sh/chart: {{ include "teletrace.chart" . }} +{{ include "teletrace.selectorLabels" . }} {{- if .Chart.AppVersion }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} @@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }} {{/* Selector labels */}} -{{- define "lupa.selectorLabels" -}} -app.kubernetes.io/name: {{ include "lupa.name" . }} +{{- define "teletrace.selectorLabels" -}} +app.kubernetes.io/name: {{ include "teletrace.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} {{/* Create the name of the service account to use */}} -{{- define "lupa.serviceAccountName" -}} +{{- define "teletrace.serviceAccountName" -}} {{- if .Values.serviceAccount.create }} -{{- default (include "lupa.fullname" .) .Values.serviceAccount.name }} +{{- default (include "teletrace.fullname" .) .Values.serviceAccount.name }} {{- else }} {{- default "default" .Values.serviceAccount.name }} {{- end }} @@ -65,7 +65,7 @@ Create the name of the service account to use {{/* Return apiVersion for HorizontalPodAutoscaler. */}} -{{- define "lupa.hpa.apiVersion" -}} +{{- define "teletrace.hpa.apiVersion" -}} {{- if and (.Capabilities.APIVersions.Has "autoscaling/v2") (semverCompare ">=1.23-0" .Capabilities.KubeVersion.Version) -}} {{- print "autoscaling/v2" -}} {{- else -}} diff --git a/charts/lupa/templates/configmap.yaml b/charts/teletrace/templates/configmap.yaml similarity index 57% rename from charts/lupa/templates/configmap.yaml rename to charts/teletrace/templates/configmap.yaml index e83ef01..76f9ccb 100644 --- a/charts/lupa/templates/configmap.yaml +++ b/charts/teletrace/templates/configmap.yaml @@ -1,9 +1,9 @@ apiVersion: v1 kind: ConfigMap metadata: - name: {{ include "lupa.fullname" . }} + name: {{ include "teletrace.fullname" . }} labels: - {{- include "lupa.labels" . | nindent 4 }} + {{- include "teletrace.labels" . | nindent 4 }} data: collector-config.yaml: | {{- .Values.collectorConfig | nindent 4 }} diff --git a/charts/lupa/templates/deployment.yaml b/charts/teletrace/templates/deployment.yaml similarity index 85% rename from charts/lupa/templates/deployment.yaml rename to charts/teletrace/templates/deployment.yaml index 5aefd51..a9c370c 100644 --- a/charts/lupa/templates/deployment.yaml +++ b/charts/teletrace/templates/deployment.yaml @@ -1,16 +1,16 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: {{ include "lupa.fullname" . }} + name: {{ include "teletrace.fullname" . }} labels: - {{- include "lupa.labels" . | nindent 4 }} + {{- include "teletrace.labels" . | nindent 4 }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} selector: matchLabels: - {{- include "lupa.selectorLabels" . | nindent 6 }} + {{- include "teletrace.selectorLabels" . | nindent 6 }} template: metadata: {{- with .Values.podAnnotations }} @@ -18,13 +18,13 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} labels: - {{- include "lupa.selectorLabels" . | nindent 8 }} + {{- include "teletrace.selectorLabels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} - serviceAccountName: {{ include "lupa.serviceAccountName" . }} + serviceAccountName: {{ include "teletrace.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: @@ -58,7 +58,7 @@ spec: volumes: - name: {{ .Chart.Name }}-configmap configMap: - name: {{ include "lupa.fullname" . }} + name: {{ include "teletrace.fullname" . }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/lupa/templates/hpa.yaml b/charts/teletrace/templates/hpa.yaml similarity index 83% rename from charts/lupa/templates/hpa.yaml rename to charts/teletrace/templates/hpa.yaml index bc26c46..19790a8 100644 --- a/charts/lupa/templates/hpa.yaml +++ b/charts/teletrace/templates/hpa.yaml @@ -1,16 +1,16 @@ {{- if .Values.autoscaling.enabled -}} -{{- $apiVersion := include "lupa.hpa.apiVersion" . -}} +{{- $apiVersion := include "teletrace.hpa.apiVersion" . -}} apiVersion: {{ $apiVersion }} kind: HorizontalPodAutoscaler metadata: - name: {{ include "lupa.fullname" . }} + name: {{ include "teletrace.fullname" . }} labels: - {{- include "lupa.labels" . | nindent 4 }} + {{- include "teletrace.labels" . | nindent 4 }} spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment - name: {{ include "lupa.fullname" . }} + name: {{ include "teletrace.fullname" . }} minReplicas: {{ .Values.autoscaling.minReplicas }} maxReplicas: {{ .Values.autoscaling.maxReplicas }} metrics: diff --git a/charts/lupa/templates/ingress.yaml b/charts/teletrace/templates/ingress.yaml similarity index 85% rename from charts/lupa/templates/ingress.yaml rename to charts/teletrace/templates/ingress.yaml index 642ec44..a3e763e 100644 --- a/charts/lupa/templates/ingress.yaml +++ b/charts/teletrace/templates/ingress.yaml @@ -17,12 +17,12 @@ apiVersion: extensions/v1beta1 kind: Ingress metadata: {{- if .name }} - name: {{ printf "%s-%s" (include "lupa.fullname" $) .name }} + name: {{ printf "%s-%s" (include "teletrace.fullname" $) .name }} {{- else }} - name: {{ include "lupa.fullname" $ }} + name: {{ include "teletrace.fullname" $ }} {{- end }} labels: - {{- include "lupa.labels" $ | nindent 4 }} + {{- include "teletrace.labels" $ | nindent 4 }} {{- with .annotations }} annotations: {{- toYaml . | nindent 4 }} @@ -54,11 +54,11 @@ spec: backend: {{- if semverCompare ">=1.19-0" $kubeVersion }} service: - name: {{ include "lupa.fullname" $ }} + name: {{ include "teletrace.fullname" $ }} port: number: {{ .port }} {{- else }} - serviceName: {{ include "lupa.fullname" $ }} + serviceName: {{ include "teletrace.fullname" $ }} servicePort: {{ .port }} {{- end }} {{- end }} diff --git a/charts/lupa/templates/service.yaml b/charts/teletrace/templates/service.yaml similarity index 68% rename from charts/lupa/templates/service.yaml rename to charts/teletrace/templates/service.yaml index 885d01b..e549feb 100644 --- a/charts/lupa/templates/service.yaml +++ b/charts/teletrace/templates/service.yaml @@ -1,9 +1,9 @@ apiVersion: v1 kind: Service metadata: - name: {{ include "lupa.fullname" . }} + name: {{ include "teletrace.fullname" . }} labels: - {{- include "lupa.labels" . | nindent 4 }} + {{- include "teletrace.labels" . | nindent 4 }} spec: clusterIP: None ports: @@ -16,4 +16,4 @@ spec: {{- end }} {{- end }} selector: - {{- include "lupa.selectorLabels" . | nindent 4 }} + {{- include "teletrace.selectorLabels" . | nindent 4 }} diff --git a/charts/lupa/templates/serviceaccount.yaml b/charts/teletrace/templates/serviceaccount.yaml similarity index 66% rename from charts/lupa/templates/serviceaccount.yaml rename to charts/teletrace/templates/serviceaccount.yaml index c63fcfe..1e2d4d4 100644 --- a/charts/lupa/templates/serviceaccount.yaml +++ b/charts/teletrace/templates/serviceaccount.yaml @@ -2,9 +2,9 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ include "lupa.serviceAccountName" . }} + name: {{ include "teletrace.serviceAccountName" . }} labels: - {{- include "lupa.labels" . | nindent 4 }} + {{- include "teletrace.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} diff --git a/charts/lupa/values.yaml b/charts/teletrace/values.yaml similarity index 96% rename from charts/lupa/values.yaml rename to charts/teletrace/values.yaml index 16414fc..519c56b 100644 --- a/charts/lupa/values.yaml +++ b/charts/teletrace/values.yaml @@ -1,4 +1,4 @@ -# Default values for lupa. +# Default values for teletrace. # This is a YAML-formatted file. # Declare variables to be passed into your templates. @@ -29,7 +29,7 @@ serviceAccount: name: "" ports: - lupa-api: + teletrace-api: # -- Whether to enable port for the API (+frontend) enabled: true # -- Container port for API @@ -79,7 +79,7 @@ ingress: # -- Ingress TLS configuration tls: [] - # - secretName: lupa-tls + # - secretName: teletrace-tls # hosts: # - example.com @@ -99,7 +99,7 @@ ingress: # pathType: Prefix # port: 4318 # tls: - # - secretName: lupa-tls + # - secretName: teletrace-tls # hosts: # - grpc.example.com @@ -111,7 +111,7 @@ env: # ES_USERNAME: "elastic" # ES_PASSWORD: "password" -# -- Lupa OpenTelemetry collector config +# -- Teletrace OpenTelemetry collector config collectorConfig: | receivers: otlp: