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 ¶
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 ¶
IsAWSAuthDisabled reports whether the cluster has authentication mode set to API.
Click to show internal directories.
Click to hide internal directories.