Open matthewpi opened 1 year ago
@matthewpi is there any update regarding this? I could really use this feature.
@matthewpi is there any update regarding this? I could really use this feature.
Same here
(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?
(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.
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 :-)
bump?
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