diff --git a/frontend/packages/dev-console/src/components/buildconfig/EditBuildConfig.tsx b/frontend/packages/dev-console/src/components/buildconfig/EditBuildConfig.tsx index b06e497d285..f582c7f2a53 100644 --- a/frontend/packages/dev-console/src/components/buildconfig/EditBuildConfig.tsx +++ b/frontend/packages/dev-console/src/components/buildconfig/EditBuildConfig.tsx @@ -45,6 +45,9 @@ const EditBuildConfig: React.FC = ({ try { // Use YAML also as base when submitting the form parsedBuildConfig = safeYAMLToJS(values.yamlData); + if (!parsedBuildConfig?.metadata?.namespace) { + parsedBuildConfig.metadata.namespace = namespace; + } } catch (err) { helpers.setStatus({ submitSuccess: '',