Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions environment/docker/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func (e *Environment) Create() error {
}
labels["Service"] = "Pterodactyl"
labels["ContainerType"] = "server_process"
labels["ServerUUID"] = e.Id

conf := &container.Config{
Hostname: e.Id,
Expand Down
1 change: 1 addition & 0 deletions server/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ func (ip *InstallationProcess) Execute() (string, error) {
Labels: map[string]string{
"Service": "Pterodactyl",
"ContainerType": "server_installer",
"ServerUUID": ip.Server.ID(),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use something like PdtlId just to make it much more clear with the associated service labeling? ServerUUID is probably a little vague, all things considered.

I'd be open to also adding PdtlContainerTable as a label and deprecating ContainerType. Could also do Pterodactyl as the prefix, but that might get long and unweildly. End goal just being that these labels are tightly coupled to Pterodactyl itself and obvious at a glance without digging through this code to find what we set.

},
}

Expand Down