I am new to the writing a custom controllers for the kubernetes and trying to understand this. I have started referring the sample-controller https://github.com/kubernetes/sample-controller.
I want to extend the sample-controller to operate VM resource in cloud using kubernetes. It could create a Vm if new VM kind resource is detected. Update the sub resources or delete if user want.
Schema should be like the below:
apiVersion: samplecontroller.k8s.io/v1alpha1
kind: VM
metadata:
name: sample
spec:
vmname: test-1
status:
vmId: 1234-567-8910
cpuUtilization: 50
Any suggestions or help is highly appreciable :)