fix: sort and rename (unique part) of labels
This commit is contained in:
parent
e7683ee9a5
commit
6bc43bd999
@ -226,8 +226,8 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_
|
|||||||
if (is_null($port) && !is_null($onlyPort)) {
|
if (is_null($port) && !is_null($onlyPort)) {
|
||||||
$port = $onlyPort;
|
$port = $onlyPort;
|
||||||
}
|
}
|
||||||
$http_label = "{$uuid}-{$loop}-http";
|
$http_label = "http-{$loop}-{$uuid}";
|
||||||
$https_label = "{$uuid}-{$loop}-https";
|
$https_label = "https-{$loop}-{$uuid}";
|
||||||
|
|
||||||
if ($schema === 'https') {
|
if ($schema === 'https') {
|
||||||
// Set labels for https
|
// Set labels for https
|
||||||
@ -275,7 +275,7 @@ function fqdnLabelsForTraefik(string $uuid, Collection $domains, bool $is_force_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $labels;
|
return $labels->sort();
|
||||||
}
|
}
|
||||||
function generateLabelsApplication(Application $application, ?ApplicationPreview $preview = null): array
|
function generateLabelsApplication(Application $application, ?ApplicationPreview $preview = null): array
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user