-
v0.8.0 Stable
released this
2026-12-05 11:00:47 +00:00 | 0 commits to main since this releaseAdded
config.Loadreads<PREFIX>_API_URL, the address of the cloud API, intoConfig.APIURL; unset, it stays empty and the provider keeps its default. The value must be https, or plain http to a loopback IP address such as a proxy beside the controller, and carries no user info, query or fragment.config.EnvAPIURLnames the variable.cloudprovider.Launchrecords one failed create with the codeCodeNoneAvailable(none_available) when it tries no candidate, such as when every offering is marked unavailable. A sold-out pool used to record no create at all. The create-duration histogram still counts tries only.metrics.Metrics.RecordCreateUntriedcounts a failed create that never reached the cloud, without observing a duration.
Changed
config.Loadrefuses anAPI_SERVER_URLthat carries user info, such ashttps://user:password@k8s:6443, which it used to accept: a controller given one stops at start with an error naming the variable. Remove the user info from the address.
Fixed
- An invalid
API_SERVER_URLcarrying user info is no longer quoted inconfig.Load's error, where its password reached the controller's log.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
v0.7.0 Stable
released this
2026-12-01 11:37:56 +00:00 | 9 commits to main since this releaseChanged
offering,overheadandtypenamemove undercatalogue:catalogue/offering,catalogue/overheadandcatalogue/typename.operatorbecomesconfig, the configuration a controller starts with. Its HTTP client andSecretmove tocloudapi, the client of a cloud's API and its credential:NewHTTPClient,NewTransport,BearerAuth,SecretandNewSecret.- The join token release moves into
bootstrap/tokenasReleaseController,NewReleaseController,ReleasePredicateandReleaser. apisbecomesnodeclass, which holds only the node class parts controller-gen consumes.controllers/nodeclaimhashnests asnodeclass/nodeclaimhash, andObservedGenerationandCurrentResolvedmove tonodeclass/resolved, the latter asresolved.Current.- The orphan sweep moves to
ownership/orphan.
Deprecated
offering,overheadandtypenameforward to theircatalogue/paths for one release:go fix ./...moves an importer, excepttypename.ErrForeignandtypename.ErrProvider, variables, which are renamed by hand.operatorforwards toconfigandcloudapifor one release:go fix ./...moves most uses. A call that nests other forwarded calls in its arguments, such asoperator.Load(operator.Spec{Extra: []operator.Setting{operator.SecretSetting(...)}}), makesgo fixskip fixes as conflicts on every run: rewrite the outeroperator.Load(toconfig.Load(by hand, andgo fixfinishes the rest.controllers/jointokenforwards tobootstrap/tokenfor one release:go fix ./...moves an importer.apisandcontrollers/nodeclaimhashforward to their new paths for one release:go fix ./...moves an importer, except calls that infer a type argument,apis.CurrentResolved(...)andnodeclaimhash.NewController[T](...), which are renamed by hand.controllers/orphanforwards toownership/orphanfor one release:go fix ./...moves an importer, exceptErrRefused, a variable, which is renamed by hand.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
v0.6.0 Stable
released this
2026-11-30 20:32:57 +00:00 | 23 commits to main since this releaseAdded
- Package
reservedaddrreads the reserved addresses a NodeClaim names in the annotationskarpenter.sarak.sh/reserved-ipv4andkarpenter.sarak.sh/reserved-ipv6, refuses a value that is not one address of its family, and states the contract every provider keeps for them: an address that cannot be attached fails the launch, and one held by another machine of the cluster whose NodeClaim names it is taken by the provider'sStrategy,MoveorAwaitRelease, whichStrategy.Takedecides.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Package
-
v0.5.0 Stable
released this
2026-11-30 14:59:52 +00:00 | 31 commits to main since this releaseAdded
cloudprovider.NoneLaunchedtells aLaunchthat launched no candidate from any failed try, andcloudprovider.NoneAvailableEventbuilds the WarningNoneAvailableevent for it on the NodeClaim, with the message bounded to 1024 bytes and deduplicated by the NodeClaim's UID.cloudprovider.Launcher.RecordCreaterecords a createLaunchdoes not run, such as an adoption, with the codesLaunchuses, andCodeRefused,CodeNoInstanceandCodeOthername the fallback codes.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
v0.4.0 Stable
released this
2026-11-30 12:31:21 +00:00 | 33 commits to main since this releaseAdded
cloudprovider.Launcher.Codenames the code a failed try is recorded under, so a provider keeps its own error classes ininstance_create_errors_total; an empty answer falls back torefused,no_instanceandother.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
v0.3.0 Stable
released this
2026-11-30 09:52:13 +00:00 | 36 commits to main since this releaseAdded
ownership.Hashedencodes a Claim as fixed-length tags of a prefix and theownership.Hashof each value, for a cloud whose tags cannot holdkey=valuepairs, and reads ownership and the NodeClaim hash back from them. The NodeClaim and NodePool are hashed within the cluster, so clusters sharing an account never share a tag;orphan.Sweeper.WithNodeClaimKey(ownership.ScopedKey(cluster))makes the sweep match such an instance to its NodeClaim.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
v0.2.0 Stable
released this
2026-11-28 22:04:11 +00:00 | 40 commits to main since this releaseAdded
bootstrap.Config.InstanceIDCommandreads the instance ID on the instance from a one-line shell command, set in place ofInstanceIDURL, for a cloud without a metadata service.
Fixed
- The generated join stops, before installing k0s, when the metadata service returns an instance ID or zone holding whitespace, which would otherwise split the kubelet arguments.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
v0.1.0 Stable
released this
2026-11-28 20:32:40 +00:00 | 44 commits to main since this releaseAdded
- Package
apiswith the bootstrap, user data, secret reference and kubelet reservation types shared by the node class CRDs, and helpers that read resolved entries against a condition's observed generation. A secret reference'snamespace,nameandkeymust each be non-empty. - The
bootstrap/tokenpackage mints k0s worker join tokens from a bootstrap token Secret or a k0smotron JoinTokenRequest. Releasing a NodeClaim's bootstrap token deletes its Secrets inkube-systemthrough an uncached reader given withWithSecretReader, so a provider needs list and delete on Secrets there. - The
bootstrappackage renders the cloud-init multipart user data of a k0s worker join: a boothook that writes the join token, node name and register taints tojoin.envonce, the node class'sbeforeJoin,joinandafterJoinparts, a generated join fork0sVersionunlessjoinreplaces it, and the provider's own parts. The provider sets thejoin.envpath, the metadata URLs of the instance ID and, optionally, the zone (IPv6 hosts included), the provider ID scheme and the most bytes the cloud stores. - The generated join retries the metadata service, fails before installing k0s when it returns an empty or blank instance ID or zone or the k0s install script cannot be fetched, and registers the node as
<scheme>://<instance ID>, or<scheme>://<zone>/<instance ID>when a zone URL is set. Renderer.UserDatarefuses ajoin.envvalue holding a line break, a node name that is not a DNS-1123 subdomain, and a document above the size limit;NewRendererrefuses a provider part whose filename or content type is malformed.bootstrap.ResolvePartsreads a node class's Secret parts live through the reader it is given, andbootstrap.Referencingfinds the node classes whose parts read a given Secret, for a metadata-only Secret watch.bootstrap.Joinerresolves the parts, mints a join token and renders the user data, releasing the token when the document is refused.- Package
catalogue: an instance type cache over a provider'sSource, read whole or zone by zone, refreshed after a TTL by one fetch at a time, serving the last good result of a failing fetch or zone until a retry interval passes, and listing per node class with its zones, capacity, overhead and the offerings marked unavailable; each listed type's zone and capacity type requirements hold the values of its listed offerings only. - The
cloudproviderpackage gives a provider's CloudProvider the shared repair policies, a node class lookup that reports a missing node class asNodeClassNotReady,CreateErrormapping a failed create onto Karpenter's error types and a Launched reason (nodenameerrors included),Launch, configured by aLauncher, that tries ranked offerings in order, marks refused ones unavailable, runs the cleanup of each attempt that created no instance, and turns a panic in an attempt into its error,ErrNoInstanceon every error that says no instance was created,Hydratefor the labels and capacity of a launched NodeClaim,HydrateAtfor those of an instance found running at aPlacement, its type in the catalogue or not,FirstDriftfor an ordered drift table, andCleanupContextfor undoing a failed create. - The
apppackage runs a provider's controller:Runbuilds Karpenter's operator, wires the provider's CloudProvider into the core controllers, adds the provider's own controllers, stops on SIGTERM or SIGINT, and returns every failure as an error. - The
controllers/nodeclaimhashpackage stamps NodeClaims with their node class hash and hash version, and itsHashSpechashes a node class spec. - The
controllers/orphanpackage deletes the cluster's instances whose NodeClaim is gone or holds another instance. It refuses a sweep when no instance belongs to an existing NodeClaim, and per sweep deletes at most half of the cluster's instances old enough to judge, rounded down but at least one, oldest first. - The
controllers/jointokenpackage releases a NodeClaim's join token once it registers or is deleted. internal/exampleis a worked example of a provider built on kit, against an in-memory cloud.cloudprovider.NodeClassrefuses a reference to another group or kind withErrForeignNodeClass, so a provider'sGetInstanceTypescan answer another provider's node pool with no instance types and no error.cloudprovider.Launcherrecords each launch try as a create in itsMetrics: result, duration and, for a failure, the coderefused,no_instanceorother.metrics.WithHelpsets the HELP text of one series, keyed by ametrics.Seriesconstant, so a provider keeps its existing help texts.- Package
metricsregisters and records the series every provider emits (create, delete, drift, instance type cache and price, image resolution errors, orphan deletions and refused sweeps) underkarpenter_<provider>_, with the created resource's noun configurable. - The
nodenamepackage renders node name templates against a node class, a NodeClaim and the provider's own fields, where a label a template reads and the object lacks is an error. It picks a random rendered name that no Node, no provider instance and no launch in flight holds, and refuses a name released since the launch began listing.nodename.Validatefails what fails every launch, and checks the DNS label shape only of a template that cannot vary per launch, so a pass says nothing about the names real launches get. - The
apis.NodeNamestype carries thenodeNameTemplatesfield for a provider to embed inline in its node class spec. - The
offeringpackage: a TTL cache of offerings a cloud refused, keyed by instance type, zone and capacity type, and a deterministic cheapest-first ranking of launchable offerings. - Package
operatorloads the environment settings every provider shares, withCLUSTER_NAMErequired to be a valid Kubernetes label value, builds the API HTTP client with fixed transport limits, redacts secrets, and refuses to start against the wrong cluster. - Package
overhead: the kube-reserved, system-reserved and eviction overhead of an instance type from a node class'sKubeletConfiguration, with the kubelet's defaults and percentage arithmetic, and the allocatable that leaves, never below zero.Forcaps the overhead per resource at the capacity, filling kube-reserved, then system-reserved, then the eviction threshold, so Karpenter's own allocatable matchesAllocatable; a resource absent from the capacity has no overhead entry. - The
ownershippackage marks and recognises a cluster's instances by thekarpenter.sh/*keys, as labels or askey=valuetags. - The
provideridpackage formats and parses<scheme>://<id>provider IDs. - Package
typename: instance type names as<provider>-<native name>(vultr-voc-c-4c-8gb-75s-amd), so a NodeClaim's type shows which cloud it comes from, and the reverse for API calls. - Reusable Forgejo workflows for the providers:
go-ci.yaml(flake checks, builds, stale-generation checks, changelog validation),go-security.yaml(govulncheck) andgo-release.yaml(changelog-driven release commit, per-arch image and index, chart, then release and tag), each configured by its inputs.go-release.yamlis called by itshttps://URL from a job withruns-onandenable-openid-connect, which is the form that gives its jobs an OIDC token for the registry.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Package