Documentation ¶
Index ¶
- Constants
- func AddApproveFlag(fs *pflag.FlagSet, cmd *Cmd)
- func AddClusterFlag(fs *pflag.FlagSet, meta *api.ClusterMeta)
- func AddClusterFlagWithDeprecated(fs *pflag.FlagSet, meta *api.ClusterMeta)
- func AddCommonCreateNodeGroupAddonsFlags(fs *pflag.FlagSet, ng *api.NodeGroup, options *CreateNGOptions)
- func AddCommonCreateNodeGroupFlags(fs *pflag.FlagSet, cmd *Cmd, ng *api.NodeGroup, ...)
- func AddCommonFlagsForAWS(cmd *Cmd, p *api.ProviderConfig, addCfnOptions bool)
- func AddCommonFlagsForGetCmd(fs *pflag.FlagSet, chunkSize *int, outputMode *printers.Type)
- func AddCommonFlagsForKubeconfig(fs *pflag.FlagSet, outputPath, authenticatorRoleARN *string, ...)
- func AddConfigFileFlag(fs *pflag.FlagSet, path *string)
- func AddFlagsForFargate(fs *pflag.FlagSet, options *fargate.Options)
- func AddFlagsForFargateProfileCreation(fs *pflag.FlagSet, options *fargate.CreateOptions)
- func AddIAMIdentityMappingARNFlags(fs *pflag.FlagSet, cmd *Cmd, arn *string, verb string)
- func AddIAMServiceAccountFilterFlags(fs *pflag.FlagSet, includeGlobs, excludeGlobs *[]string)
- func AddInstanceSelectorOptions(flagSetGroup *NamedFlagSetGroup, ng *api.NodeGroup)
- func AddNodeGroupFilterFlags(fs *pflag.FlagSet, includeGlobs, excludeGlobs *[]string)
- func AddPreRun(cmd *cobra.Command, newFn func(cmd *cobra.Command, args []string))
- func AddRegionFlag(fs *pflag.FlagSet, p *api.ProviderConfig)
- func AddResourceCmd(flagGrouping *FlagGrouping, parentVerbCmd *cobra.Command, newCmd func(*Cmd))
- func AddStringToStringVarPFlag(fs *pflag.FlagSet, p *map[string]string, name, shorthand string, ...)
- func AddSubnetIDs(fs *pflag.FlagSet, subnetIDs *[]string, description string)
- func AddTimeoutFlag(fs *pflag.FlagSet, p *time.Duration)
- func AddTimeoutFlagWithValue(fs *pflag.FlagSet, p *time.Duration, value time.Duration)
- func AddUpdateAuthConfigMap(fs *pflag.FlagSet, description string) *bool
- func AddVersionFlag(fs *pflag.FlagSet, meta *api.ClusterMeta, extraUsageInfo string)
- func AddWaitFlag(fs *pflag.FlagSet, wait *bool, description string)
- func AddWaitFlagWithFullDescription(fs *pflag.FlagSet, wait *bool, description string)
- func ApplyFilter(clusterConfig *api.ClusterConfig, ngFilter filter.NodegroupFilter) func()
- func ClusterNameFlag(cmd *Cmd) string
- func ErrCannotUseWithConfigFile(what string) error
- func ErrClusterFlagAndArg(cmd *Cmd, nameFlag, nameArg string) error
- func ErrFlagAndArg(kind, flag, arg string) error
- func ErrMustBeSet(pathOrFlag string) error
- func ErrUnsupportedManagedFlag(flag string) error
- func ErrUnsupportedNameArg() error
- func ErrUnsupportedRegion(provider *api.ProviderConfig) error
- func GetNameArg(args []string) string
- func KubernetesClientAndConfigFrom(cmd *Cmd) (kubernetes.Interface, error)
- func LogCompletedAction(plan bool, msgFmt string, args ...interface{})
- func LogIntendedAction(plan bool, msgFmt string, args ...interface{})
- func LogPlanModeWarning(plan bool)
- func LogRegionAndVersionInfo(meta *api.ClusterMeta)
- func NewVerbCmd(use, short, long string) *cobra.Command
- func PopulateNodegroup(ctx context.Context, stackManager manager.StackManager, name string, ...) error
- func PopulateNodegroupFromStack(nodeGroupType api.NodeGroupType, nodeGroupName string, cfg *api.ClusterConfig) error
- func PopulateUnmanagedNodegroup(nodeGroupName string, cfg *api.ClusterConfig)
- func PrintDryRunConfig(clusterConfig *v1alpha5.ClusterConfig, writer io.Writer) error
- func PrintNodeGroupDryRunConfig(clusterConfig *v1alpha5.ClusterConfig, writer io.Writer) error
- func ToKubeNodeGroups(unmanagedNodeGroups []*api.NodeGroup, ...) []eks.KubeNodeGroup
- func ValidateNumberOfNodes(ng *api.NodeGroupBase) error
- type ClusterConfigLoader
- func NewAutoModeLoader(cmd *Cmd) ClusterConfigLoader
- func NewCreateAccessEntryLoader(cmd *Cmd, accessEntry *api.AccessEntry) ClusterConfigLoader
- func NewCreateClusterLoader(cmd *Cmd, ngFilter *filter.NodeGroupFilter, ng *api.NodeGroup, ...) ClusterConfigLoader
- func NewCreateFargateProfileLoader(cmd *Cmd, options *fargate.CreateOptions) ClusterConfigLoader
- func NewCreateIAMServiceAccountLoader(cmd *Cmd, saFilter *filter.IAMServiceAccountFilter) ClusterConfigLoader
- func NewCreateNodeGroupLoader(cmd *Cmd, ng *api.NodeGroup, ngFilter *filter.NodeGroupFilter, ...) ClusterConfigLoader
- func NewCreateOrUpgradeAddonLoader(cmd *Cmd) ClusterConfigLoader
- func NewCreatePodIdentityAssociationLoader(cmd *Cmd, podIdentityAssociation *api.PodIdentityAssociation) ClusterConfigLoader
- func NewDeleteAccessEntryLoader(cmd *Cmd, accessEntry api.AccessEntry) ClusterConfigLoader
- func NewDeleteAddonLoader(cmd *Cmd) ClusterConfigLoader
- func NewDeleteAndDrainNodeGroupLoader(cmd *Cmd, ng *api.NodeGroup, ngFilter *filter.NodeGroupFilter) ClusterConfigLoader
- func NewDeleteFargateProfileLoader(cmd *Cmd, options *fargate.Options) ClusterConfigLoader
- func NewDeleteIAMServiceAccountLoader(cmd *Cmd, sa *api.ClusterIAMServiceAccount, ...) ClusterConfigLoader
- func NewDeletePodIdentityAssociationLoader(cmd *Cmd, options PodIdentityAssociationOptions) ClusterConfigLoader
- func NewGetAccessEntryLoader(cmd *Cmd) ClusterConfigLoader
- func NewGetAddonsLoader(cmd *Cmd) ClusterConfigLoader
- func NewGetClusterLoader(cmd *Cmd) ClusterConfigLoader
- func NewGetFargateProfileLoader(cmd *Cmd, options *fargate.Options) ClusterConfigLoader
- func NewGetIAMServiceAccountLoader(cmd *Cmd, options *irsa.GetOptions) ClusterConfigLoader
- func NewGetLabelsLoader(cmd *Cmd, ngName string) ClusterConfigLoader
- func NewGetNodegroupLoader(cmd *Cmd, ng *api.NodeGroup) ClusterConfigLoader
- func NewGetPodIdentityAssociationLoader(cmd *Cmd, pia *api.PodIdentityAssociation) ClusterConfigLoader
- func NewMetadataLoader(cmd *Cmd) ClusterConfigLoader
- func NewScaleAllNodeGroupLoader(cmd *Cmd) ClusterConfigLoader
- func NewScaleNodeGroupLoader(cmd *Cmd, ng *api.NodeGroupBase) ClusterConfigLoader
- func NewSetLabelLoader(cmd *Cmd, nodeGroupName string, labels map[string]string) ClusterConfigLoader
- func NewUpdateClusterVPCLoader(cmd *Cmd, options UpdateClusterVPCOptions) ClusterConfigLoader
- func NewUpdateNodegroupLoader(cmd *Cmd) ClusterConfigLoader
- func NewUpdatePodIdentityAssociationLoader(cmd *Cmd, options UpdatePodIdentityAssociationOptions) ClusterConfigLoader
- func NewUtilsAssociateIAMOIDCProviderLoader(cmd *Cmd) ClusterConfigLoader
- func NewUtilsEnableEndpointAccessLoader(cmd *Cmd, privateAccess, publicAccess bool) ClusterConfigLoader
- func NewUtilsEnableLoggingLoader(cmd *Cmd) ClusterConfigLoader
- func NewUtilsKMSLoader(cmd *Cmd) ClusterConfigLoader
- func NewUtilsPublicAccessCIDRsLoader(cmd *Cmd) ClusterConfigLoader
- func NewUtilsUpdateAuthenticationModeLoader(cmd *Cmd) ClusterConfigLoader
- func NewZonalShiftConfigLoader(cmd *Cmd) ClusterConfigLoader
- type Cmd
- func (c *Cmd) InitializeClusterConfig() error
- func (c *Cmd) NewCtl() (*eks.ClusterProvider, error)
- func (c *Cmd) NewProviderForExistingCluster(ctx context.Context) (*eks.ClusterProvider, error)
- func (c *Cmd) NewProviderForExistingClusterHelper(ctx context.Context, ...) (*eks.ClusterProvider, error)
- func (c *Cmd) SetDescription(use, short, long string, aliases ...string)
- type ConfigLoaderBuilder
- type CreateClusterCmdParams
- type CreateManagedNGOptions
- type CreateNGOptions
- type FlagGrouping
- type GitOpsConfigLoader
- type NamedFlagSetGroup
- type NodeGroupOptions
- type PodIdentityAssociationOptions
- type UpdateClusterVPCOptions
- type UpdatePodIdentityAssociationOptions
- type ValidateCmdFunc
Constants ¶
const IncompatibleFlags = "cannot be used at the same time"
IncompatibleFlags is a common substring of an error message
Variables ¶
This section is empty.
Functions ¶
func AddApproveFlag ¶
AddApproveFlag adds common `--approve` flag
func AddClusterFlag ¶
func AddClusterFlag(fs *pflag.FlagSet, meta *api.ClusterMeta)
AddClusterFlag adds a common --cluster flag for cluster name. Use this for commands whose principal resource is *not* a cluster.
func AddClusterFlagWithDeprecated ¶
func AddClusterFlagWithDeprecated(fs *pflag.FlagSet, meta *api.ClusterMeta)
AddClusterFlagWithDeprecated adds a common --cluster flag for cluster name as well as a deprecated --name flag. Use AddClusterFlag() for new commands.
func AddCommonCreateNodeGroupAddonsFlags ¶ added in v0.42.0
func AddCommonCreateNodeGroupAddonsFlags(fs *pflag.FlagSet, ng *api.NodeGroup, options *CreateNGOptions)
AddCommonCreateNodeGroupAddonsFlags adds flags to set ng.IAM.WithAddonPolicies
func AddCommonCreateNodeGroupFlags ¶
func AddCommonCreateNodeGroupFlags(fs *pflag.FlagSet, cmd *Cmd, ng *api.NodeGroup, mngOptions *CreateManagedNGOptions)
AddCommonCreateNodeGroupFlags adds common flags for creating a nodegroup
func AddCommonFlagsForAWS ¶
func AddCommonFlagsForAWS(cmd *Cmd, p *api.ProviderConfig, addCfnOptions bool)
AddCommonFlagsForAWS adds common flags for api.ProviderConfig
func AddCommonFlagsForGetCmd ¶
AddCommonFlagsForGetCmd adds common flags for get commands.
func AddCommonFlagsForKubeconfig ¶
func AddCommonFlagsForKubeconfig(fs *pflag.FlagSet, outputPath, authenticatorRoleARN *string, setContext, autoPath *bool, exampleName string)
AddCommonFlagsForKubeconfig adds common flags for controlling how output kubeconfig is written
func AddConfigFileFlag ¶
AddConfigFileFlag adds common --config-file flag
func AddFlagsForFargate ¶
AddFlagsForFargate configures the flags required to interact with Fargate.
func AddFlagsForFargateProfileCreation ¶
func AddFlagsForFargateProfileCreation(fs *pflag.FlagSet, options *fargate.CreateOptions)
AddFlagsForFargateProfileCreation configures the flags required to create a Fargate profile.
func AddIAMIdentityMappingARNFlags ¶
AddIAMIdentityMappingARNFlags adds --arn and deprecated --role flags
func AddIAMServiceAccountFilterFlags ¶
AddIAMServiceAccountFilterFlags add common `--include` and `--exclude` flags for filtering iamserviceaccounts
func AddInstanceSelectorOptions ¶ added in v0.44.0
func AddInstanceSelectorOptions(flagSetGroup *NamedFlagSetGroup, ng *api.NodeGroup)
AddInstanceSelectorOptions adds flags for EC2 instance selector
func AddNodeGroupFilterFlags ¶
AddNodeGroupFilterFlags add common `--include` and `--exclude` flags for filtering nodegroups
func AddPreRun ¶
AddPreRun chains cmd.PreRun handlers, as cobra only allows one, so we don't accidentally override one we registered earlier
func AddRegionFlag ¶
func AddRegionFlag(fs *pflag.FlagSet, p *api.ProviderConfig)
AddRegionFlag adds common --region flag
func AddResourceCmd ¶
func AddResourceCmd(flagGrouping *FlagGrouping, parentVerbCmd *cobra.Command, newCmd func(*Cmd))
AddResourceCmd create a registers a new command under the given verb command
func AddStringToStringVarPFlag ¶
func AddStringToStringVarPFlag(fs *pflag.FlagSet, p *map[string]string, name, shorthand string, value map[string]string, usage string)
AddStringToStringVarPFlag is a wrapper that prefixes the description of the flag for consistency
func AddSubnetIDs ¶ added in v0.61.0
AddSubnetIDs adds common --subnet-ids flag
func AddTimeoutFlag ¶
AddTimeoutFlag configures the timeout flag.
func AddTimeoutFlagWithValue ¶
AddTimeoutFlagWithValue configures the timeout flag with the provided value.
func AddUpdateAuthConfigMap ¶
AddUpdateAuthConfigMap adds common --update-auth-configmap flag
func AddVersionFlag ¶
func AddVersionFlag(fs *pflag.FlagSet, meta *api.ClusterMeta, extraUsageInfo string)
AddVersionFlag adds common --version flag
func AddWaitFlag ¶
AddWaitFlag adds common --wait flag
func AddWaitFlagWithFullDescription ¶
AddWaitFlagWithFullDescription adds common --wait flag
func ApplyFilter ¶
func ApplyFilter(clusterConfig *api.ClusterConfig, ngFilter filter.NodegroupFilter) func()
ApplyFilter applies nodegroup filters and returns a log function
func ClusterNameFlag ¶
ClusterNameFlag returns the flag to use for the cluster name taking the principal resource into account.
func ErrCannotUseWithConfigFile ¶
ErrCannotUseWithConfigFile is a common error message
func ErrClusterFlagAndArg ¶
ErrClusterFlagAndArg wraps ErrFlagAndArg() by passing in the proper flag name.
func ErrFlagAndArg ¶
ErrFlagAndArg may be used to err for options that can be given as flags /and/ arg but only one is allowed to be used.
func ErrMustBeSet ¶
ErrMustBeSet is a common error message
func ErrUnsupportedManagedFlag ¶
ErrUnsupportedManagedFlag reports unsupported flags for Managed Nodegroups
func ErrUnsupportedNameArg ¶
func ErrUnsupportedNameArg() error
ErrUnsupportedNameArg reports unsupported usage of `name` argument
func ErrUnsupportedRegion ¶
func ErrUnsupportedRegion(provider *api.ProviderConfig) error
ErrUnsupportedRegion is a common error message
func GetNameArg ¶
GetNameArg tests to ensure there is only 1 name argument
func KubernetesClientAndConfigFrom ¶
func KubernetesClientAndConfigFrom(cmd *Cmd) (kubernetes.Interface, error)
KubernetesClientAndConfigFrom returns a Kubernetes client set and REST configuration object for the currently configured cluster.
func LogCompletedAction ¶
LogCompletedAction calls logger.Success with appropriate prefix
func LogIntendedAction ¶
LogIntendedAction calls logger.Info with appropriate prefix
func LogPlanModeWarning ¶
func LogPlanModeWarning(plan bool)
LogPlanModeWarning will log a message to inform user that they are in plan-mode
func LogRegionAndVersionInfo ¶
func LogRegionAndVersionInfo(meta *api.ClusterMeta)
LogRegionAndVersionInfo will log the selected region and build version
func NewVerbCmd ¶
NewVerbCmd defines a standard verb command
func PopulateNodegroup ¶
func PopulateNodegroup(ctx context.Context, stackManager manager.StackManager, name string, cfg *api.ClusterConfig, ctl api.ClusterProvider) error
func PopulateNodegroupFromStack ¶ added in v0.68.0
func PopulateNodegroupFromStack(nodeGroupType api.NodeGroupType, nodeGroupName string, cfg *api.ClusterConfig) error
PopulateNodegroupFromStack populates the nodegroup field of an api.ClusterConfig by type from its CF stack.
func PopulateUnmanagedNodegroup ¶ added in v0.68.0
func PopulateUnmanagedNodegroup(nodeGroupName string, cfg *api.ClusterConfig)
PopulateUnmanagedNodegroup populates the unmanaged nodegroup field of a ClusterConfig.
func PrintDryRunConfig ¶ added in v0.44.0
func PrintDryRunConfig(clusterConfig *v1alpha5.ClusterConfig, writer io.Writer) error
PrintDryRunConfig prints ClusterConfig for dry-run
func PrintNodeGroupDryRunConfig ¶ added in v0.44.0
func PrintNodeGroupDryRunConfig(clusterConfig *v1alpha5.ClusterConfig, writer io.Writer) error
PrintNodeGroupDryRunConfig prints the dry-run config for nodegroups, omitting any cluster-wide defaults
func ToKubeNodeGroups ¶
func ToKubeNodeGroups(unmanagedNodeGroups []*api.NodeGroup, managedNodeGroups []*api.ManagedNodeGroup) []eks.KubeNodeGroup
ToKubeNodeGroups combines managed and unmanaged nodegroups and returns a slice of eks.KubeNodeGroup containing both types of nodegroups
func ValidateNumberOfNodes ¶ added in v0.76.0
func ValidateNumberOfNodes(ng *api.NodeGroupBase) error
ValidateNumberOfNodes validates the scaling config of a nodegroup.
Types ¶
type ClusterConfigLoader ¶
type ClusterConfigLoader interface {
Load() error
}
ClusterConfigLoader is an interface that loaders should implement
func NewAutoModeLoader ¶ added in v0.195.0
func NewAutoModeLoader(cmd *Cmd) ClusterConfigLoader
NewAutoModeLoader creates a new loader for Auto Mode.
func NewCreateAccessEntryLoader ¶ added in v0.167.0
func NewCreateAccessEntryLoader(cmd *Cmd, accessEntry *api.AccessEntry) ClusterConfigLoader
NewCreateAccessEntryLoader creates a new loader for access entries.
func NewCreateClusterLoader ¶
func NewCreateClusterLoader(cmd *Cmd, ngFilter *filter.NodeGroupFilter, ng *api.NodeGroup, params *CreateClusterCmdParams) ClusterConfigLoader
NewCreateClusterLoader will load config or use flags for 'eksctl create cluster'
func NewCreateFargateProfileLoader ¶
func NewCreateFargateProfileLoader(cmd *Cmd, options *fargate.CreateOptions) ClusterConfigLoader
NewCreateFargateProfileLoader will load config or use flags for 'eksctl create fargateprofile'
func NewCreateIAMServiceAccountLoader ¶
func NewCreateIAMServiceAccountLoader(cmd *Cmd, saFilter *filter.IAMServiceAccountFilter) ClusterConfigLoader
NewCreateIAMServiceAccountLoader will load config or use flags for 'eksctl create iamserviceaccount'
func NewCreateNodeGroupLoader ¶
func NewCreateNodeGroupLoader(cmd *Cmd, ng *api.NodeGroup, ngFilter *filter.NodeGroupFilter, options *NodeGroupOptions) ClusterConfigLoader
NewCreateNodeGroupLoader will load config or use flags for 'eksctl create nodegroup'
func NewCreateOrUpgradeAddonLoader ¶
func NewCreateOrUpgradeAddonLoader(cmd *Cmd) ClusterConfigLoader
func NewCreatePodIdentityAssociationLoader ¶ added in v0.165.0
func NewCreatePodIdentityAssociationLoader(cmd *Cmd, podIdentityAssociation *api.PodIdentityAssociation) ClusterConfigLoader
NewCreatePodIdentityAssociationLoader will load config or use flags for 'eksctl create podidentityassociation'.
func NewDeleteAccessEntryLoader ¶ added in v0.167.0
func NewDeleteAccessEntryLoader(cmd *Cmd, accessEntry api.AccessEntry) ClusterConfigLoader
NewDeleteAccessEntryLoader loads config file and validates command for `eksctl delete accessentry`.
func NewDeleteAddonLoader ¶
func NewDeleteAddonLoader(cmd *Cmd) ClusterConfigLoader
func NewDeleteAndDrainNodeGroupLoader ¶ added in v0.90.0
func NewDeleteAndDrainNodeGroupLoader(cmd *Cmd, ng *api.NodeGroup, ngFilter *filter.NodeGroupFilter) ClusterConfigLoader
NewDeleteAndDrainNodeGroupLoader will load config or use flags for 'eksctl delete nodegroup'
func NewDeleteFargateProfileLoader ¶
func NewDeleteFargateProfileLoader(cmd *Cmd, options *fargate.Options) ClusterConfigLoader
NewDeleteFargateProfileLoader will load config or use flags for 'eksctl delete fargateprofile'
func NewDeleteIAMServiceAccountLoader ¶
func NewDeleteIAMServiceAccountLoader(cmd *Cmd, sa *api.ClusterIAMServiceAccount, saFilter *filter.IAMServiceAccountFilter) ClusterConfigLoader
NewDeleteIAMServiceAccountLoader will load config or use flags for 'eksctl delete iamserviceaccount'
func NewDeletePodIdentityAssociationLoader ¶ added in v0.165.0
func NewDeletePodIdentityAssociationLoader(cmd *Cmd, options PodIdentityAssociationOptions) ClusterConfigLoader
NewDeletePodIdentityAssociationLoader will load config or use flags for `eksctl delete podidentityassociation`.
func NewGetAccessEntryLoader ¶ added in v0.167.0
func NewGetAccessEntryLoader(cmd *Cmd) ClusterConfigLoader
NewGetAccessEntryLoader loads config file and validates command for `eksctl get accessentry`.
func NewGetAddonsLoader ¶ added in v0.125.0
func NewGetAddonsLoader(cmd *Cmd) ClusterConfigLoader
NewGetAddonsLoader loads config file and validates command for `eksctl get addon`.
func NewGetClusterLoader ¶ added in v0.76.0
func NewGetClusterLoader(cmd *Cmd) ClusterConfigLoader
NewGetClusterLoader will load config or use flags for 'eksctl get cluster(s)'
func NewGetFargateProfileLoader ¶
func NewGetFargateProfileLoader(cmd *Cmd, options *fargate.Options) ClusterConfigLoader
NewGetFargateProfileLoader will load config or use flags for 'eksctl get fargateprofile'
func NewGetIAMServiceAccountLoader ¶
func NewGetIAMServiceAccountLoader(cmd *Cmd, options *irsa.GetOptions) ClusterConfigLoader
NewGetIAMServiceAccountLoader will load config or use flags for 'eksctl get iamserviceaccount'
func NewGetLabelsLoader ¶ added in v0.75.0
func NewGetLabelsLoader(cmd *Cmd, ngName string) ClusterConfigLoader
NewGetLabelsLoader loads config file and validates command for `eksctl get labels`.
func NewGetNodegroupLoader ¶ added in v0.75.0
func NewGetNodegroupLoader(cmd *Cmd, ng *api.NodeGroup) ClusterConfigLoader
NewGetNodegroupLoader loads config file and validates command for `eksctl get nodegroup`.
func NewGetPodIdentityAssociationLoader ¶ added in v0.165.0
func NewGetPodIdentityAssociationLoader(cmd *Cmd, pia *api.PodIdentityAssociation) ClusterConfigLoader
func NewMetadataLoader ¶
func NewMetadataLoader(cmd *Cmd) ClusterConfigLoader
NewMetadataLoader handles loading of clusterConfigFile vs using flags for all commands that require only metadata fields, e.g. `eksctl delete cluster` or `eksctl utils update-kube-proxy` and other similar commands that do simple operations against existing clusters
func NewScaleAllNodeGroupLoader ¶ added in v0.76.0
func NewScaleAllNodeGroupLoader(cmd *Cmd) ClusterConfigLoader
NewScaleAllNodeGroupLoader will load config or use flags for 'eksctl scale nodegroup'
func NewScaleNodeGroupLoader ¶
func NewScaleNodeGroupLoader(cmd *Cmd, ng *api.NodeGroupBase) ClusterConfigLoader
NewScaleNodeGroupLoader will load config or use flags for 'eksctl scale nodegroup'
func NewSetLabelLoader ¶ added in v0.77.0
func NewSetLabelLoader(cmd *Cmd, nodeGroupName string, labels map[string]string) ClusterConfigLoader
NewSetLabelLoader will load config or use flags for 'eksctl set labels'
func NewUpdateClusterVPCLoader ¶ added in v0.164.0
func NewUpdateClusterVPCLoader(cmd *Cmd, options UpdateClusterVPCOptions) ClusterConfigLoader
NewUpdateClusterVPCLoader will load config or use flags for 'eksctl utils update-cluster-vpc-config'.
func NewUpdateNodegroupLoader ¶ added in v0.55.0
func NewUpdateNodegroupLoader(cmd *Cmd) ClusterConfigLoader
NewUpdateNodegroupLoader will load config or use flags for 'eksctl update nodegroup'.
func NewUpdatePodIdentityAssociationLoader ¶ added in v0.165.0
func NewUpdatePodIdentityAssociationLoader(cmd *Cmd, options UpdatePodIdentityAssociationOptions) ClusterConfigLoader
NewUpdatePodIdentityAssociationLoader will load config or use flags for `eksctl update podidentityassociation`.
func NewUtilsAssociateIAMOIDCProviderLoader ¶
func NewUtilsAssociateIAMOIDCProviderLoader(cmd *Cmd) ClusterConfigLoader
NewUtilsAssociateIAMOIDCProviderLoader will load config or use flags for 'eksctl utils associal-iam-oidc-provider'
func NewUtilsEnableEndpointAccessLoader ¶
func NewUtilsEnableEndpointAccessLoader(cmd *Cmd, privateAccess, publicAccess bool) ClusterConfigLoader
NewUtilsEnableEndpointAccessLoader will load config or use flags for 'eksctl utils update-cluster-endpoints'.
func NewUtilsEnableLoggingLoader ¶
func NewUtilsEnableLoggingLoader(cmd *Cmd) ClusterConfigLoader
NewUtilsEnableLoggingLoader will load config or use flags for 'eksctl utils update-cluster-logging'
func NewUtilsKMSLoader ¶ added in v0.39.0
func NewUtilsKMSLoader(cmd *Cmd) ClusterConfigLoader
func NewUtilsPublicAccessCIDRsLoader ¶
func NewUtilsPublicAccessCIDRsLoader(cmd *Cmd) ClusterConfigLoader
NewUtilsPublicAccessCIDRsLoader loads config or uses flags for `eksctl utils set-public-access-cidrs <cidrs>`
func NewUtilsUpdateAuthenticationModeLoader ¶ added in v0.167.0
func NewUtilsUpdateAuthenticationModeLoader(cmd *Cmd) ClusterConfigLoader
NewUtilsUpdateAuthenticationModeLoader loads config or uses flags for `eksctl utils update-autentication-mode`
func NewZonalShiftConfigLoader ¶ added in v0.194.0
func NewZonalShiftConfigLoader(cmd *Cmd) ClusterConfigLoader
NewZonalShiftConfigLoader creates a new loader for zonal shift config.
type Cmd ¶
type Cmd struct { CobraCommand *cobra.Command FlagSetGroup *NamedFlagSetGroup Plan, Wait, Validate bool NameArg string ClusterConfigFile string ProviderConfig api.ProviderConfig ClusterConfig *api.ClusterConfig Include, Exclude []string }
Cmd holds attributes that are common between commands; not all commands use each attribute, but they can if needed
func (*Cmd) InitializeClusterConfig ¶ added in v0.112.0
InitializeClusterConfig validates and initializes the ClusterConfig.
func (*Cmd) NewCtl ¶
func (c *Cmd) NewCtl() (*eks.ClusterProvider, error)
NewCtl performs common defaulting and validation and constructs a new instance of eks.ClusterProvider, it may return an error if configuration is invalid or region is not supported
func (*Cmd) NewProviderForExistingCluster ¶ added in v0.67.0
NewProviderForExistingCluster is a wrapper for NewCtl that also validates that the cluster exists and is not a registered/connected cluster.
func (*Cmd) NewProviderForExistingClusterHelper ¶ added in v0.120.0
func (c *Cmd) NewProviderForExistingClusterHelper(ctx context.Context, standardizeClusterVersionFormat func(ctl *eks.ClusterProvider, meta *api.ClusterMeta) error) (*eks.ClusterProvider, error)
NewProviderForExistingClusterHelper allows formating cluster K8s version to a standard value before doing nodegroup validations and initializations
func (*Cmd) SetDescription ¶
SetDescription sets usage along with short and long descriptions as well as aliases
type ConfigLoaderBuilder ¶ added in v0.39.0
type ConfigLoaderBuilder struct { FlagsIncompatibleWithConfigFile sets.Set[string] FlagsIncompatibleWithoutConfigFile sets.Set[string] // contains filtered or unexported fields }
func NewConfigLoaderBuilder ¶ added in v0.39.0
func NewConfigLoaderBuilder() ConfigLoaderBuilder
func (*ConfigLoaderBuilder) Build ¶ added in v0.39.0
func (b *ConfigLoaderBuilder) Build(cmd *Cmd) ClusterConfigLoader
func (*ConfigLoaderBuilder) Validate ¶ added in v0.39.0
func (b *ConfigLoaderBuilder) Validate(f ValidateCmdFunc)
func (*ConfigLoaderBuilder) ValidateWithConfigFile ¶ added in v0.39.0
func (b *ConfigLoaderBuilder) ValidateWithConfigFile(f ValidateCmdFunc)
func (*ConfigLoaderBuilder) ValidateWithoutConfigFile ¶ added in v0.39.0
func (b *ConfigLoaderBuilder) ValidateWithoutConfigFile(f ValidateCmdFunc)
type CreateClusterCmdParams ¶
type CreateClusterCmdParams struct { WriteKubeconfig bool KubeconfigPath string AutoKubeconfigPath bool AuthenticatorRoleARN string SetContext bool AvailabilityZones []string InstallWindowsVPCController bool KopsClusterNameForVPC string Subnets map[api.SubnetTopology]*[]string WithoutNodeGroup bool Fargate bool DryRun bool EnableAutoMode bool CreateNGOptions CreateManagedNGOptions ConfigReader io.Reader }
CreateClusterCmdParams groups CLI options for the create cluster command.
type CreateManagedNGOptions ¶
CreateManagedNGOptions holds options for creating a managed nodegroup
type CreateNGOptions ¶ added in v0.42.0
type CreateNGOptions struct { InstallNeuronDevicePlugin bool InstallNvidiaDevicePlugin bool DryRun bool NodeGroupParallelism int }
CreateNGOptions holds options for creating a nodegroup
type FlagGrouping ¶
type FlagGrouping struct {
// contains filtered or unexported fields
}
FlagGrouping holds a superset of all flagsets for all commands
func (*FlagGrouping) New ¶
func (g *FlagGrouping) New(cmd *cobra.Command) *NamedFlagSetGroup
New creates a new group of flagsets for use with a subcommand
type GitOpsConfigLoader ¶
type GitOpsConfigLoader struct {
// contains filtered or unexported fields
}
GitOpsConfigLoader handles loading of ClusterConfigFile v.s. using CLI flags for GitOps-related commands.
func NewGitOpsConfigLoader ¶
func NewGitOpsConfigLoader(cmd *Cmd) *GitOpsConfigLoader
NewGitOpsConfigLoader creates a new ClusterConfigLoader which handles loading of ClusterConfigFile GitOps-related commands.
func (*GitOpsConfigLoader) Load ¶
func (l *GitOpsConfigLoader) Load() error
Load ClusterConfig or use CLI flags.
type NamedFlagSetGroup ¶
type NamedFlagSetGroup struct {
// contains filtered or unexported fields
}
NamedFlagSetGroup holds a single group of flagsets
func (*NamedFlagSetGroup) AddTo ¶
func (n *NamedFlagSetGroup) AddTo(cmd *cobra.Command)
AddTo mixes all flagsets in the given group into another flagset
type NodeGroupOptions ¶ added in v0.167.0
type NodeGroupOptions struct { CreateNGOptions CreateManagedNGOptions UpdateAuthConfigMap *bool SkipOutdatedAddonsCheck bool SubnetIDs []string }
NodeGroupOptions holds options for creating nodegroups.
type PodIdentityAssociationOptions ¶ added in v0.165.0
type PodIdentityAssociationOptions struct { // Namespace is the namespace the service account belongs to. Namespace string // ServiceAccountName is the name of the Kubernetes ServiceAccount. ServiceAccountName string }
PodIdentityAssociationOptions holds the options for deleting a pod identity association.
type UpdateClusterVPCOptions ¶ added in v0.164.0
type UpdateClusterVPCOptions struct { // PrivateAccess configures access for the private endpoint. PrivateAccess bool // PublicAccess configures access for the public endpoint. PublicAccess bool // PublicAccessCIDRs configures the public access CIDRs. PublicAccessCIDRs []string // ControlPlaneSubnetIDs configures the subnets for the control plane. ControlPlaneSubnetIDs []string // ControlPlaneSecurityGroupIDs configures the security group IDs for the control plane. ControlPlaneSecurityGroupIDs []string }
UpdateClusterVPCOptions holds the options for updating the VPC config.
type UpdatePodIdentityAssociationOptions ¶ added in v0.165.0
type UpdatePodIdentityAssociationOptions struct { PodIdentityAssociationOptions // RoleARN is the IAM role ARN to be associated with the pod. RoleARN string }
UpdatePodIdentityAssociationOptions holds the options for updating a pod identity association.
type ValidateCmdFunc ¶ added in v0.39.0
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
fakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
filterfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |