options

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToContext

func ToContext(ctx context.Context, opts *Options) context.Context

Types

type Options

type Options struct {
	ClusterName                    string
	ClusterEndpoint                string // => APIServerName in bootstrap, except needs to be w/o https/port
	VMMemoryOverheadPercent        float64
	ClusterID                      string
	KubeletClientTLSBootstrapToken string // => TLSBootstrapToken in bootstrap (may need to be per node/nodepool)
	SSHPublicKey                   string // ssh.publicKeys.keyData => VM SSH public key // TODO: move to v1beta1.AKSNodeClass?

	NetworkPlugin     string // => NetworkPlugin in bootstrap
	NetworkPolicy     string // => NetworkPolicy in bootstrap
	NetworkPluginMode string // => Network Plugin Mode is used to control the mode the network plugin should operate in. For example, "overlay" used with --network-plugin=azure will use an overlay network (non-VNET IPs) for pods in the cluster. Learn more about overlay networking here: https://learn.microsoft.com/en-us/azure/aks/azure-cni-overlay?tabs=kubectl#overview-of-overlay-networking
	NetworkDataplane  string

	NodeIdentities          []string // => Applied onto each VM
	KubeletIdentityClientID string   // => Flows to bootstrap and used in drift
	VnetGUID                string   // resource guid used by azure cni for identifying the right vnet
	SubnetID                string   // => VnetSubnetID to use (for nodes in Azure CNI Overlay and Azure CNI + pod subnet; for for nodes and pods in Azure CNI), unless overridden via AKSNodeClass

	ProvisionMode              string
	NodeBootstrappingServerURL string
	UseSIG                     bool   // => UseSIG is true if Karpenter is managed by AKS, false if it is a self-hosted karpenter installation
	SIGAccessTokenServerURL    string // => SIGAccessTokenServerURL used to access SIG, not set if it is a self-hosted karpenter installation
	SIGAccessTokenScope        string // => SIGAccessTokenScope is the scope for the auxiliary token, not set if it is a self-hosted karpenter installation
	SIGSubscriptionID          string
	NodeResourceGroup          string
	// contains filtered or unexported fields
}

func FromContext

func FromContext(ctx context.Context) *Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *coreoptions.FlagSet)

func (*Options) GetAPIServerName

func (o *Options) GetAPIServerName() string

func (*Options) Parse

func (o *Options) Parse(fs *coreoptions.FlagSet, args ...string) error

func (*Options) ToContext

func (o *Options) ToContext(ctx context.Context) context.Context

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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