11{ {- /*
22MONGODB_HOST env var secret name
33*/} }
4- { {- define " cf-common-0.18.1 .classic.mongodb-host-env-var-secret-name" } }
4+ { {- define " cf-common-0.18.2 .classic.mongodb-host-env-var-secret-name" } }
55 { {- if or .Values.mongodbHostSecretKeyRef .Values.global.mongodbHostSecretKeyRef } }
66{ {- printf (coalesce .Values.mongodbHostSecretKeyRef.name .Values.global.mongodbHostSecretKeyRef.name) } }
77 { {- else } }
8- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
8+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
99 { {- end } }
1010{ {- end } }
1111
1212{ {- /*
1313MONGODB_HOST env var secret key
1414*/} }
15- { {- define " cf-common-0.18.1 .classic.mongodb-host-env-var-secret-key" } }
15+ { {- define " cf-common-0.18.2 .classic.mongodb-host-env-var-secret-key" } }
1616 { {- if or .Values.mongodbHostSecretKeyRef .Values.global.mongodbHostSecretKeyRef } }
1717{ {- printf (coalesce .Values.mongodbHostSecretKeyRef.key .Values.global.mongodbHostSecretKeyRef.key) } }
1818 { {- else } }
@@ -23,18 +23,18 @@ MONGODB_HOST env var secret key
2323{ {- /*
2424MONGODB_USER env var secret name
2525*/} }
26- { {- define " cf-common-0.18.1 .classic.mongodb-user-env-var-secret-name" } }
26+ { {- define " cf-common-0.18.2 .classic.mongodb-user-env-var-secret-name" } }
2727 { {- if or .Values.mongodbUserSecretKeyRef .Values.global.mongodbUserSecretKeyRef } }
2828{ {- printf (coalesce .Values.mongodbUserSecretKeyRef.name .Values.global.mongodbUserSecretKeyRef.name) } }
2929 { {- else } }
30- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
30+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
3131 { {- end } }
3232{ {- end } }
3333
3434{ {- /*
3535MONGODB_USER env var secret key
3636*/} }
37- { {- define " cf-common-0.18.1 .classic.mongodb-user-env-var-secret-key" } }
37+ { {- define " cf-common-0.18.2 .classic.mongodb-user-env-var-secret-key" } }
3838 { {- if or .Values.mongodbUserSecretKeyRef .Values.global.mongodbUserSecretKeyRef } }
3939{ {- printf (coalesce .Values.mongodbUserSecretKeyRef.key .Values.global.mongodbUserSecretKeyRef.key) } }
4040 { {- else } }
@@ -45,18 +45,18 @@ MONGODB_USER env var secret key
4545{ {- /*
4646MONGODB_PASSWORD env var secret name
4747*/} }
48- { {- define " cf-common-0.18.1 .classic.mongodb-password-env-var-secret-name" } }
48+ { {- define " cf-common-0.18.2 .classic.mongodb-password-env-var-secret-name" } }
4949 { {- if or .Values.mongodbPasswordSecretKeyRef .Values.global.mongodbPasswordSecretKeyRef } }
5050{ {- printf (coalesce .Values.mongodbPasswordSecretKeyRef.name .Values.global.mongodbPasswordSecretKeyRef.name) } }
5151 { {- else } }
52- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
52+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
5353 { {- end } }
5454{ {- end } }
5555
5656{ {- /*
5757MONGODB_PASSWORD env var secret key
5858*/} }
59- { {- define " cf-common-0.18.1 .classic.mongodb-password-env-var-secret-key" } }
59+ { {- define " cf-common-0.18.2 .classic.mongodb-password-env-var-secret-key" } }
6060 { {- if or .Values.mongodbPasswordSecretKeyRef .Values.global.mongodbPasswordSecretKeyRef } }
6161{ {- printf (coalesce .Values.mongodbPasswordSecretKeyRef.key .Values.global.mongodbPasswordSecretKeyRef.key) } }
6262 { {- else } }
@@ -67,7 +67,7 @@ MONGODB_PASSWORD env var secret key
6767{ {- /*
6868MONGO_URI env var value
6969*/} }
70- { {- define " cf-common-0.18.1 .classic.mongo-uri-env-var-value" } }
70+ { {- define " cf-common-0.18.2 .classic.mongo-uri-env-var-value" } }
7171{ {- /*
7272Check for legacy global.mongoURI
7373*/} }
@@ -81,21 +81,39 @@ New secret implementation
8181 { {- end } }
8282{ {- end } }
8383
84+ { {- /*
85+ MONGO_URI_ARCHIVE env var value
86+ */} }
87+ { {- define " cf-common-0.18.2.classic.mongo-uri-archive-env-var-value" } }
88+ { {- /*
89+ Check for legacy global.mongoURIArchive or global.mongoURI
90+ */} }
91+ { {- if or .Values.global.mongoURIArchive .Values.global.mongoURI } }
92+ { {- print " $(MONGO_URI_ARCHIVE)" } }
93+ { {- /*
94+ New secret implementation
95+ */} }
96+ { {- else } }
97+ { {- print " $(MONGODB_PROTOCOL)://$(MONGODB_USER):$(MONGODB_PASSWORD)@$(MONGODB_HOST)/$(MONGODB_DATABASE_ARCHIVE)?$(MONGODB_OPTIONS)" } }
98+ { {- end } }
99+ { {- end } }
100+
101+
84102{ {- /*
85103REDIS_URL env var secret name
86104*/} }
87- { {- define " cf-common-0.18.1 .classic.redis-url-env-var-secret-name" } }
105+ { {- define " cf-common-0.18.2 .classic.redis-url-env-var-secret-name" } }
88106 { {- if or .Values.redisUrlSecretKeyRef .Values.global.redisUrlSecretKeyRef } }
89107{ {- printf (coalesce .Values.redisUrlSecretKeyRef.name .Values.global.redisUrlSecretKeyRef.name) } }
90108 { {- else } }
91- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
109+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
92110 { {- end } }
93111{ {- end } }
94112
95113{ {- /*
96114REDIS_URL env var secret key
97115*/} }
98- { {- define " cf-common-0.18.1 .classic.redis-url-env-var-secret-key" } }
116+ { {- define " cf-common-0.18.2 .classic.redis-url-env-var-secret-key" } }
99117 { {- if or .Values.redisUrlSecretKeyRef .Values.global.redisUrlSecretKeyRef } }
100118{ {- printf (coalesce .Values.redisUrlSecretKeyRef.key .Values.global.redisUrlSecretKeyRef.key) } }
101119 { {- else } }
@@ -106,18 +124,18 @@ REDIS_URL env var secret key
106124{ {- /*
107125REDIS_PASSWORD env var secret name
108126*/} }
109- { {- define " cf-common-0.18.1 .classic.redis-password-env-var-secret-name" } }
127+ { {- define " cf-common-0.18.2 .classic.redis-password-env-var-secret-name" } }
110128 { {- if or .Values.redisPasswordSecretKeyRef .Values.global.redisPasswordSecretKeyRef } }
111129{ {- printf (coalesce .Values.redisPasswordSecretKeyRef.name .Values.global.redisPasswordSecretKeyRef.name) } }
112130 { {- else } }
113- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
131+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
114132 { {- end } }
115133{ {- end } }
116134
117135{ {- /*
118136REDIS_PASSWORD env var secret key
119137*/} }
120- { {- define " cf-common-0.18.1 .classic.redis-password-env-var-secret-key" } }
138+ { {- define " cf-common-0.18.2 .classic.redis-password-env-var-secret-key" } }
121139 { {- if or .Values.redisPasswordSecretKeyRef .Values.global.redisPasswordSecretKeyRef } }
122140{ {- printf (coalesce .Values.redisPasswordSecretKeyRef.key .Values.global.redisPasswordSecretKeyRef.key) } }
123141 { {- else } }
@@ -128,18 +146,18 @@ REDIS_PASSWORD env var secret key
128146{ {- /*
129147POSTGRES_HOSTNAME env var secret name
130148*/} }
131- { {- define " cf-common-0.18.1 .classic.postgres-hostname-env-var-secret-name" } }
149+ { {- define " cf-common-0.18.2 .classic.postgres-hostname-env-var-secret-name" } }
132150 { {- if or .Values.postgresHostnameSecretKeyRef .Values.global.postgresHostnameSecretKeyRef } }
133151{ {- printf (coalesce .Values.postgresHostnameSecretKeyRef.name .Values.global.postgresHostnameSecretKeyRef.name) } }
134152 { {- else } }
135- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
153+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
136154 { {- end } }
137155{ {- end } }
138156
139157{ {- /*
140158POSTGRES_HOSTNAME env var secret key
141159*/} }
142- { {- define " cf-common-0.18.1 .classic.postgres-hostname-env-var-secret-key" } }
160+ { {- define " cf-common-0.18.2 .classic.postgres-hostname-env-var-secret-key" } }
143161 { {- if or .Values.postgresHostnameSecretKeyRef .Values.global.postgresHostnameSecretKeyRef } }
144162{ {- printf (coalesce .Values.postgresHostnameSecretKeyRef.key .Values.global.postgresHostnameSecretKeyRef.key) } }
145163 { {- else } }
@@ -150,18 +168,18 @@ POSTGRES_HOSTNAME env var secret key
150168{ {- /*
151169POSTGRES_PASSWORD env var secret name
152170*/} }
153- { {- define " cf-common-0.18.1 .classic.postgres-password-env-var-secret-name" } }
171+ { {- define " cf-common-0.18.2 .classic.postgres-password-env-var-secret-name" } }
154172 { {- if or .Values.postgresPasswordSecretKeyRef .Values.global.postgresPasswordSecretKeyRef } }
155173{ {- printf (coalesce .Values.postgresPasswordSecretKeyRef.name .Values.global.postgresPasswordSecretKeyRef.name) } }
156174 { {- else } }
157- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
175+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
158176 { {- end } }
159177{ {- end } }
160178
161179{ {- /*
162180POSTGRES_PASSWORD env var secret key
163181*/} }
164- { {- define " cf-common-0.18.1 .classic.postgres-password-env-var-secret-key" } }
182+ { {- define " cf-common-0.18.2 .classic.postgres-password-env-var-secret-key" } }
165183 { {- if or .Values.postgresPasswordSecretKeyRef .Values.global.postgresPasswordSecretKeyRef } }
166184{ {- printf (coalesce .Values.postgresPasswordSecretKeyRef.key .Values.global.postgresPasswordSecretKeyRef.key) } }
167185 { {- else } }
@@ -172,18 +190,18 @@ POSTGRES_PASSWORD env var secret key
172190{ {- /*
173191POSTGRES_USER env var secret name
174192*/} }
175- { {- define " cf-common-0.18.1 .classic.postgres-user-env-var-secret-name" } }
193+ { {- define " cf-common-0.18.2 .classic.postgres-user-env-var-secret-name" } }
176194 { {- if or .Values.postgresUserSecretKeyRef .Values.global.postgresUserSecretKeyRef } }
177195{ {- printf (coalesce .Values.postgresUserSecretKeyRef.name .Values.global.postgresUserSecretKeyRef.name) } }
178196 { {- else } }
179- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
197+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
180198 { {- end } }
181199{ {- end } }
182200
183201{ {- /*
184202POSTGRES_USER env var secret key
185203*/} }
186- { {- define " cf-common-0.18.1 .classic.postgres-user-env-var-secret-key" } }
204+ { {- define " cf-common-0.18.2 .classic.postgres-user-env-var-secret-key" } }
187205 { {- if or .Values.postgresUserSecretKeyRef .Values.global.postgresUserSecretKeyRef } }
188206{ {- printf (coalesce .Values.postgresUserSecretKeyRef.key .Values.global.postgresUserSecretKeyRef.key) } }
189207 { {- else } }
@@ -194,18 +212,18 @@ POSTGRES_USER env var secret key
194212{ {- /*
195213RABBITMQ_HOSTNAME env var secret name
196214*/} }
197- { {- define " cf-common-0.18.1 .classic.rabbitmq-hostname-env-var-secret-name" } }
215+ { {- define " cf-common-0.18.2 .classic.rabbitmq-hostname-env-var-secret-name" } }
198216 { {- if or .Values.rabbitmqHostnameSecretKeyRef .Values.global.rabbitmqHostnameSecretKeyRef } }
199217{ {- printf (coalesce .Values.rabbitmqHostnameSecretKeyRef.name .Values.global.rabbitmqHostnameSecretKeyRef.name) } }
200218 { {- else } }
201- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
219+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
202220 { {- end } }
203221{ {- end } }
204222
205223{ {- /*
206224RABBITMQ_HOSTNAME env var secret key
207225*/} }
208- { {- define " cf-common-0.18.1 .classic.rabbitmq-hostname-env-var-secret-key" } }
226+ { {- define " cf-common-0.18.2 .classic.rabbitmq-hostname-env-var-secret-key" } }
209227 { {- if or .Values.rabbitmqHostnameSecretKeyRef .Values.global.rabbitmqHostnameSecretKeyRef } }
210228{ {- printf (coalesce .Values.rabbitmqHostnameSecretKeyRef.key .Values.global.rabbitmqHostnameSecretKeyRef.key) } }
211229 { {- else } }
@@ -216,18 +234,18 @@ RABBITMQ_HOSTNAME env var secret key
216234{ {- /*
217235RABBITMQ_PASSWORD env var secret name
218236*/} }
219- { {- define " cf-common-0.18.1 .classic.rabbitmq-password-env-var-secret-name" } }
237+ { {- define " cf-common-0.18.2 .classic.rabbitmq-password-env-var-secret-name" } }
220238 { {- if or .Values.rabbitmqPasswordSecretKeyRef .Values.global.rabbitmqPasswordSecretKeyRef } }
221239{ {- printf (coalesce .Values.rabbitmqPasswordSecretKeyRef.name .Values.global.rabbitmqPasswordSecretKeyRef.name) } }
222240 { {- else } }
223- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
241+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
224242 { {- end } }
225243{ {- end } }
226244
227245{ {- /*
228246RABBITMQ_PASSWORD env var secret key
229247*/} }
230- { {- define " cf-common-0.18.1 .classic.rabbitmq-password-env-var-secret-key" } }
248+ { {- define " cf-common-0.18.2 .classic.rabbitmq-password-env-var-secret-key" } }
231249 { {- if or .Values.rabbitmqPasswordSecretKeyRef .Values.global.rabbitmqPasswordSecretKeyRef } }
232250{ {- printf (coalesce .Values.rabbitmqPasswordSecretKeyRef.key .Values.global.rabbitmqPasswordSecretKeyRef.key) } }
233251 { {- else } }
@@ -238,18 +256,18 @@ RABBITMQ_PASSWORD env var secret key
238256{ {- /*
239257RABBITMQ_USERNAME env var secret name
240258*/} }
241- { {- define " cf-common-0.18.1 .classic.rabbitmq-username-env-var-secret-name" } }
259+ { {- define " cf-common-0.18.2 .classic.rabbitmq-username-env-var-secret-name" } }
242260 { {- if or .Values.rabbitmqUsernameSecretKeyRef .Values.global.rabbitmqUsernameSecretKeyRef } }
243261{ {- printf (coalesce .Values.rabbitmqUsernameSecretKeyRef.name .Values.global.rabbitmqUsernameSecretKeyRef.name) } }
244262 { {- else } }
245- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
263+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
246264 { {- end } }
247265{ {- end } }
248266
249267{ {- /*
250268RABBITMQ_USERNAME env var secret key
251269*/} }
252- { {- define " cf-common-0.18.1 .classic.rabbitmq-username-env-var-secret-key" } }
270+ { {- define " cf-common-0.18.2 .classic.rabbitmq-username-env-var-secret-key" } }
253271 { {- if or .Values.rabbitmqUsernameSecretKeyRef .Values.global.rabbitmqUsernameSecretKeyRef } }
254272{ {- printf (coalesce .Values.rabbitmqUsernameSecretKeyRef.key .Values.global.rabbitmqUsernameSecretKeyRef.key) } }
255273 { {- else } }
@@ -260,18 +278,18 @@ RABBITMQ_USERNAME env var secret key
260278{ {- /*
261279FIREBASE_SECRET env var secret name
262280*/} }
263- { {- define " cf-common-0.18.1 .classic.firebase-secret-env-var-secret-name" } }
281+ { {- define " cf-common-0.18.2 .classic.firebase-secret-env-var-secret-name" } }
264282 { {- if or .Values.firebaseSecretSecretKeyRef .Values.global.firebaseSecretSecretKeyRef } }
265283{ {- printf (coalesce .Values.firebaseSecretSecretKeyRef.name .Values.global.firebaseSecretSecretKeyRef.name) } }
266284 { {- else } }
267- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
285+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
268286 { {- end } }
269287{ {- end } }
270288
271289{ {- /*
272290FIREBASE_SECRET env var secret key
273291*/} }
274- { {- define " cf-common-0.18.1 .classic.firebase-secret-env-var-secret-key" } }
292+ { {- define " cf-common-0.18.2 .classic.firebase-secret-env-var-secret-key" } }
275293 { {- if or .Values.firebaseSecretSecretKeyRef .Values.global.firebaseSecretSecretKeyRef } }
276294{ {- printf (coalesce .Values.firebaseSecretSecretKeyRef.key .Values.global.firebaseSecretSecretKeyRef.key) } }
277295 { {- else } }
@@ -282,18 +300,18 @@ FIREBASE_SECRET env var secret key
282300{ {- /*
283301FIREBASE_URL env var secret name
284302*/} }
285- { {- define " cf-common-0.18.1 .classic.firebase-url-env-var-secret-name" } }
303+ { {- define " cf-common-0.18.2 .classic.firebase-url-env-var-secret-name" } }
286304 { {- if or .Values.firebaseUrlSecretKeyRef .Values.global.firebaseUrlSecretKeyRef } }
287305{ {- printf (coalesce .Values.firebaseUrlSecretKeyRef.name .Values.global.firebaseUrlSecretKeyRef.name) } }
288306 { {- else } }
289- { {- printf " %s-%s" (include " cf-common-0.18.1 .names.fullname" .) " secret" } }
307+ { {- printf " %s-%s" (include " cf-common-0.18.2 .names.fullname" .) " secret" } }
290308 { {- end } }
291309{ {- end } }
292310
293311{ {- /*
294312FIREBASE_URL env var secret key
295313*/} }
296- { {- define " cf-common-0.18.1 .classic.firebase-url-env-var-secret-key" } }
314+ { {- define " cf-common-0.18.2 .classic.firebase-url-env-var-secret-key" } }
297315 { {- if or .Values.firebaseUrlSecretKeyRef .Values.global.firebaseUrlSecretKeyRef } }
298316{ {- printf (coalesce .Values.firebaseUrlSecretKeyRef.key .Values.global.firebaseUrlSecretKeyRef.key) } }
299317 { {- else } }
0 commit comments