Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

[Deployment] Choose services for different cluster type #3528

Merged
merged 3 commits into from
Sep 3, 2019

Conversation

abuccts
Copy link
Member

@abuccts abuccts commented Sep 2, 2019

Choose services for different cluster type in deployment.

Choose services for different cluster type in deployment.
Update cluster type in service.yaml.
@abuccts abuccts added the PureK8S label Sep 2, 2019
@abuccts abuccts requested review from wangdian and ydye September 2, 2019 05:09
@abuccts abuccts mentioned this pull request Sep 2, 2019
42 tasks
@@ -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)
Copy link
Member

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?

Copy link
Member Author

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"
Copy link
Member

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?

Copy link
Member Author

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.
@abuccts abuccts merged commit a1332d3 into master Sep 3, 2019
@abuccts abuccts deleted the xiongyf/deploy-cluster-type branch September 3, 2019 08:46
@hzy46 hzy46 mentioned this pull request Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants