@@ -22,9 +22,6 @@ 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"
2825 - name : CRONJOB_RESTORE_TAG
2926 description : Image tag for database restore cronjob; e.g. PR number, latest or prod
3027 value : prod
@@ -51,7 +48,9 @@ parameters:
5148 description : Dummy parameter to make workflows easier
5249 - name : REPLICA_COUNT
5350 description : Dummy parameter to make workflows easier
54-
51+ - name : DB_UPGRADE_VERSION
52+ description : Database version number for database upgrade
53+ value : v17
5554 # ## Backup-Container starts here ###
5655 - name : BACKUP_COMPONENT
5756 description : BACKUP_COMPONENT name
@@ -115,7 +114,7 @@ objects:
115114 - kind : PersistentVolumeClaim
116115 apiVersion : v1
117116 metadata :
118- name : ${NAME}-${ZONE}-${COMPONENT}-${DB_VERSION}
117+ name : ${NAME}-${ZONE}-${COMPONENT}
119118 labels :
120119 app : ${NAME}-${ZONE}
121120 spec :
@@ -126,6 +125,22 @@ objects:
126125 storage : " ${DB_PVC_SIZE}"
127126 storageClassName : netapp-file-standard
128127
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+
129144 - kind : Deployment
130145 apiVersion : apps/v1
131146 metadata :
@@ -152,7 +167,7 @@ objects:
152167 volumes :
153168 - name : ${NAME}-${ZONE}-${COMPONENT}
154169 persistentVolumeClaim :
155- claimName : ${NAME}-${ZONE}-${COMPONENT}-${DB_VERSION}
170+ claimName : ${NAME}-${ZONE}-${COMPONENT}
156171 containers :
157172 - name : ${NAME}
158173 image : ${REGISTRY}/${ORG}/nr-fom/${COMPONENT}:${TAG}
0 commit comments