Skip to content

Commit

Permalink
Added namepsace to yaml if not
Browse files Browse the repository at this point in the history
  • Loading branch information
lokanandaprabhu committed Jan 25, 2024
1 parent ad5c318 commit 82826b2
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 82826b2

Please sign in to comment.