add dash and underscores for secret pattern test

This commit is contained in:
Sunil Kumar
2023-07-26 23:43:44 +05:30
parent d67e96507a
commit 7457f573e9

View File

@@ -2067,7 +2067,7 @@ const syncSecretsWindmill = async ({
Object.keys(secrets).forEach(
(key) => {
const pattern = new RegExp('^([a-zA-Z0-9])\/([a-zA-Z-0-9])+\/([a-zA-Z0-9])+')
const pattern = new RegExp('^([a-zA-Z0-9])\/([a-zA-Z-0-9-_])+\/([a-zA-Z0-9-_])+')
if((key.startsWith("u/") || key.startsWith("f/")) && pattern.test(key)) {
if(secretsResList.includes(key)) {
modifiedFormatForUpdateSecretInjection.push({