-
Notifications
You must be signed in to change notification settings - Fork 5
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 CAPX #384
Conversation
8f23f92
to
193c178
Compare
examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml
Outdated
Show resolved
Hide resolved
postKubeadmCommands: | ||
- echo export KUBECONFIG=/etc/kubernetes/admin.conf >> /root/.bashrc | ||
- echo "after kubeadm call" > /var/log/postkubeadm.log | ||
preKubeadmCommands: | ||
- echo "before kubeadm call" > /var/log/prekubeadm.log | ||
- hostnamectl set-hostname "{{ ds.meta_data.hostname }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might have to be modified to accommodate 1.29 nutanix-cloud-native/cluster-api-provider-nutanix#382
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently we are using alpha1 version. if we cut alpha2, then latest changes will show up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
handled in d2iq-labs#6
metadata: | ||
labels: | ||
cluster.x-k8s.io/provider: infrastructure-nutanix | ||
name: ${CLUSTER_NAME}-kcfg-0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I know this is the same as the original template but why do we append a -0
on this particular resource and not others?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is autogenerated, lets fix it in the main code if needed
namespace: ${NAMESPACE} | ||
spec: | ||
template: | ||
spec: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should ideally also add:
- project
- additionalCategories
- opus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assuming you mean GPUs. yes we need to figure out how to add required vs optional fields so that user can choose either way. this can be added in subsequent PRs
@@ -40,6 +40,8 @@ type ClusterConfigSpec struct { | |||
AWS *AWSSpec `json:"aws,omitempty"` | |||
// +optional | |||
Docker *DockerSpec `json:"docker,omitempty"` | |||
// +optional | |||
Nutanix *NutanixSpec `json:"nutanix,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make the reviewing easier what do you think about opening a PR with just API changes for only the required input?
SystemDiskSize string `json:"systemDiskSize"` | ||
|
||
// List of GPU devices that need to be added to the machines. | ||
GPUs []NutanixGPU `json:"gpus,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the GPU API should be added later after testing just a basic cluster?
charts/capi-runtime-extensions/templates/clusterclass_nutanix.yaml
Outdated
Show resolved
Hide resolved
examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml
Outdated
Show resolved
Hide resolved
examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml
Outdated
Show resolved
Hide resolved
examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml
Outdated
Show resolved
Hide resolved
I noticed conflicts so I rebased this and fixed up (force pushed) @deepakm-ntnx. Please pull latest changes locally. |
Fixed up conflicts again after repo rename. |
kept for newly added files only
…sync.sh disabled for nutanix till we find a better solution for e2e
closing as due to rename moved to https://github.com/d2iq-labs/cluster-api-runtime-extensions-nutanix/pull/6/files |
to regenerate example Cluster with topology yamls
To run unit tests
To deploy cre controller as well as nutanix provider and cluster class of nutanix
To deploy nutanix cluster with topology with cre annotations