From dev-return-1668-archive-asf-public=cust-asf.ponee.io@openwhisk.apache.org Sun Mar 11 03:59:22 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 538EE180651 for ; Sun, 11 Mar 2018 03:59:22 +0100 (CET) Received: (qmail 22308 invoked by uid 500); 11 Mar 2018 02:59:21 -0000 Mailing-List: contact dev-help@openwhisk.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwhisk.apache.org Delivered-To: mailing list dev@openwhisk.apache.org Received: (qmail 22290 invoked by uid 99); 11 Mar 2018 02:59:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Mar 2018 02:59:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CCB811804F8 for ; Sun, 11 Mar 2018 02:59:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id eXa1J3DNbXwX for ; Sun, 11 Mar 2018 02:59:16 +0000 (UTC) Received: from mail-ua0-f173.google.com (mail-ua0-f173.google.com [209.85.217.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A47CE5F5C6 for ; Sun, 11 Mar 2018 02:59:16 +0000 (UTC) Received: by mail-ua0-f173.google.com with SMTP id m43so4732487uah.1 for ; Sat, 10 Mar 2018 18:59:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=LPFqjSy3ETu9NTF77s67TYuVNlvpqVkb9tzz7tKpDLA=; b=SbCpd+IjhndJ4W+QtHbeLPURmnqQBpti+6qIKdnliFkbR9h7p+34/32P4PgtEeq/nN hc/e+oaIbcQ6FhHwG3zIY7k8xIp12APdhU5UVQRkTfgO9gGHup19CpgYayctrYUpR3RA BkMGkXfSi4KRuXCviIoGdaJDPL3fIsHNfsPTXdGlcmwJ6BtRTp/ec9WzKQ9O868R3hW1 X17qlFMokupTT0HSOx2iJsuLkZYdcT6dzg5Ry6+BxnIfnM92tUqjRCYsIbgIS9rdaQt4 aq+rcldZVHCBbyXZbc1c2uX8mejGEu5BEwk7MdMby5QsdJfEsIMSN8LS0FL41XP4voHA eijw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=LPFqjSy3ETu9NTF77s67TYuVNlvpqVkb9tzz7tKpDLA=; b=AVbxLi1InBgXX6JlZyCoD+SUhxn2LgXigIQ0zs7AYqT19ctLzX4idry0Ooc089LPBN BRAOELm6d8LrSYXT6nDiXc+q8TMbKB8zeHqVwyd/u52JU0rWGzjprJWWpEUZvMz619C/ iApn4Q42MhCgT2hEjQm9wsDiR5CysrerSaYlMA19jaJGY6AM0TPGTU2zxr4s7UYkjBFg pTAs89XmssHw/CFfLAiIcbEk5Z2GneF/vFVHQO3MyeWOim5mfqlG+nyfiG2Ae4PyL9E5 80uL/uArC+KvW84Scf8XRyMcyOjYLJ9PTVkjYix1WvjmVsgg3ducDgW4Syp/8t1K3tHb 1wxQ== X-Gm-Message-State: AElRT7GsHB3B1gI7BAe3k5m7fAafC2iVvLo8u6r4UEyaYgVSl+JdBMDc l6SpTv4l+SRqgCdP55v3OMVIhHG/CGL8yJ+sNlrwn7Ak X-Google-Smtp-Source: AG47ELt56a4lcG720coyCSD+oXVDpY3Boawqyjuq1KnwtAlfmJ5lLE3ymfjhLG3zq2XRKQL7wchl1O4YWIDZBhzQpQs= X-Received: by 10.159.54.99 with SMTP id s32mr2489173uad.41.1520737149498; Sat, 10 Mar 2018 18:59:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.74.140 with HTTP; Sat, 10 Mar 2018 18:58:49 -0800 (PST) From: Imesh Gunaratne Date: Sun, 11 Mar 2018 08:28:49 +0530 Message-ID: Subject: [Dev] Move hard coded runtime configurations from OpenWhisk CLI to the runtimes.json To: dev@openwhisk.apache.org Content-Type: multipart/alternative; boundary="001a1147b90897b8fe05671a3557" --001a1147b90897b8fe05671a3557 Content-Type: text/plain; charset="UTF-8" Hi All, I'm trying to do $subject to make it easier to add additional runtime extensions without having to re-compile the CLI. To do this we may need to query the list of runtimes available in OW via the OW API. As I see OW CLI is using WO client go library [1] for invoking the OW API and at the moment it has not exposed the runtime information which has been added to the root context path: HTTP GET / { "support": { "github": "https://github.com/apache/incubator-openwhisk/issues", "slack": "http://slack.openwhisk.org" }, "description": "OpenWhisk", "api_paths": [ "/api/v1" ], "runtimes": { "nodejs": [ { "image": "openwhisk/nodejsaction:latest", "deprecated": true, "requireMain": false, "default": false, "attached": false, "kind": "nodejs" }, ... ], ... }, "limits": { "actions_per_minute": 60, "triggers_per_minute": 60, "concurrent_actions": 30 } } I also see that the /api/v1 context path provides information about the API and it has been exposed by the "InfoService" [2]. HTTP GET /api/v1 { "api_version_path": "v1", "description": "OpenWhisk API", "swagger_paths": { "ui": "/docs", "api-docs": "/api-docs" }, "build": "2018-03-10T16:52:39Z", "api_version": "1.0.0", "buildno": "latest" } I would like to ask whether the community has already discussed about this and how you think we should expose the runtime information via the client go library. Would it be okay to add a new entity to the client go library to expose the information on the API root context? If so, would it be okay to call it "RootService"? Really appreciate your thoughts on this. [1] https://github.com/apache/incubator-openwhisk-client-go [2] https://github.com/apache/incubator-openwhisk-client-go/blob/master/whisk/info.go#L39 Thanks Imesh -- Imesh Gunaratne *https://medium.com/@imesh * --001a1147b90897b8fe05671a3557--