Skip to content

Bug: Missing additionalNodeIngressRules field in the actual CRD but present in documentation #5634

@aviral-agarwal

Description

@aviral-agarwal

/kind bug

What steps did you take and what happened:
in the CRD's documentation https://cluster-api-aws.sigs.k8s.io/crd/#infrastructure.cluster.x-k8s.io/v1beta2.NetworkSpec
I see additionalNodeIngressRules to add ingress rules to the Security Group for all nodes

But when I check the installed CRD for AWSCluster, I do not see it

❯ kubectl get crd awsclusters.infrastructure.cluster.x-k8s.io -o jsonpath='{.spec.versions[*].name}'
v1beta1 v1beta2

❯ kubectl get crd awsclusters.infrastructure.cluster.x-k8s.io -o yaml | grep -nA2 -B2 additionalNodeIngressRules


❯ kubectl -n capa-system get deploy -l cluster.x-k8s.io/provider=infrastructure-aws -o jsonpath='{..image}'
registry.k8s.io/cluster-api-aws/cluster-api-aws-controller:v2.8.4

❯ kubectl explain awscluster.spec.network.additionalNodeIngressRules
GROUP:      infrastructure.cluster.x-k8s.io
KIND:       AWSCluster
VERSION:    v1beta2

error: field "additionalNodeIngressRules" does not exist

I do see spec.network.additionalControlPlaneIngressRules in AWSCluster

❯ kubectl explain awscluster.spec.network.additionalControlPlaneIngressRules
GROUP:      infrastructure.cluster.x-k8s.io
KIND:       AWSCluster
VERSION:    v1beta2

FIELD: additionalControlPlaneIngressRules <[]Object>


DESCRIPTION:
    AdditionalControlPlaneIngressRules is an optional set of ingress rules to
    add to the control plane
    IngressRule defines an AWS ingress rule for security groups.
.
.
.

when using Cilium CNI in ENI mode, Security Group ingress rules can become very important to configure

I installed using clusterctl init

What did you expect to happen:
the field spec.network.additionalNodeIngressRules should exist as per the CRD documentation

Anything else you would like to add:

Environment:
on kind cluster

  • Cluster-api-provider-aws version: 2.8.4
  • Kubernetes version: (use kubectl version):
❯ kubectl version
Client Version: v1.33.4
Kustomize Version: v5.6.0
Server Version: v1.33.1
  • OS (e.g. from /etc/os-release): Ubuntu 24.04.3 LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.needs-priorityneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions