Skip to content

Commit

Permalink
made env upload category more specific (#1209)
Browse files Browse the repository at this point in the history
* made env upload category more specific

* fixed ref to secret
  • Loading branch information
Gkrumbach07 committed May 11, 2023
1 parent 33b5096 commit 296e99e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ export const isEnvVariableDataValid = (envVariables: EnvVariable[]): boolean =>
case ConfigMapCategory.GENERIC:
case SecretCategory.GENERIC:
case ConfigMapCategory.UPLOAD:
case SecretCategory.UPLOAD:
return values.every(({ key, value }) => isValidGenericKey(key) && !!value);
case SecretCategory.AWS:
return isAWSValid(values);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/projects/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ export enum EnvironmentVariableType {
export enum SecretCategory {
GENERIC = 'secret key-value',
AWS = 'aws',
UPLOAD = 'upload',
UPLOAD = 'secret upload',
}
export enum ConfigMapCategory {
GENERIC = 'configmap key-value',
UPLOAD = 'upload',
UPLOAD = 'configmap upload',
}

0 comments on commit 296e99e

Please sign in to comment.