feat(cluster-api): update capmox to v0.9.2 and in-cluster IPAM to v1.1.1 (#5243)

## What this PR does

Updates the two vendored Cluster API providers of the Proxmox substrate:

- `capi-providers-infraprovider-proxmox`: capmox **v0.7.7 → v0.9.2**
- `capi-providers-ipam-in-cluster`: in-cluster IPAM **v1.0.3 → v1.1.1**

Both are refreshed with the existing `make components` target (pinned
SHA-256 of the release assets, `gzip -n`), and the ConfigMap name and
`spec.version` move with them. The charts that render capmox objects
(`kubernetes`, `kubernetes-nodes`) are not touched.

A second commit raises the capmox manager memory limit from 256Mi to
512Mi (see "Found while testing").

Why:

- v0.9.1 and v0.9.2 are security roll-ups (32 Go vulnerabilities in
dependencies between them), and v0.9.2 fixes several provisioning races:
VMID collisions, retries of the bootstrap ISO injection, waiting for the
boot-disk resize and for active Proxmox tasks before changing a VM.
- v0.8 introduced the `v1alpha2` API (CAPI `v1beta2` contract). It is
the base for the next Proxmox changes (per-namespace hypervisor
credentials, zones).

**Depends on #4902.** capmox v0.9 is built against Cluster API v1.12 and
declares the `v1beta2` contract; the in-cluster IPAM v1.1 needs CAPI ≥
v1.11. `main` still ships core v1.10.1, so this must not merge before
#4902 (core v1.14.4, capi-operator v0.30.0). It is deliberately not
stacked on that branch. Both Proxmox package sources now depend on
`cozystack.capi-provider-core`, so a release carrying both PRs rolls out
core first. The comments in both `providers.yaml` now say what they
need.

### What changes for users

- capmox serves `v1alpha1` and `v1alpha2`; `v1alpha2` becomes the
storage version. Existing objects are converted by the provider's
webhook; the charts keep writing `v1alpha1`, which is still served.
Moving the charts to `v1alpha2` is a separate follow-up.
- `kubectl get proxmoxcluster` (no version) now returns `v1alpha2`,
which has no `status.ready`: tooling that reads it has to use the
`Ready` condition or ask for `v1alpha1` explicitly.
- Read through `v1alpha1`, an unset `spec.providerID` comes back as `""`
(the `v1alpha2` field is a plain string). Nothing in Cluster API reads
that version.
- capmox upstream documents v0.7 → v0.8 → v0.9 as the supported path;
the direct v0.7.7 → v0.9.2 jump is what was tested below.
- capi-operator v0.30 (from #4902) accepts exactly one ConfigMap per
provider selector. The chart renames the ConfigMap with the version, so
a helm upgrade removes the old one; a hand-made install has to delete
it, otherwise the operator stops upgrading every provider.

### Tested

On a live management cluster with Cluster API core v1.13.7 (the #4902
versions), three Proxmox-backed tenant clusters (Talos and Kairos
workers, Kamaji control planes), Proxmox VE 9.2:

- Package tests: `hack/capi-provider-components_test.bats` 6/6;
helm-unittest `core/platform` 285/285, `apps/kubernetes` 367/367,
`apps/kubernetes-nodes` 243/243.
- Before the upgrade, every live `ProxmoxCluster`,
`ProxmoxMachineTemplate` and `ProxmoxMachine` (16 objects) was
round-tripped through the v0.9.2 conversion functions (`v1alpha1 →
v1alpha2 → v1alpha1`): specs unchanged apart from the `providerID` note
above.
- Upgrade IPAM then capmox through capi-operator: both
`ProviderUpgraded`, CRD storage `v1alpha2`, all three `ProxmoxCluster`
Ready, every existing `ProxmoxMachine` kept its VMID and provider ID, no
MachineDeployment rollout, every `IPAddressClaim` bound, no reconcile
errors.
- Every tenant release re-applied through `v1alpha1` with a server-side
dry run (conversion, webhooks, template immutability): accepted.
- Live Proxmox checks (worker joined, machineconfig, guards, tenant
apiserver and nodes): 23/23 on two tenants.
- One worker created and deleted end to end, twice per version (seconds
from the scale-up; Proxmox API calls are approximate, they include the
other tenants' reconciles):

| | v0.7.7 run 1 | v0.7.7 run 2 | v0.9.2 run 1 | v0.9.2 run 2 |
|---|---|---|---|---|
| `InfrastructureReady` (VM cloned, configured, started) | 131 s ¹ | 11
s | 26 s | 11 s |
| `NodeReady` (Talos booted and joined) | 193 s ¹ | 89 s | 94 s | 89 s |
| delete → Machine gone (VM destroyed) | 11 s | 16 s | 16 s | 16 s |
| Proxmox API calls by the capmox token | 255 | 181 | 140 | 168 |

¹ about two minutes of this run went on waiting for the static IP from
the in-cluster IPAM (v1.0.3).

What we got: no latency regression. In the warm runs both versions take
the same 11 s to a running VM, 89 s to a Ready node and 16 s to a
destroyed VM; node readiness is dominated by the Talos boot, not by the
provider. v0.9.2 made fewer Proxmox API calls per worker (140–168 vs
181–255). The count is approximate, and two runs per version is a small
sample. v0.9.2 logs one transient `VM … is running - destroy failed` per
deletion, and the deletion still completes in the same 16 s.

### Retest on Cluster API v1.14.4

The same management cluster now runs the #4902 head: Cluster API core
and kubeadm bootstrap v1.14.4, cluster-api-operator v0.30.0, Talos
bootstrap v0.6.13, with capmox v0.9.2 and in-cluster IPAM v1.1.1 from
this PR. The capmox bump itself was applied while the cluster was still
on core v1.13.7 (table above); the core v1.14.4 upgrade came after it,
so the upgrade step was not repeated on v1.14.4.

- All three `ProxmoxCluster`s are Ready and every `Machine` is Running
(6 workers). The capmox manager has 0 restarts over 5 days, including
the move to core v1.14.4.
- One worker created and deleted end to end, twice, on the
`kubernetes-px` tenant (cluster-autoscaler paused during the runs):

| | v1.14.4 run 1 | v1.14.4 run 2 |
|---|---|---|
| `InfrastructureReady` | 11 s | 26 s |
| `NodeReady` | 94 s | 99 s |
| delete → Machine gone | 16 s | 16 s |

  The timings match the v1.13.7 runs above (11-26 s, 89-94 s, 16 s).
- capmox logged the one `VM … is running - destroy failed` per deletion
already noted above, plus a transient `vm not initialized` right after
creation. Both cleared on their own.

Not repeated on v1.14.4: the conversion round trip and the server-side
dry runs of the tenant releases. capmox v0.9's compatibility table lists
only Cluster API v1.11 and v1.12, so v1.14 is outside what upstream
documents; the runs above are the evidence for it.

### Found while testing (not caused by this bump)

capmox reads the bootstrap data Secret through the controller-runtime
cached client (`MachineScope.GetBootstrapSecret`, the same in v0.7.7 and
v0.9.2), so the first machine it provisions starts a cluster-wide Secret
informer. On the test cluster that is 1236 Secrets / 87 MB of JSON (706
Helm release Secrets), and the manager hits the 256Mi limit set in
`providers.yaml`: both v0.7.7 and v0.9.2 were `OOMKilled` while
provisioning (working set up to 232–255 MiB before the kill). Each kill
restarts the controller and provisioning resumes, so the runs above
still completed. The second commit of this PR raises the manager limit
to 512Mi (request unchanged at 64Mi), twice the last measured working
set. With 512Mi, a provisioning run on the same cluster peaked at 246
MiB with no restarts. The proper fix is to read that Secret with the API
reader in capmox: ionos-cloud/cluster-api-provider-proxmox#958 (open,
review requested). The limit can come back down once that is released.

### Downstream repositories

- [ ] No downstream repository is affected by this change
- [x] [cozystack/website](https://github.com/cozystack/website) -
follow-up: cozystack/website#792
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack)
- follow-up:

cozystack/website#792 adds the Proxmox substrate page to `next/` with
these versions (it was only in `v1.7/`) and two troubleshooting rows
from the findings above; it stays a draft until this PR is merged.
Terraform and Ansible were not checked against the trigger map, so those
boxes are left for a maintainer.



<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->

## Summary by CodeRabbit

* **New Features**
* Added IPv6 prefix pools for cluster-wide and namespace-scoped
allocation.
  * Added configurable IP address reuse grace periods to IP pools.
* **Improvements**
* Updated the Proxmox infrastructure provider to v0.9.2 and the
in-cluster IPAM provider to v1.1.1, with support for the v1beta2 Cluster
API contract.
* Increased the Proxmox provider manager’s memory limit and enabled the
IPAM provider to run on master and control-plane nodes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Aleksei Sviridkin authored and GitHub committed 2026-12-03 17:38:07 +03:00
commit 3d001ed37d
15 files changed
+3078 -78

No files matched your search

@@ -20,6 +20,7 @@ spec:
dependsOn:
- cozystack.networking
- cozystack.capi-operator
- cozystack.capi-provider-core
- cozystack.capi-provider-ipam-in-cluster
components:
- name: capi-providers-infraprovider-proxmox
@@ -18,6 +18,7 @@ spec:
dependsOn:
- cozystack.networking
- cozystack.capi-operator
- cozystack.capi-provider-core
components:
- name: capi-providers-ipam-in-cluster
path: system/capi-providers-ipam-in-cluster
@@ -28,6 +28,9 @@ tests:
- contains:
path: spec.variants[0].dependsOn
content: cozystack.capi-operator
- contains:
path: spec.variants[0].dependsOn
content: cozystack.capi-provider-core
- contains:
path: spec.variants[0].dependsOn
content: cozystack.networking
@@ -55,6 +58,9 @@ tests:
- contains:
path: spec.variants[0].dependsOn
content: cozystack.capi-operator
- contains:
path: spec.variants[0].dependsOn
content: cozystack.capi-provider-core
- notContains:
path: spec.variants[0].dependsOn
content: cozystack.capi-provider-infra-proxmox
@@ -1,12 +1,12 @@
export NAME=capi-providers-infraprovider-proxmox
export NAMESPACE=cozy-cluster-api
CAPMOX_VERSION=v0.7.7
CAPMOX_VERSION=v0.9.2
CAPMOX_URL=https://github.com/ionos-cloud/cluster-api-provider-proxmox/releases/download/$(CAPMOX_VERSION)
# SHA-256 of the two release assets at CAPMOX_VERSION. A release tag can be moved;
# these cannot. Bumping the version means recording the new sums here.
CAPMOX_SHA256_COMPONENTS=831e3debeb677e9a73183dc858e9fd673f4346c18dafeb4cddee62823c059589
CAPMOX_SHA256_METADATA=66a57b6865ed68cf4edf460dfa4c75fa7ff80f27e519a9a062cafceeabb88500
CAPMOX_SHA256_COMPONENTS=6817322435b42cfda07a8f94006bacb709afb83445ce24545af253c7904755d8
CAPMOX_SHA256_METADATA=df2916a79503ac053f6a9866a8de025e780e24d6d472f00f59f84898b5a1c572
include ../../../hack/package.mk
@@ -2,24 +2,30 @@
apiVersion: clusterctl.cluster.x-k8s.io/v1alpha3
kind: Metadata
releaseSeries:
- major: 0
minor: 1
contract: v1beta1
- major: 0
minor: 2
contract: v1beta1
- major: 0
minor: 3
contract: v1beta1
- major: 0
minor: 4
contract: v1beta1
- major: 0
minor: 5
contract: v1beta1
- major: 0
minor: 6
contract: v1beta1
- major: 0
minor: 7
contract: v1beta1
- major: 0
minor: 1
contract: v1beta1
- major: 0
minor: 2
contract: v1beta1
- major: 0
minor: 3
contract: v1beta1
- major: 0
minor: 4
contract: v1beta1
- major: 0
minor: 5
contract: v1beta1
- major: 0
minor: 6
contract: v1beta1
- major: 0
minor: 7
contract: v1beta1
- major: 0
minor: 8
contract: v1beta2
- major: 0
minor: 9
contract: v1beta2
@@ -11,5 +11,5 @@ cannot drift apart. `make components` in this package rewrites the vendored
files, not this value.
*/}}
{{- define "capi-providers-infraprovider-proxmox.version" -}}
v0.7.7-infraprovider-proxmox
v0.9.2-infraprovider-proxmox
{{- end -}}
@@ -5,10 +5,9 @@ metadata:
spec:
# https://github.com/ionos-cloud/cluster-api-provider-proxmox
#
# Pinned to the v0.7 series. v0.8 moves capmox to the v1beta2 contract and
# stores v1alpha2. v1alpha1 is still served through conversion, but that has
# not been tested with the kubernetes-nodes templates, and in-cluster IPAM
# should move to v1.1 at the same time. Bump the two together.
# v0.9 declares the v1beta2 Cluster API contract and is built against Cluster
# API v1.12, so it needs capi-providers-core >= v1.12 and the in-cluster IPAM
# provider >= v1.1.0. Bump this together with those, not on its own.
version: {{ include "capi-providers-infraprovider-proxmox.version" . }}
configSecret:
name: {{ .Values.credentialsSecretName | quote }}
@@ -24,7 +23,11 @@ spec:
resources:
limits:
cpu: 500m
memory: 256Mi
# capmox caches every Secret in the cluster once it provisions a
# machine; 256Mi was OOMKilled with 1236 Secrets (87 MB as JSON).
# Can come back down once a capmox release includes
# https://github.com/ionos-cloud/cluster-api-provider-proxmox/pull/958
memory: 512Mi
requests:
cpu: 10m
memory: 64Mi
@@ -1,12 +1,12 @@
export NAME=capi-providers-ipam-in-cluster
export NAMESPACE=cozy-cluster-api
CAIP_VERSION=v1.0.3
CAIP_VERSION=v1.1.1
CAIP_URL=https://github.com/kubernetes-sigs/cluster-api-ipam-provider-in-cluster/releases/download/$(CAIP_VERSION)
# SHA-256 of the two release assets at CAIP_VERSION. A release tag can be moved;
# these cannot. Bumping the version means recording the new sums here.
CAIP_SHA256_COMPONENTS=e3247a458e66e1eeca8bda05a6dfaa882dae29785072f41e7cf071ff8c70f695
CAIP_SHA256_METADATA=dc1ebd036645e0e87e99dab275c312cf8f8f38aa68a12bc01ad2b1dd1d6bf20e
CAIP_SHA256_COMPONENTS=8a0656a39d9e85ee07219702254669b7e543d09957e86315f3d20b4bf6aebfa5
CAIP_SHA256_METADATA=eb280ab315f478324973a7b65739a655d57e3c22a1356efd9f5127534d3502b7
include ../../../hack/package.mk
@@ -210,6 +210,19 @@ spec:
spec:
description: InClusterIPPoolSpec defines the desired state of InClusterIPPool.
properties:
addressReuseGracePeriodSeconds:
description: |-
AddressReuseGracePeriodSeconds is the duration in seconds for which an
IP address should be kept reserved after being released, preventing
immediate reuse. This helps avoid IP conflicts during rolling upgrades
where old and new nodes may briefly coexist, and prevents ARP cache
issues on network switches.
If not set or set to 0, addresses are available for reuse immediately.
During the grace period the IPAddress and claim deletions are held, the downstream consumers using foreground cascading
deletion through the claim will see deletion of upstream resources delayed by up to AddressReuseGracePeriodSeconds.
format: int32
minimum: 0
type: integer
addresses:
description: |-
Addresses is a list of IP addresses that can be assigned. This set of
@@ -287,6 +300,157 @@ spec:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.2
labels:
cluster.x-k8s.io/provider: ipam-in-cluster
clusterctl.cluster.x-k8s.io/move-hierarchy: ""
name: globalinclusterprefixpools.ipam.cluster.x-k8s.io
spec:
conversion:
strategy: Webhook
webhook:
clientConfig:
service:
name: capi-ipam-in-cluster-webhook-service
namespace: capi-ipam-in-cluster-system
path: /convert
conversionReviewVersions:
- v1
group: ipam.cluster.x-k8s.io
names:
categories:
- cluster-api
kind: GlobalInClusterPrefixPool
listKind: GlobalInClusterPrefixPoolList
plural: globalinclusterprefixpools
singular: globalinclusterprefixpool
scope: Cluster
versions:
- additionalPrinterColumns:
- description: List of prefixes to allocate sub-prefixes from
jsonPath: .spec.prefixes
name: Prefixes
type: string
- description: Count of allocatable sub-prefixes in the pool
jsonPath: .status.ipAddresses.total
name: Total
type: integer
- description: Count of unallocated sub-prefixes in the pool
jsonPath: .status.ipAddresses.free
name: Free
type: integer
- description: Count of allocated sub-prefixes in the pool
jsonPath: .status.ipAddresses.used
name: Used
type: integer
name: v1alpha2
schema:
openAPIV3Schema:
description: |-
GlobalInClusterPrefixPool is the Schema for the global inclusterprefixpools API.
This pool type is cluster scoped. IPAddressClaims can reference
pools of this type from any namespace.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: InClusterPrefixPoolSpec defines the desired state of InClusterPrefixPool.
properties:
allocationPrefixLength:
default: 64
description: |-
AllocationPrefixLength is the prefix length of each allocated
sub-prefix (e.g. 64 means /64 allocations). Defaults to 64.
Must be >= the prefix length of each entry in Prefixes and <= 128.
maximum: 128
minimum: 1
type: integer
excludedPrefixes:
description: |-
ExcludedPrefixes lists IPs/CIDRs/ranges to exclude from allocation.
Any candidate sub-prefix overlapping an excluded entry is skipped.
items:
type: string
type: array
gateway:
description: |-
Gateway is the next-hop IPv6 address carried unchanged to every
allocated IPAddress.Spec.Gateway. Unlike IP pools, the gateway does
NOT block any prefix from being allocated — it is informational only.
type: string
prefixes:
description: |-
Prefixes is a list of IPv6 CIDRs from which sub-prefixes are allocated.
Each entry must be a network-aligned CIDR (e.g. "fd00::/48").
items:
type: string
type: array
required:
- prefixes
type: object
status:
description: InClusterPrefixPoolStatus defines the observed state of InClusterPrefixPool.
properties:
ipAddresses:
description: |-
Addresses reports the count of total, free, and used prefixes in the pool.
The JSON tag is "ipAddresses" to match the InClusterIPPool status shape,
keeping a consistent status contract across pool types.
properties:
free:
description: |-
Free is the count of unallocated sub-prefixes.
Counts greater than int can contain will report as math.MaxInt.
type: integer
outOfRange:
description: |-
OutOfRange is the count of allocated prefixes currently non-allocatable
under spec (outside spec.Prefixes, overlapped by spec.ExcludedPrefixes,
or with the wrong prefix length).
Counts greater than int can contain will report as math.MaxInt.
type: integer
total:
description: |-
Total is the total number of allocatable sub-prefixes in the pool.
Counts greater than int can contain will report as math.MaxInt.
type: integer
used:
description: |-
Used is the count of allocated sub-prefixes.
Counts greater than int can contain will report as math.MaxInt.
type: integer
required:
- free
- outOfRange
- total
- used
type: object
type: object
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: capi-ipam-in-cluster-system/capi-ipam-in-cluster-serving-cert
@@ -487,6 +651,19 @@ spec:
spec:
description: InClusterIPPoolSpec defines the desired state of InClusterIPPool.
properties:
addressReuseGracePeriodSeconds:
description: |-
AddressReuseGracePeriodSeconds is the duration in seconds for which an
IP address should be kept reserved after being released, preventing
immediate reuse. This helps avoid IP conflicts during rolling upgrades
where old and new nodes may briefly coexist, and prevents ARP cache
issues on network switches.
If not set or set to 0, addresses are available for reuse immediately.
During the grace period the IPAddress and claim deletions are held, the downstream consumers using foreground cascading
deletion through the claim will see deletion of upstream resources delayed by up to AddressReuseGracePeriodSeconds.
format: int32
minimum: 0
type: integer
addresses:
description: |-
Addresses is a list of IP addresses that can be assigned. This set of
@@ -562,6 +739,155 @@ spec:
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.2
labels:
cluster.x-k8s.io/provider: ipam-in-cluster
clusterctl.cluster.x-k8s.io/move-hierarchy: ""
name: inclusterprefixpools.ipam.cluster.x-k8s.io
spec:
conversion:
strategy: Webhook
webhook:
clientConfig:
service:
name: capi-ipam-in-cluster-webhook-service
namespace: capi-ipam-in-cluster-system
path: /convert
conversionReviewVersions:
- v1
group: ipam.cluster.x-k8s.io
names:
categories:
- cluster-api
kind: InClusterPrefixPool
listKind: InClusterPrefixPoolList
plural: inclusterprefixpools
singular: inclusterprefixpool
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: List of prefixes to allocate sub-prefixes from
jsonPath: .spec.prefixes
name: Prefixes
type: string
- description: Count of allocatable sub-prefixes in the pool
jsonPath: .status.ipAddresses.total
name: Total
type: integer
- description: Count of unallocated sub-prefixes in the pool
jsonPath: .status.ipAddresses.free
name: Free
type: integer
- description: Count of allocated sub-prefixes in the pool
jsonPath: .status.ipAddresses.used
name: Used
type: integer
name: v1alpha2
schema:
openAPIV3Schema:
description: InClusterPrefixPool is the Schema for the inclusterprefixpools
API.
properties:
apiVersion:
description: |-
APIVersion defines the versioned schema of this representation of an object.
Servers should convert recognized schemas to the latest internal value, and
may reject unrecognized values.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
type: string
kind:
description: |-
Kind is a string value representing the REST resource this object represents.
Servers may infer this from the endpoint the client submits requests to.
Cannot be updated.
In CamelCase.
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
type: string
metadata:
type: object
spec:
description: InClusterPrefixPoolSpec defines the desired state of InClusterPrefixPool.
properties:
allocationPrefixLength:
default: 64
description: |-
AllocationPrefixLength is the prefix length of each allocated
sub-prefix (e.g. 64 means /64 allocations). Defaults to 64.
Must be >= the prefix length of each entry in Prefixes and <= 128.
maximum: 128
minimum: 1
type: integer
excludedPrefixes:
description: |-
ExcludedPrefixes lists IPs/CIDRs/ranges to exclude from allocation.
Any candidate sub-prefix overlapping an excluded entry is skipped.
items:
type: string
type: array
gateway:
description: |-
Gateway is the next-hop IPv6 address carried unchanged to every
allocated IPAddress.Spec.Gateway. Unlike IP pools, the gateway does
NOT block any prefix from being allocated — it is informational only.
type: string
prefixes:
description: |-
Prefixes is a list of IPv6 CIDRs from which sub-prefixes are allocated.
Each entry must be a network-aligned CIDR (e.g. "fd00::/48").
items:
type: string
type: array
required:
- prefixes
type: object
status:
description: InClusterPrefixPoolStatus defines the observed state of InClusterPrefixPool.
properties:
ipAddresses:
description: |-
Addresses reports the count of total, free, and used prefixes in the pool.
The JSON tag is "ipAddresses" to match the InClusterIPPool status shape,
keeping a consistent status contract across pool types.
properties:
free:
description: |-
Free is the count of unallocated sub-prefixes.
Counts greater than int can contain will report as math.MaxInt.
type: integer
outOfRange:
description: |-
OutOfRange is the count of allocated prefixes currently non-allocatable
under spec (outside spec.Prefixes, overlapped by spec.ExcludedPrefixes,
or with the wrong prefix length).
Counts greater than int can contain will report as math.MaxInt.
type: integer
total:
description: |-
Total is the total number of allocatable sub-prefixes in the pool.
Counts greater than int can contain will report as math.MaxInt.
type: integer
used:
description: |-
Used is the count of allocated sub-prefixes.
Counts greater than int can contain will report as math.MaxInt.
type: integer
required:
- free
- outOfRange
- total
- used
type: object
type: object
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: v1
kind: ServiceAccount
metadata:
@@ -629,7 +955,9 @@ rules:
- ipam.cluster.x-k8s.io
resources:
- globalinclusterippools
- globalinclusterprefixpools
- inclusterippools
- inclusterprefixpools
- ipaddresses
verbs:
- create
@@ -643,7 +971,9 @@ rules:
- ipam.cluster.x-k8s.io
resources:
- globalinclusterippools/finalizers
- globalinclusterprefixpools/finalizers
- inclusterippools/finalizers
- inclusterprefixpools/finalizers
- ipaddressclaims/finalizers
- ipaddresses/finalizers
verbs:
@@ -652,7 +982,9 @@ rules:
- ipam.cluster.x-k8s.io
resources:
- globalinclusterippools/status
- globalinclusterprefixpools/status
- inclusterippools/status
- inclusterprefixpools/status
- ipaddressclaims/status
- ipaddresses/status
verbs:
@@ -828,7 +1160,7 @@ spec:
- --leader-elect
command:
- /manager
image: registry.k8s.io/capi-ipam-ic/cluster-api-ipam-in-cluster-controller:v1.0.3
image: registry.k8s.io/capi-ipam-ic/cluster-api-ipam-in-cluster-controller:v1.1.1
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
@@ -871,6 +1203,11 @@ spec:
type: RuntimeDefault
serviceAccountName: capi-ipam-in-cluster-controller-manager
terminationGracePeriodSeconds: 10
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
volumes:
- name: cert
secret:
@@ -916,7 +1253,6 @@ metadata:
webhooks:
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
name: capi-ipam-in-cluster-webhook-service
@@ -938,7 +1274,27 @@ webhooks:
sideEffects: None
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
name: capi-ipam-in-cluster-webhook-service
namespace: capi-ipam-in-cluster-system
path: /mutate-ipam-cluster-x-k8s-io-v1alpha2-globalinclusterprefixpool
failurePolicy: Fail
matchPolicy: Equivalent
name: default.globalinclusterprefixpool.ipam.cluster.x-k8s.io
rules:
- apiGroups:
- ipam.cluster.x-k8s.io
apiVersions:
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- globalinclusterprefixpools
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: capi-ipam-in-cluster-webhook-service
@@ -958,6 +1314,27 @@ webhooks:
resources:
- inclusterippools
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: capi-ipam-in-cluster-webhook-service
namespace: capi-ipam-in-cluster-system
path: /mutate-ipam-cluster-x-k8s-io-v1alpha2-inclusterprefixpool
failurePolicy: Fail
matchPolicy: Equivalent
name: default.inclusterprefixpool.ipam.cluster.x-k8s.io
rules:
- apiGroups:
- ipam.cluster.x-k8s.io
apiVersions:
- v1alpha2
operations:
- CREATE
- UPDATE
resources:
- inclusterprefixpools
sideEffects: None
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
@@ -970,7 +1347,6 @@ metadata:
webhooks:
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
name: capi-ipam-in-cluster-webhook-service
@@ -993,7 +1369,28 @@ webhooks:
sideEffects: None
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
service:
name: capi-ipam-in-cluster-webhook-service
namespace: capi-ipam-in-cluster-system
path: /validate-ipam-cluster-x-k8s-io-v1alpha2-globalinclusterprefixpool
failurePolicy: Fail
matchPolicy: Equivalent
name: validation.globalinclusterprefixpool.ipam.cluster.x-k8s.io
rules:
- apiGroups:
- ipam.cluster.x-k8s.io
apiVersions:
- v1alpha2
operations:
- CREATE
- UPDATE
- DELETE
resources:
- globalinclusterprefixpools
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: capi-ipam-in-cluster-webhook-service
@@ -1014,3 +1411,25 @@ webhooks:
resources:
- inclusterippools
sideEffects: None
- admissionReviewVersions:
- v1
clientConfig:
service:
name: capi-ipam-in-cluster-webhook-service
namespace: capi-ipam-in-cluster-system
path: /validate-ipam-cluster-x-k8s-io-v1alpha2-inclusterprefixpool
failurePolicy: Fail
matchPolicy: Equivalent
name: validation.inclusterprefixpool.ipam.cluster.x-k8s.io
rules:
- apiGroups:
- ipam.cluster.x-k8s.io
apiVersions:
- v1alpha2
operations:
- CREATE
- UPDATE
- DELETE
resources:
- inclusterprefixpools
sideEffects: None
@@ -7,3 +7,6 @@ releaseSeries:
- major: 1
minor: 0
contract: v1beta1
- major: 1
minor: 1
contract: v1beta2
@@ -8,5 +8,5 @@ renames the ConfigMap the old and the new one coexist for the length of the
release, so a selector without this label matches both and the reconcile fails.
*/}}
{{- define "capi-providers-ipam-in-cluster.version" -}}
v1.0.3-ipam-in-cluster
v1.1.1-ipam-in-cluster
{{- end -}}
@@ -8,9 +8,8 @@ spec:
# Who needs this, and why it is not in a KubeVirt install: see the dependsOn
# edge in packages/core/platform/sources/capi-provider-infra-proxmox.yaml.
#
# v1.0.x, not v1.1: both serve InClusterIPPool v1alpha2, but v1.1 moves to the
# v1beta2 contract and its IPAddressClaim API, while capmox v0.7, the only
# consumer here, is a v1beta1-contract provider. Move the two together.
# v1.1.x declares the v1beta2 contract, which capmox v0.9 needs (it is built
# against v1.1.0). It needs capi-providers-core >= v1.11.
version: {{ include "capi-providers-ipam-in-cluster.version" . }}
fetchConfig:
selector: