Skip to content

Commit

Permalink
Add k8s in providers dict
Browse files Browse the repository at this point in the history
  • Loading branch information
d-mo committed Nov 20, 2022
1 parent 0729607 commit 78377c8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mist/api/clouds/controllers/compute/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5818,6 +5818,9 @@ def _list_sizes__get_cpu(self, size):
cpu = 1
return cpu

def _list_sizes__fetch_sizes(self):
return []


class KubernetesComputeController(_KubernetesBaseComputeController):
def _connect(self, **kwargs):
Expand Down
25 changes: 25 additions & 0 deletions src/mist/api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2056,6 +2056,31 @@ def dirname(path, num=1):
'storage': False,
}
},
'kubernetes': {
'name': 'Kubernetes',
'aliases': [],
'driver': 'kubernetes',
'category': 'container host',
'features': {
'compute': True,
'console': False,
'container': {
'container-service': True,
},
'provision': {
'location': True,
'custom_size': True,
'key': False,
'custom_image': True,
'restrictions': {
'size-image-restriction': False,
'location-size-restriction': False,
'location-image-restriction': False,
},
},
'storage': True,
}
},
'kubevirt': {
'name': 'KubeVirt',
'aliases': [],
Expand Down

0 comments on commit 78377c8

Please sign in to comment.