X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-common%2FCommon-Template%2Fhelm%2Fric-common%2Ftemplates%2F_dbaas.tpl;fp=ric-common%2FCommon-Template%2Fhelm%2Fric-common%2Ftemplates%2F_dbaas.tpl;h=9f3daca5bf06d19c3e4d372d5ef156d1c797f408;hb=34c9b7e7d2d797e2e21793fd57071b9a853dca55;hp=54f9d286304eac18d0bf2d4adf51a5f0061a5185;hpb=a66498cacf991ec1dde0e8e53d793b7e8a8458de;p=it%2Fdep.git diff --git a/ric-common/Common-Template/helm/ric-common/templates/_dbaas.tpl b/ric-common/Common-Template/helm/ric-common/templates/_dbaas.tpl index 54f9d286..9f3daca5 100644 --- a/ric-common/Common-Template/helm/ric-common/templates/_dbaas.tpl +++ b/ric-common/Common-Template/helm/ric-common/templates/_dbaas.tpl @@ -1,5 +1,5 @@ ################################################################################ -# Copyright (c) 2019 AT&T Intellectual Property. # +# Copyright (c) 2020 AT&T Intellectual Property. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # @@ -34,12 +34,16 @@ {{- printf "deployment-%s" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} +{{- define "common.statefulsetname.dbaas" -}} + {{- $name := ( include "common.fullname.dbaas" . ) -}} + {{- printf "statefulset-%s" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + {{- define "common.containername.dbaas" -}} {{- $name := ( include "common.fullname.dbaas" . ) -}} {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} - {{- define "common.serviceaccountname.dbaas" -}} {{- $name := ( include "common.fullname.dbaas" . ) -}} {{- printf "svcacct-%s" $name | trunc 63 | trimSuffix "-" -}} @@ -50,4 +54,5 @@ {{- printf "service-%s-tcp" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} -{{- define "common.serviceport.dbaas.tcp" -}}6379{{- end -}} +{{- define "common.serviceport.dbaas.redis" -}}6379{{- end -}} +{{- define "common.serviceport.dbaas.sentinel" -}}26379{{- end -}}