Project visibility is set to public in renku gets API error message as gitlab does not allow public facing projects

By default, all our gitlab projects are internal or private. We dont allow users create public projects.

Public

If selected, only administrators are able to create public groups, projects, and snippets. Also, profiles are only visible to authenticated users.

By mistake, i forgot this, and when creating a project in renku, I kept getting the following message:

The reason its happening is because the project visibility is set to public

Is there anyway to get allowed project visibility from Gitlab?

If I understand this correctly, this is a feature request, not a bug report. You would like Renku to limit the project visibilities to those that are allowed by GitLab.

We are in the process of decoupling from GitLab. In Renku V2 (currently in beta), Renku projects can use GitLab repos, but exist independently of them. In the new version, you would create your repo directly on GitLab (or GitHub, etc.) and reference it in the Renku project, so this problem will not occur anymore.

Let me know if I have misunderstood what you are asking for.

Yeah, I guess feature request. Understood.