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

feat(gateway-optional): This commit makes gw definition optional for additionalNetworkDevices #130

Merged
merged 6 commits into from
Mar 14, 2024

Conversation

CiraciNicolo
Copy link
Contributor

@CiraciNicolo CiraciNicolo commented Mar 7, 2024

Description of changes:

There is no need to have a mandatory gateway for secondary network interfaces, this commit edits the validation and go template that is in charge of generating the cloudinit files.

Testing performed:

Bootstrapped two machines:

  • one with additional device and no gw defined
  • one without additional device

Both machine got provisioned

…additionalNetworkDevices

There is no need to have a mandatory gateway for secondary network interfaces, this commit edits the validation and go template that is in charge of generating the cloudinit files.
@mcbenjemaa
Copy link
Member

thank you, i will check this

@mcbenjemaa
Copy link
Member

Can you share the yaml you used for testing?

Copy link
Member

@mcbenjemaa mcbenjemaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@CiraciNicolo
Copy link
Contributor Author

CiraciNicolo commented Mar 14, 2024

I merged the main branch into my feature to check any possible new issues, probably we need to re-approve workflow 😊

@CiraciNicolo
Copy link
Contributor Author

Can you share the yaml you used for testing?

Hi! Sorry for the delay, you can find below the manifests used - I will provide only the relative manifest and not the whole cluster definition

---
apiVersion: ipam.cluster.x-k8s.io/v1alpha2
kind: GlobalInClusterIPPool
metadata:
  name: ippool
spec:
  addresses:
    - 10.10.10.4-10.10.10.254
  prefix: 24
---
kind: ProxmoxMachineTemplate
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
metadata:
  name: "workers"
spec:
  template:
    spec:
      sourceNode: "source-node"
      templateID: 1001
      format: "qcow2"
      full: true
      numSockets: 1
      numCores: 4
      memoryMiB: 4096
      disks:
        bootVolume:
          disk: virtio0
          sizeGb: 100
      network:
        default:
          bridge: vmbr0
        additionalDevices:
          - bridge: vmbr0
            name: net1
            ipv4PoolRef:
              apiGroup: ipam.cluster.x-k8s.io
              kind: GlobalInClusterIPPool
              name: ippool

Copy link

sonarcloud bot commented Mar 14, 2024

@mcbenjemaa mcbenjemaa merged commit a745a6a into ionos-cloud:main Mar 14, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants