@@ -22,6 +22,9 @@ parameters:
2222 - name : TAG
2323 description : Image tag; e.g. PR number, latest or prod
2424 required : true
25+ - name : DB_VERSION
26+ description : Database version number, e.g. v17
27+ value : " 17"
2528 - name : CRONJOB_RESTORE_TAG
2629 description : Image tag for database restore cronjob; e.g. PR number, latest or prod
2730 value : prod
@@ -48,9 +51,7 @@ parameters:
4851 description : Dummy parameter to make workflows easier
4952 - name : REPLICA_COUNT
5053 description : Dummy parameter to make workflows easier
51- - name : DB_UPGRADE_VERSION
52- description : Database version number for database upgrade
53- value : v17
54+
5455 # ## Backup-Container starts here ###
5556 - name : BACKUP_COMPONENT
5657 description : BACKUP_COMPONENT name
@@ -114,7 +115,7 @@ objects:
114115 - kind : PersistentVolumeClaim
115116 apiVersion : v1
116117 metadata :
117- name : ${NAME}-${ZONE}-${COMPONENT}
118+ name : ${NAME}-${ZONE}-${COMPONENT}-${DB_VERSION}
118119 labels :
119120 app : ${NAME}-${ZONE}
120121 spec :
@@ -125,22 +126,6 @@ objects:
125126 storage : " ${DB_PVC_SIZE}"
126127 storageClassName : netapp-file-standard
127128
128- # ## for db major upgrade PVC only ###
129- # - kind: PersistentVolumeClaim
130- # apiVersion: v1
131- # metadata:
132- # name: ${NAME}-${ZONE}-dbupgrade-${DB_UPGRADE_VERSION}
133- # labels:
134- # app: ${NAME}-${ZONE}
135- # spec:
136- # accessModes:
137- # - ReadWriteMany
138- # resources:
139- # requests:
140- # storage: "${DB_BACKUP_PVC_SIZE}"
141- # storageClassName: netapp-file-standard
142-
143-
144129 - kind : Deployment
145130 apiVersion : apps/v1
146131 metadata :
@@ -167,7 +152,7 @@ objects:
167152 volumes :
168153 - name : ${NAME}-${ZONE}-${COMPONENT}
169154 persistentVolumeClaim :
170- claimName : ${NAME}-${ZONE}-${COMPONENT}
155+ claimName : ${NAME}-${ZONE}-${COMPONENT}-${DB_VERSION}
171156 containers :
172157 - name : ${NAME}
173158 image : ${REGISTRY}/${ORG}/nr-fom/${COMPONENT}:${TAG}
0 commit comments