diff --git a/frontend/server/workflow-helper.ts b/frontend/server/workflow-helper.ts index 1fd875cb4802..ba430331f8b1 100644 --- a/frontend/server/workflow-helper.ts +++ b/frontend/server/workflow-helper.ts @@ -171,13 +171,11 @@ export async function getKeyFormatFromArtifactRepositories( namespace: string, ): Promise { try { - const [configMap] = await getConfigMap('artifact-repositories', namespace); + const [configMap, k8sError] = await getConfigMap('artifact-repositories', namespace); if (configMap === undefined) { - // If there is no artifact-repositories configmap, return undefined. The - // caller will just use keyFormat as specified in configs.ts. - return undefined; + throw k8sError } - let artifactRepositories = configMap?.data['artifact-repositories']; + const artifactRepositories = configMap?.data['artifact-repositories']; const artifactRepositoriesValue = JsYaml.safeLoad( artifactRepositories, ) as PartialArtifactRepositoriesValue; diff --git a/manifests/kustomize/base/pipeline/ml-pipeline-ui-role.yaml b/manifests/kustomize/base/pipeline/ml-pipeline-ui-role.yaml index 0fc42c94fe67..72405bccc6a1 100644 --- a/manifests/kustomize/base/pipeline/ml-pipeline-ui-role.yaml +++ b/manifests/kustomize/base/pipeline/ml-pipeline-ui-role.yaml @@ -22,6 +22,7 @@ rules: - "" resources: - secrets + - configmaps verbs: - get - list