Skip to content

Commit

Permalink
fixes #2008
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerkoser committed Jul 29, 2024
1 parent 516a9c9 commit fc897b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/lib/services/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ exports.create = async function ({ user, body }) {
const client = user.client

const name = _.get(body, 'metadata.name')
_.set(body, 'metadata.namespace', `garden-${name}`)
_.set(body, 'spec.namespace', `garden-${name}`)
let project = await client['core.gardener.cloud'].projects.create(body)

const isProjectReady = ({ type, object: project }) => {
Expand Down
2 changes: 2 additions & 0 deletions backend/test/__snapshots__/services.projects.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ exports[`services/projects #create should create a project and return it when re
{
"metadata": {
"name": "foo",
},
"spec": {
"namespace": "garden-foo",
},
"status": {
Expand Down

0 comments on commit fc897b8

Please sign in to comment.