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: Add support for cluster api/capmox #166

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

Mattes83
Copy link
Contributor

@Mattes83 Mattes83 commented Jan 2, 2025

Pull Request

This is currently a work in progress. What do you think of the general approach?
I did not yet find out how to pass the required flag to instances. Do you know how to accomplish this?

What? (description)

This PR aims to add support for clusters managed by cluster api and the capmox infrastructure provider.

Why? (reasoning)

See discussion in #163

Acceptance

Please use the following checklist:

  • you linked an issue (if applicable)
  • you included tests (if applicable)
  • you linted your code (make lint)
  • you linted your code (make unit)

See make help for a description of the available targets.

@Mattes83 Mattes83 marked this pull request as draft January 2, 2025 08:36
Copy link
Owner

@sergelogvinov sergelogvinov left a comment

Choose a reason for hiding this comment

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

Looks great! The implementation is very simple. I thought it would be much harder.

You can switch to the CAPI ProviderID using an environment parameter or proxmox-config, like

features:
  # capmox is code name of providerID format
  provider: capmox 
clusters: []

you can use different name capmox it is just example.

Comment on lines 80 to 90
| Key | Type | Default | Description |
|-----|------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| replicaCount | int | `1` | |
| image.repository | string | `"ghcr.io/sergelogvinov/proxmox-cloud-controller-manager"` | Proxmox CCM image. |
| image.pullPolicy | string | `"IfNotPresent"` | Always or IfNotPresent |
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | |
| nameOverride | string | `""` | |
| fullnameOverride | string | `""` | |
| extraArgs | list | `[]` | Any extra arguments for talos-cloud-controller-manager, eg --capi=true to enable cluster api compatibility. |
| enabledControllers | list | `["cloud-node","cloud-node-lifecycle"]` | List of controllers should be enabled. Use '*' to enable all controllers. Support only `cloud-node,cloud-node-lifecycle` controllers. |
Copy link
Owner

Choose a reason for hiding this comment

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

This file auto generated by command make docs

Better to add comments in values.yaml see # -- Any extra arguments for ...

@Mattes83 Mattes83 marked this pull request as ready for review January 6, 2025 14:48
@Mattes83
Copy link
Contributor Author

Mattes83 commented Jan 6, 2025

Thanks for your feedback. From my side it looks okay now. If you want me to make additional changes please let me know.

@sergelogvinov
Copy link
Owner

Hello, thank you! Everything looks good to me. Let’s fix the GitHub Action tests, and then we can merge it. 👍

  • commit message: DSO, change the title to like: feat: support capmox ... + add commit body
  • change the helm chart version to 0.2.10
  • go linter

@Mattes83 Mattes83 changed the title feat: Add support for caluster api/capmox feat: Add support for cluster api/capmox Jan 7, 2025
@Mattes83
Copy link
Contributor Author

Mattes83 commented Jan 7, 2025

I am not sure about commit message and dco stuff, but the rest should be fixed

@Mattes83 Mattes83 force-pushed the capi-support branch 2 times, most recently from a170329 to 397c850 Compare January 7, 2025 14:06
@Mattes83
Copy link
Contributor Author

Mattes83 commented Jan 7, 2025

Maybe now...

This makes ccm compatible with cluster api and cluster api provider proxmox (capmox)

Signed-off-by: Matthias Teich <matthias.teich@gdata.de>
@sergelogvinov sergelogvinov merged commit 956a30a into sergelogvinov:main Jan 7, 2025
4 checks passed
@sergelogvinov
Copy link
Owner

Thank you! 👍

@Mattes83
Copy link
Contributor Author

Mattes83 commented Jan 8, 2025

Thanks for your help!
Will there be a new release soon? This would allow me to file a working PR for csi without a replace in go.mod

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.

2 participants