accessentry

package
v0.183.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDisabledAccessEntryAPI = fmt.Errorf("access entries API is not currently enabled; please enable it using `eksctl utils update-authentication-mode --cluster <> --authentication-mode=API_AND_CONFIG_MAP`")
)

Functions

func IsEnabled

func IsEnabled(authenticationMode ekstypes.AuthenticationMode) bool

IsEnabled reports whether the authenticationMode indicates that the cluster has access entries enabled.

func ValidateAPIServerAccess

func ValidateAPIServerAccess(clusterConfig *api.ClusterConfig) error

ValidateAPIServerAccess validates whether the API server is accessible for clusterConfig, and logs warning messages for operations that might fail later.

Types

type ClusterStateGetter

type ClusterStateGetter interface {
	GetClusterState() *ekstypes.Cluster
}

ClusterStateGetter returns the cluster state.

type Service

type Service struct {
	// ClusterStateGetter returns the cluster state.
	ClusterStateGetter
}

Service is a service for access entries.

func (*Service) IsAWSAuthDisabled

func (s *Service) IsAWSAuthDisabled() bool

IsAWSAuthDisabled reports whether the cluster has authentication mode set to API.

func (*Service) IsEnabled

func (s *Service) IsEnabled() bool

IsEnabled reports whether the cluster has access entries enabled.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL