Azure / karpenter-provider-azure

AKS Karpenter Provider
Apache License 2.0
394 stars 65 forks source link

panic: getting VNET GUID #556

Open sybnex opened 3 weeks ago

sybnex commented 3 weeks ago

Version

Karpenter Version: v0.7.0 Kubernetes Version: v1.29.9

Expected Behavior

I'm trying to install karpenter the first time and ran into the error below. for me it looks like the building of the url seems a bit wrong.

Actual Behavior

Pod is crashing with CrashLoopBackOff

Steps to Reproduce the Problem

Config:

VNET_SUBNET_ID="/subscriptions/*****/resourceGroups/*****/providers/Microsoft.Network/virtualNetworks/*****/subnets/*****"

Resource Specs and Logs

panic: getting VNET GUID: GET https://management.azure.com/subscriptions//subscriptions/*****/resourceGroups/*****/providers/Microsoft.Network/virtualNetworks/*****
--------------------------------------------------------------------------------
RESPONSE 400: 400 Bad Request
ERROR CODE: InvalidSubscriptionId
--------------------------------------------------------------------------------
{
  "error": {
    "code": "InvalidSubscriptionId",
    "message": "The provided subscription identifier 'subscriptions' is malformed or invalid."
  }
}
--------------------------------------------------------------------------------

Community Note