Skip to content

Commit

Permalink
cluster_builder.py: add missing copyright header and remove unused im…
Browse files Browse the repository at this point in the history
…port lines (#2944)

Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
  • Loading branch information
sighingnow committed Jun 28, 2023
1 parent 5b852ff commit b6402e7
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions coordinator/gscoordinator/cluster_builder.py
@@ -1,26 +1,30 @@
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2020-2023 Alibaba Group Holding Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

import base64
import json
import logging
import os

try:
from kubernetes import client as kube_client
from kubernetes import config as kube_config
from kubernetes import watch as kube_watch
from kubernetes.client import AppsV1Api
from kubernetes.client import CoreV1Api
from kubernetes.client.rest import ApiException as K8SApiException
from kubernetes.config import ConfigException as K8SConfigException
except ImportError:
kube_client = None
kube_config = None
kube_watch = None
AppsV1Api = None
CoreV1Api = None
K8SApiException = None
K8SConfigException = None

from pprint import pprint

from graphscope.deploy.kubernetes.resource_builder import ResourceBuilder
from graphscope.deploy.kubernetes.utils import get_service_endpoints
Expand Down

0 comments on commit b6402e7

Please sign in to comment.