pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.6k stars 1.65k forks source link

Add UI for setting container labels on the Panel #4443

Open matthewpi opened 1 year ago

matthewpi commented 1 year ago

Is there an existing feature request for this?

Describe the feature you would like to see.

UI for specifying label key-values to go along with https://github.com/pterodactyl/panel/issues/3100

Describe the solution you'd like.

.

Additional context to this request.

No response

Attacler commented 1 year ago

@matthewpi is there any update regarding this? I could really use this feature.

Svenum commented 1 year ago

@matthewpi is there any update regarding this? I could really use this feature.

Same here

kladderadeng commented 11 months ago

(I think) I understand that support for Labels was implemented in the codebase for Wings, but not in the UI yet. I had a look at the PR, but can not figure out from where Wings is pulling the label information. Of course it is not available in the UI yet, but since Labels are "supported" now, how do you provide them? Customize the Egg? Put a .yml or .json file somewhere for Wings to read and use it?

matthewpi commented 11 months ago

(I think) I understand that support for Labels was implemented in the codebase for Wings, but not in the UI yet. I had a look at the PR, but can not figure out from where Wings is pulling the label information. Of course it is not available in the UI yet, but since Labels are "supported" now, how do you provide them? Customize the Egg? Put a .yml or .json file somewhere for Wings to read and use it?

Labels are returned by the Panel when Wings fetches the server's configuration from the Panel.

The associated code is https://github.com/pterodactyl/panel/blob/1.0-develop/app/Services/Servers/ServerConfigurationStructureService.php#L43. To statically add labels to all servers you would just need to add the following code to the existing array.

'labels' => [
  'key' => 'value',
],

There is not a way to configure labels on servers except by modifying the Panel's code.

kladderadeng commented 11 months ago

Thank you very much @matthewpi for your reply. Unfortunately modifying code is out of my league (I can barely read / understand the code, so I am of not much help). But this makes it clear to me that I can stop searching for a hack to get labels into the containers until it is actually implemented. Thanks for working on this project and make life easier for many out there :-)

Rattlyy commented 1 month ago

bump?