feat(cloudprovider): NodeClass refuses another provider's kind #32
Loading…
Reference in a new issue
No description provided.
Delete branch "foreign-nodeclass"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Karpenter core's pricing controller calls GetInstanceTypes for every NodePool, so on upsidian-v2-dev each provider errors every cycle on the other's pools. NodeClass now refuses a ref whose Kind is not T's with ErrForeignNodeClass; the example's GetInstanceTypes answers such a pool with nil, nil. The group is not compared: NodeClass knows only T's type name.
Providers: in GetInstanceTypes,
if errors.Is(err, cloudprovider.ErrForeignNodeClass) { return nil, nil }after the NodeClass call. A ref without Kind is now foreign too; core's CRD requires Kind.🤖 Generated with Claude Code