Add Infrastructure Controller
Krake Infrastructure Controller should be able to do the following:
- Handle only
Cluster
resources that have been scheduled (bound) to someCloud
resource - Create/Update/Delete a
Cluster
resource using the TOSCA template and theCloud
credentials. Callim
API with the request to Create/Update/Delete the infrastructure described by TOSCA (it should be a k8s cluster) on theCloud
. The targetCloud
is taken from theCluster
->Cloud
binding - Update the
Cluster
status state toCREATING
/RECONCILING
/DELETING
according to the request - Check (in the infinite loop) the current infrastructure (k8s cluster) state. Call
im
API to fetch it - Update the
Cluster
status state according to request - (Only CREATE) Update the
Cluster
.spec.kubeconfig
field with kubeconfig, once the cluster is created