mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(oci): oci helm support [r8s-361] (#787)
This commit is contained in:
parent
b6a6ce9aaf
commit
2697d6c5d7
80 changed files with 4264 additions and 812 deletions
|
@ -4,6 +4,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"sort"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
|
@ -437,5 +438,10 @@ func (kcl *KubeClient) ConvertNamespaceMapToSlice(namespaces map[string]portaine
|
|||
namespaceSlice = append(namespaceSlice, namespace)
|
||||
}
|
||||
|
||||
// Sort namespaces by name
|
||||
sort.Slice(namespaceSlice, func(i, j int) bool {
|
||||
return namespaceSlice[i].Name < namespaceSlice[j].Name
|
||||
})
|
||||
|
||||
return namespaceSlice
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue