Skip to content

Commit

Permalink
OPSEXP-1853: remove resource naming related named templates (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz authored Mar 8, 2023
1 parent 7ba1788 commit f77aff3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 31 deletions.
2 changes: 1 addition & 1 deletion charts/alfresco-common/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: |
A helper subchart to avoid duplication in alfresco charts and set common
external dependencies
type: library
version: 1.0.1
version: 2.0.0
dependencies:
- name: common
repository: >-
Expand Down
2 changes: 1 addition & 1 deletion charts/alfresco-common/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# alfresco-common

![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)
![Version: 2.0.0](https://img.shields.io/badge/Version-2.0.0-informational?style=flat-square) ![Type: library](https://img.shields.io/badge/Type-library-informational?style=flat-square)

A helper subchart to avoid duplication in alfresco charts and set common
external dependencies
Expand Down
29 changes: 0 additions & 29 deletions charts/alfresco-common/templates/_helpers-search.tpl
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
{{/*
Create a default fully qualified name.
*/}}
{{- define "alfresco-search.fullName" -}}
{{- printf "%s-alfresco-search" .Release.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Alfresco Search2 Host
*/}}
{{- define "alfresco-search.host" -}}
{{- if index $.Values "alfresco-search" "enabled" -}}
{{ printf "%s-solr" (include "alfresco-search.fullName" .) -}}
{{- else -}}
{{ index $.Values "alfresco-search" "external" "host" | default "localhost" -}}
{{- end -}}
{{- end -}}

{{/*
Get Alfresco Search Port
*/}}
{{- define "alfresco-search.port" -}}
{{- if index $.Values "alfresco-search" "enabled" -}}
{{ print (index .Values "alfresco-search" "service" "externalPort") -}}
{{- else -}}
{{ index $.Values "alfresco-search" "external" "port" | default "8983" -}}
{{- end -}}
{{- end -}}

{{/*
Get Alfresco Solr context
*/}}
Expand Down

0 comments on commit f77aff3

Please sign in to comment.