Example #1
0
    def open(self, project_id, cluster_id, context):
        self.project_id = project_id
        self.cluster_id = cluster_id
        self.context = context
        self.user_pod_name = context['user_pod_name']

        rows = self.get_argument('rows')
        rows = utils.format_term_size(rows, constants.DEFAULT_ROWS)

        cols = self.get_argument('cols')
        cols = utils.format_term_size(cols, constants.DEFAULT_COLS)

        mode = context.get('mode')
        self.bcs_client = bcs_client.factory.create(mode, self, context, rows, cols)
Example #2
0
    def open(self, project_id, cluster_id, context):
        self.project_id = project_id
        self.cluster_id = cluster_id
        self.context = context
        self.user_pod_name = context["user_pod_name"]
        self.source = self.get_argument("source")

        rows = self.get_argument("rows")
        rows = utils.format_term_size(rows, constants.DEFAULT_ROWS)

        cols = self.get_argument("cols")
        cols = utils.format_term_size(cols, constants.DEFAULT_COLS)

        mode = context.get("mode")
        self.bcs_client = bcs_client.factory.create(mode, self, context, rows,
                                                    cols)