Skip to content

Commit

Permalink
fix: adding resources only if right subcharts are enabled (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfavellar90 authored Dec 16, 2024
1 parent 8c54a3b commit 59f6e2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/harmony-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.1
version: 0.9.2
# This is the version number of the application being deployed. This version number should be 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.
Expand Down
2 changes: 2 additions & 0 deletions charts/harmony-chart/templates/echo.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# This service, which is always enabled, allows you to do basic health checks of your cluster and the Ingress Controller
# Service by accessing /cluster-echo-test via HTTP on any hostname associated with your cluster.
{{- if index .Values "ingress-nginx" "enabled" }}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -57,3 +58,4 @@ spec:
name: cluster-echo-service
port:
number: 8080
{{- end }}
3 changes: 2 additions & 1 deletion charts/harmony-chart/templates/elasticsearch/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
{{- if .Values.elasticsearch.enabled }}
{{- $ca := genCA "elasticca" 1825 }}
{{- $cn := printf "harmony-search-cluster.%s.svc.cluster.local" .Release.Namespace }}
{{- $cert := genSignedCert $cn nil (list $cn) 1825 $ca }}
Expand All @@ -20,3 +20,4 @@ metadata:
type: Opaque
data:
"password": {{ randAlphaNum 32 | b64enc | quote }}
{{- end }}
3 changes: 2 additions & 1 deletion charts/harmony-chart/templates/opensearch/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
{{- if .Values.opensearch.enabled }}
{{- $ca := genCA "opensearchca" 1825 }}
{{- $cn := printf "harmony-search-cluster.%s.svc.cluster.local" .Release.Namespace }}
{{- $cert := genSignedCert $cn nil (list $cn) 1825 $ca }}
Expand All @@ -23,3 +23,4 @@ type: Opaque
data:
password: {{ $password | b64enc | quote }}
internal_users.yml: {{ printf "---\n_meta:\n type: \"internalusers\"\n config_version: 2\n\nharmony:\n hash: \"%s\"\n reserved: true\n backend_roles:\n - \"admin\"\n description: \"Harmony admin user\"\n" $password_bcrypt | b64enc | quote }}
{{- end }}

0 comments on commit 59f6e2b

Please sign in to comment.