Code Review
/
it
/
dep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update ric common template for DBAAS helm charts
[it/dep.git]
/
ric-common
/
Common-Template
/
helm
/
ric-common
/
templates
/
_dbaas.tpl
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
54f9d28
..
9f3daca
100644
(file)
--- 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) 20
19
AT&T Intellectual Property. #
+# Copyright (c) 20
20
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. #
# #
# 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 -}}
{{- 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.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 "-" -}}
{{- 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 -}}
{{- 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 -}}