mirror of
https://github.com/portainer/portainer.git
synced 2025-08-10 16:25:22 +02:00
correctly detect unreachable
This commit is contained in:
parent
24e0318280
commit
7813ac87cf
3 changed files with 15 additions and 4 deletions
|
@ -14,6 +14,7 @@ import (
|
|||
"github.com/portainer/portainer/pkg/featureflags"
|
||||
"golang.org/x/oauth2"
|
||||
v1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/version"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -1496,6 +1497,8 @@ type (
|
|||
|
||||
// KubeClient represents a service used to query a Kubernetes environment(endpoint)
|
||||
KubeClient interface {
|
||||
ServerVersion() (*version.Info, error)
|
||||
|
||||
SetupUserServiceAccount(userID int, teamIDs []int, restrictDefaultNamespace bool) error
|
||||
IsRBACEnabled() (bool, error)
|
||||
GetServiceAccount(tokendata *TokenData) (*v1.ServiceAccount, error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue