Skip to content

Commit

Permalink
fix: namepsace .Values pointing to nil error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
itsneel committed Dec 26, 2024
1 parent caee113 commit 79960b4
Show file tree
Hide file tree
Showing 12 changed files with 363 additions and 999 deletions.
2 changes: 1 addition & 1 deletion charts/temporal/.helmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
tests/
41 changes: 10 additions & 31 deletions charts/temporal/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,7 @@
apiVersion: v2
name: temporal
description: Temporal is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.
home: https://temporal.io/
keywords:
- temporal
- workflow
- orchestration
maintainers:
- name: temporalio
url: https://temporal.io/
sources:
- https://github.com/temporalio/temporal
dependencies:
- name: cassandra
version: "0.14.3"
repository: https://charts.helm.sh/incubator
condition: cassandra.enabled
- name: prometheus
repository: https://prometheus-community.github.io/helm-charts
version: 25.22.0
condition: prometheus.enabled
- name: elasticsearch
repository: https://helm.elastic.co
version: 7.17.3
condition: elasticsearch.enabled
- name: grafana
repository: https://grafana.github.io/helm-charts
version: 8.0.2
condition: grafana.enabled
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
Expand All @@ -37,9 +11,14 @@ dependencies:
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.53.0
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 1.26.2
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
25 changes: 22 additions & 3 deletions charts/temporal/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
To verify that Temporal has started, run:

kubectl --namespace={{ .Release.Namespace }} get pods -l "app.kubernetes.io/instance={{ .Release.Name }}"
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "temporal.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch its status by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "temporal.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "temporal.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "temporal.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}
Loading

0 comments on commit 79960b4

Please sign in to comment.