X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fdep.git;a=blobdiff_plain;f=smo-install%2Foran_oom%2Fnonrtric-common%2Ftemplates%2F_statefulset.tpl;fp=smo-install%2Foran_oom%2Fnonrtric-common%2Ftemplates%2F_policymanagementservice.tpl;h=b0753abe1a7476ba58a19725b66c0f7ee61cae0b;hp=b265ec345bf45ea43d382158dcdc88b0fae47461;hb=918108f729c368db61fe904024129f21269e19b7;hpb=c9ace66e2b4635918c4c4c473dfc7bcbeb41b7ae diff --git a/smo-install/oran_oom/nonrtric-common/templates/_policymanagementservice.tpl b/smo-install/oran_oom/nonrtric-common/templates/_statefulset.tpl similarity index 72% rename from smo-install/oran_oom/nonrtric-common/templates/_policymanagementservice.tpl rename to smo-install/oran_oom/nonrtric-common/templates/_statefulset.tpl index b265ec34..b0753abe 100644 --- a/smo-install/oran_oom/nonrtric-common/templates/_policymanagementservice.tpl +++ b/smo-install/oran_oom/nonrtric-common/templates/_statefulset.tpl @@ -1,5 +1,6 @@ +{{/* ################################################################################ -# Copyright (c) 2020 Nordix Foundation. # +# Copyright (c) 2024 NYCU WINLab. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # @@ -13,12 +14,19 @@ # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ +*/}} -{{- define "common.name.policymanagementservice" -}} - {{- printf "policymanagementservice" -}} +{{- define "common.vardataVolumeClaimTemplate" -}} +- metadata: + name: {{ include "common.name" . }}-vardata + spec: + accessModes: [ ReadWriteOnce ] + storageClassName: "{{ .Values.persistence.storageClassName }}" + resources: + requests: + storage: "{{ .Values.persistence.size }}" {{- end -}} -{{- define "common.container.policymanagementservice" -}} - {{- $name := ( include "common.name.policymanagementservice" . ) -}} - {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}} +{{- define "common.vardataMountName" -}} +{{ include "common.name" . }}-vardata {{- end -}}