Skip to content

Commit

Permalink
feat: rename to edge
Browse files Browse the repository at this point in the history
Renames the chart to refer to Mezmo Edge

Ref: LOG-18654
  • Loading branch information
mdeltito committed Nov 15, 2023
1 parent a47d5b9 commit 7cdfdc9
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 43 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ helm repo add mezmo https://helm.mezmo.com
helm repo update
```

### Installing Mezmo Pulse
### Installing Mezmo Edge

```shell
helm install pulse mezmo/pulse \
helm install edge mezmo/edge \
--set mezmoApiAccessToken=MY_PIPELINE_SERVICE_TOKEN \
--set service.sourcePorts.start=8080 \
--set service.sourcePorts.end=8100
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions charts/pulse/Chart.yaml → charts/edge/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: v2
name: pulse
name: edge
home: https://www.mezmo.com
icon: https://app.mezmo.com/assets/img/mz-logo-square-128.png
description: A Helm chart for deploying Mezmo Pulse
description: A Helm chart for deploying Mezmo Edge
type: application
appVersion: "1.17.3"
version: 0.3.1
version: 0.4.0
maintainers:
- name: Mezmo
email: help@mezmo.com
8 changes: 4 additions & 4 deletions charts/pulse/README.md → charts/edge/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Mezmo Pulse
# Mezmo Edge

> Helm chart for managing a Mezmo Pulse deployment
> Helm chart for managing a Mezmo Edge deployment
## Prerequisites

- Kubernetes 1.10+ (1.23+ if using autoscaling)
- Mezmo Account with Pulse Pipeline support
- Mezmo Account with Edge Pipeline support
- Mezmo API Token


## Quickstart

```sh
helm install pulse mezmo/pulse \
helm install edge mezmo/edge \
--namespace <MY_NAMESPACE> \
--set mezmoApiAccessToken=<MEZMO_API_ACCESS_TOKEN> \
--set service.sourcePorts.start=<START_PORT> \
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "pulse.name" -}}
{{- define "edge.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 "pulse.fullname" -}}
{{- define "edge.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 "pulse.chart" -}}
{{- define "edge.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "pulse.labels" -}}
helm.sh/chart: {{ include "pulse.chart" . }}
{{ include "pulse.selectorLabels" . }}
{{- define "edge.labels" -}}
helm.sh/chart: {{ include "edge.chart" . }}
{{ include "edge.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 "pulse.selectorLabels" -}}
app.kubernetes.io/name: {{ include "pulse.name" . }}
{{- define "edge.selectorLabels" -}}
app.kubernetes.io/name: {{ include "edge.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "pulse.serviceAccountName" -}}
{{- define "edge.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "pulse.fullname" .) .Values.serviceAccount.name }}
{{- default (include "edge.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
Expand All @@ -64,6 +64,6 @@ Create the name of the service account to use
{{/*
Generate the base URL of the Mezmo API
*/}}
{{- define "pulse.mezmoApiBaseUrl" -}}
{{- define "edge.mezmoApiBaseUrl" -}}
{{- printf "%s://%s" .Values.mezmoApiScheme .Values.mezmoApiHost }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "pulse.fullname" . }}
name: {{ include "edge.fullname" . }}
labels:
{{- include "pulse.labels" . | nindent 4 }}
{{- include "edge.labels" . | nindent 4 }}
data:
processor.yaml: |
provider:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pulse.fullname" . }}
name: {{ include "edge.fullname" . }}
labels:
{{- include "pulse.labels" . | nindent 4 }}
{{- include "edge.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "pulse.selectorLabels" . | nindent 6 }}
{{- include "edge.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "pulse.selectorLabels" . | nindent 8 }}
{{- include "edge.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "pulse.serviceAccountName" . }}
serviceAccountName: {{ include "edge.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
Expand All @@ -34,7 +34,7 @@ spec:
projected:
sources:
- configMap:
name: {{ include "pulse.fullname" . }}
name: {{ include "edge.fullname" . }}
terminationGracePeriodSeconds: 60
containers:
- name: {{ .Chart.Name }}
Expand All @@ -50,14 +50,14 @@ spec:
- name: MEZMO_LOCAL_DEPLOY_AUTH_TOKEN
valueFrom:
secretKeyRef:
name: {{ include "pulse.fullname" . }}
name: {{ include "edge.fullname" . }}
key: api-access-token
- name: MEZMO_METRICS_ENDPOINT_URL
value: "{{include "pulse.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/metric/usage"
value: "{{include "edge.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/metric/usage"
- name: MEZMO_TASKS_FETCH_ENDPOINT_URL
value: "{{include "pulse.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/tasks"
value: "{{include "edge.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/tasks"
- name: MEZMO_TASKS_POST_ENDPOINT_URL
value: "{{include "pulse.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/tasks/:task_id/results?pipeline_id=:pipeline_id"
value: "{{include "edge.mezmoApiBaseUrl" . }}/v3/pipeline/account/local-deploy/tasks/:task_id/results?pipeline_id=:pipeline_id"
- name: VECTOR_LOG
value: {{ .Values.logLevel }}
- name: POD_NAME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "pulse.fullname" . }}
name: {{ include "edge.fullname" . }}
labels:
{{- include "pulse.labels" . | nindent 4 }}
{{- include "edge.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "pulse.fullname" . }}
name: {{ include "edge.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "pulse.fullname" . }}
name: {{ include "edge.fullname" . }}
labels:
{{- include "pulse.labels" . | nindent 4 }}
{{- include "edge.labels" . | nindent 4 }}
{{- if .Values.secretAnnotations }}
annotations: {{ toYaml .Values.secretAnnotations | nindent 4 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pulse.fullname" . }}
name: {{ include "edge.fullname" . }}
labels:
{{- include "pulse.labels" . | nindent 4 }}
{{- include "edge.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
{{- include "pulse.selectorLabels" . | nindent 4 }}
{{- include "edge.selectorLabels" . | nindent 4 }}
ports:
{{- range .Values.service.servicePorts }}
- name: {{ .name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "pulse.serviceAccountName" . }}
name: {{ include "edge.serviceAccountName" . }}
labels:
{{- include "pulse.labels" . | nindent 4 }}
{{- include "edge.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/pulse/values.yaml → charts/edge/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Default values for pulse.
# Default values for edge.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

Expand Down

0 comments on commit 7cdfdc9

Please sign in to comment.