Documentation ¶
Index ¶
- Constants
- Variables
- type AZClient
- type AgentPoolsAPI
- type Instance
- type PolicySetHeaders
- type Provider
- func (p *Provider) Create(ctx context.Context, nodeClaim *karpenterv1.NodeClaim) (*Instance, error)
- func (p *Provider) Delete(ctx context.Context, apName string) error
- func (p *Provider) Get(ctx context.Context, id string) (*Instance, error)
- func (p *Provider) List(ctx context.Context) ([]*Instance, error)
Constants ¶
View Source
const ( LabelMachineType = "kaito.sh/machine-type" NodeClaimCreationLabel = "kaito.sh/creation-timestamp" // use self-defined layout in order to satisfy node label syntax CreationTimestampLayout = "2006-01-02T15-04-05Z" )
View Source
const (
RPReferer = "rp.e2e.ig.e2e-aks.azure.com"
)
Variables ¶
View Source
var ( KaitoNodeLabels = []string{"kaito.sh/workspace", "kaito.sh/ragengine"} AgentPoolNameRegex = regexp.MustCompile(`^[a-z][a-z0-9]{0,11}$`) )
Functions ¶
This section is empty.
Types ¶
type AZClient ¶
type AZClient struct {
// contains filtered or unexported fields
}
func NewAZClient ¶
func NewAZClientFromAPI ¶
func NewAZClientFromAPI( agentPoolsClient AgentPoolsAPI, ) *AZClient
type AgentPoolsAPI ¶
type AgentPoolsAPI interface { BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string, parameters armcontainerservice.AgentPool, options *armcontainerservice.AgentPoolsClientBeginCreateOrUpdateOptions) (*runtime.Poller[armcontainerservice.AgentPoolsClientCreateOrUpdateResponse], error) Get(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string, options *armcontainerservice.AgentPoolsClientGetOptions) (armcontainerservice.AgentPoolsClientGetResponse, error) BeginDelete(ctx context.Context, resourceGroupName string, resourceName string, agentPoolName string, options *armcontainerservice.AgentPoolsClientBeginDeleteOptions) (*runtime.Poller[armcontainerservice.AgentPoolsClientDeleteResponse], error) NewListPager(resourceGroupName string, resourceName string, options *armcontainerservice.AgentPoolsClientListOptions) *runtime.Pager[armcontainerservice.AgentPoolsClientListResponse] }
type Instance ¶
type Instance struct { Name *string // agentPoolName or instance/vmName State *string ID *string ImageID *string Type *string CapacityType *string SubnetID *string Tags map[string]*string Labels map[string]string }
Instance a struct to isolate weather vm or vmss
type PolicySetHeaders ¶ added in v0.2.0
PolicySetHeaders sets http header
Click to show internal directories.
Click to hide internal directories.