Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Better checks before creating Floating IPs #2261

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Commits on Nov 21, 2024

  1. Better conditions for creating Floating IPs

    When a floating is created, we need to make sure that
    `OpenStackCluster.Spec.DisableExternalNetwork` is not set to `True`.
    Otherwise, we'll have a nil pointer error.
    
    * Add a check in `reconcileBastion` to check that external network is
      not disabled before creating the floating IP for the bastion.
    * Add a check in `reconcileControlPlaneEndpoint` and
      `reconcileAPIServerLoadBalancer` to check that external
      network is not disabled (alongside the DisableAPIServerFloatingIP
      check) before creating the floating IP for the API server endpoint.
    * Add a safeguard in `GetOrCreateFloatingIP` to return a proper error
      (instead of a nil pointer error) when
      `openStackCluster.Status.ExternalNetwork` is nil.
    * Add API CEL to check that when DisableExternalNetwork is set and true,
      the bastion (if defined) doesn't have a floating IP defined and also
      that disableAPIServerFloatingIP (when set) is not False.
    EmilienM committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    5429b4b View commit details
    Browse the repository at this point in the history