Skip to content

Commit

Permalink
refactor: rename lupa to teletrace (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ophiryael authored Mar 9, 2023
1 parent f3f63db commit a124fce
Show file tree
Hide file tree
Showing 15 changed files with 58 additions and 58 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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.
7 changes: 0 additions & 7 deletions charts/lupa/templates/NOTES.txt

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions charts/lupa/Chart.yaml → charts/teletrace/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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"
14 changes: 7 additions & 7 deletions charts/lupa/README.md → charts/teletrace/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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 |
Expand All @@ -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 |
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions charts/teletrace/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -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
**********************************************************
Original file line number Diff line number Diff line change
@@ -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 }}

Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 -}}
Expand Down
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
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 }}
annotations:
{{- 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:
Expand Down Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -16,4 +16,4 @@ spec:
{{- end }}
{{- end }}
selector:
{{- include "lupa.selectorLabels" . | nindent 4 }}
{{- include "teletrace.selectorLabels" . | nindent 4 }}
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
10 changes: 5 additions & 5 deletions charts/lupa/values.yaml → charts/teletrace/values.yaml
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -79,7 +79,7 @@ ingress:

# -- Ingress TLS configuration
tls: []
# - secretName: lupa-tls
# - secretName: teletrace-tls
# hosts:
# - example.com

Expand All @@ -99,7 +99,7 @@ ingress:
# pathType: Prefix
# port: 4318
# tls:
# - secretName: lupa-tls
# - secretName: teletrace-tls
# hosts:
# - grpc.example.com

Expand All @@ -111,7 +111,7 @@ env:
# ES_USERNAME: "elastic"
# ES_PASSWORD: "password"

# -- Lupa OpenTelemetry collector config
# -- Teletrace OpenTelemetry collector config
collectorConfig: |
receivers:
otlp:
Expand Down

0 comments on commit a124fce

Please sign in to comment.