Skip to content

Commit

Permalink
Merge pull request #13544 from lokanandaprabhu/feature/OCPBUGS-21800
Browse files Browse the repository at this point in the history
OCPBUGS-21800: Dev console buildconfig got [the server does not allow this method on the requested resource] error when not setting metadate.namespace
  • Loading branch information
openshift-merge-bot[bot] committed Mar 5, 2024
2 parents d6e2e1e + 82826b2 commit f968847
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ const EditBuildConfig: React.FC<EditBuildConfigProps> = ({
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: '',
Expand Down

0 comments on commit f968847

Please sign in to comment.