File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
helmchart/otel-add-on/templates Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ kubectl apply -f ${DIR}/podinfo-so.yaml
3838(hey -n 7000 -z 180s http://localhost:8181/delay/2 & > /dev/null)&
3939
4040# watch deployments being scaled
41- echo " hey is running in background, now deployments should be autoscaled.."
41+ echo -e " \nhey is running in background, now deployments should be autoscaled.."
4242sleep 5
4343watch -c " kubectl get deploy/podinfo"
44+
45+ echo -e " \nDon't forget to delete the cluster:\n - k3d cluster delete metric-pull\n\n🚀"
Original file line number Diff line number Diff line change @@ -66,3 +66,5 @@ kubectl apply -f ${DIR}/sos.yaml
6666echo " now deployments should be autoscaled.."
6767sleep 5
6868watch -c " kubectl get deploy/recommendation deploy/product-catalog hpa/keda-hpa-recommendationservice hpa/keda-hpa-productcatalogservice"
69+
70+ echo -e " \nDon't forget to delete the cluster:\n - k3d cluster delete metric-push\n\n🚀"
Original file line number Diff line number Diff line change 22Expand the name of the chart.
33*/ }}
44{{- define " otel-add-on.name" -}}
5- {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix " -" }}
5+ {{- default " otel-add-on " .Values.nameOverride | trunc 63 | trimSuffix " -" }}
66{{- end }}
77
88{{/*
@@ -14,7 +14,7 @@ If release name contains chart name it will be used as a full name.
1414{{- if .Values.fullnameOverride }}
1515{{- .Values.fullnameOverride | trunc 63 | trimSuffix " -" }}
1616{{- else }}
17- {{- $name := default .Chart.Name .Values.nameOverride }}
17+ {{- $name := default " otel-add-on " .Values.nameOverride }}
1818{{- if contains $name .Release.Name }}
1919{{- .Release.Name | trunc 63 | trimSuffix " -" }}
2020{{- else }}
@@ -27,7 +27,7 @@ If release name contains chart name it will be used as a full name.
2727Create chart name and version as used by the chart label.
2828*/ }}
2929{{- define " otel-add-on.chart" -}}
30- {{- printf " %s -%s " .Chart.Name .Chart.Version | replace " +" " _" | trunc 63 | trimSuffix " -" }}
30+ {{- printf " %s -%s " " otel-add-on " .Chart.Version | replace " +" " _" | trunc 63 | trimSuffix " -" }}
3131{{- end }}
3232
3333{{/*
Original file line number Diff line number Diff line change 3535 securityContext :
3636 {{- toYaml .Values.podSecurityContext | nindent 8 }}
3737 containers :
38- - name : {{ .Chart.Name }}
38+ - name : main
3939 securityContext :
4040 {{- toYaml .Values.securityContext | nindent 12 }}
4141 image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
You can’t perform that action at this time.
0 commit comments