-
Notifications
You must be signed in to change notification settings - Fork 549
[Deployment] Choose services for different cluster type #3528
Conversation
Choose services for different cluster type in deployment.
Update cluster type in service.yaml.
@@ -34,12 +34,15 @@ class service_management_delete: | |||
def __init__(self, kube_config_path=None, service_list=None, **kwargs): | |||
self.logger = logging.getLogger(__name__) | |||
|
|||
self.cluster_object_model = None | |||
self.cluster_object_model = service_management_configuration.get_cluster_object_model_from_k8s(kube_config_path) |
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.
Saw same codes several times, use a function in utils to do it?
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.
just keep the original code and its structure
|
||
self.kube_config_path = kube_config_path | ||
|
||
if service_list is None: | ||
self.service_list = service_management_configuration.get_service_list() | ||
cluster_type = "yarn" |
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.
Better not use default value "yarn" in codes?
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.
there should be somewhere for a default value if user uses this script to operate on an old version cluster without updating cluster configuration
Change the initial cluster type to None.
Choose services for different cluster type in deployment.