Skip to content

Namespace seeding does not workΒ #509

@ericlacher

Description

@ericlacher

I tried this:

I was trying to seed a namespace by file when launching the API

metadata:
  name: mynamespace

This namespace never would show up in the ui.

This happened:

Namespace never appeared in UI, but first attempts succeeds (2nd fails duew to duplicate name in resource repository, I believe due to absence of a name).

I expected this:

namespace to appear in UI

Is there a workaround?

I altered these lines to this:

var ns = serializer......
var ns_resource = new Namespace(){
  Metadata = new(){
    Name = ns.Metadata.Name
  }
};

Which does work for me. I am not a .Net/C# developer, so there might be better ways to do this (e.g. ProvisionWorkflowsAsync has more sophisiticated checks for duplicates etc.), but kindly asking for someone to fix it.

Anything else?

No response

Platform(s)

MacOS

Community Notes

  • Please vote by adding a πŸ‘ reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.name: Bug Report 🐞

Metadata

Metadata

Assignees

Labels

app: apiConcerns the APIpriority: highIndicates a high priority issuetype: bugSomething isn't workingweight: 1An issue that has a very low development impact

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions