knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmc...@apache.org
Subject knox git commit: KNOX-976 - Add Jupyter Kernel Gateway Service Definitions (Jesus Alvarez via lmccay)
Date Sat, 05 Aug 2017 18:38:33 GMT
Repository: knox
Updated Branches:
  refs/heads/master d89e03ae3 -> da4946cc4


KNOX-976 - Add Jupyter Kernel Gateway Service Definitions (Jesus Alvarez via lmccay)

Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/da4946cc
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/da4946cc
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/da4946cc

Branch: refs/heads/master
Commit: da4946cc48218f4e833d15770bab295b048d091b
Parents: d89e03a
Author: Larry McCay <lmccay@hortonworks.com>
Authored: Sat Aug 5 14:38:23 2017 -0400
Committer: Larry McCay <lmccay@hortonworks.com>
Committed: Sat Aug 5 14:38:23 2017 -0400

----------------------------------------------------------------------
 .../resources/services/jkg/1.1.2/rewrite.xml    | 48 ++++++++++++++++++
 .../resources/services/jkg/1.1.2/service.xml    | 51 ++++++++++++++++++++
 .../resources/services/jkgws/1.1.2/rewrite.xml  | 28 +++++++++++
 .../resources/services/jkgws/1.1.2/service.xml  | 31 ++++++++++++
 4 files changed, 158 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/da4946cc/gateway-service-definitions/src/main/resources/services/jkg/1.1.2/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/jkg/1.1.2/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/jkg/1.1.2/rewrite.xml
new file mode 100644
index 0000000..f4ef21e
--- /dev/null
+++ b/gateway-service-definitions/src/main/resources/services/jkg/1.1.2/rewrite.xml
@@ -0,0 +1,48 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+-->
+
+
+<rules>
+    <rule dir="IN" name="JKG/jkg/inbound/root" pattern="*://*:*/**/jkg/">
+        <rewrite template="{$serviceUrl[JKG]}/"/>
+    </rule>
+
+    <rule dir="IN" name="JKG/jkg/inbound/api/kernelspecs" pattern="*://*:*/**/jkg/api/kernelspecs?{**}">
+        <rewrite template="{$serviceUrl[JKG]}/api/kernelspecs?{**}"/>
+    </rule>
+    <rule dir="IN" name="JKG/jkg/inbound/api/kernelspecs/query" pattern="*://*:*/**/jkg/api/kernelspecs/{**}?{**}">
+        <rewrite template="{$serviceUrl[JKG]}/api/kernelspecs/{**}?{**}"/>
+    </rule>
+
+
+    <rule dir="IN" name="JKG/jkg/inbound/api/kernelsurl" pattern="*://*:*/**/jkg/api/kernels?{**}">
+        <rewrite template="{$serviceUrl[JKG]}/api/kernels"/>
+    </rule>
+
+    <rule dir="IN" name="JKG/jkg/inbound/api/kernel/query" pattern="*://*:*/**/jkg/api/kernels/{**}?">
+        <rewrite template="{$serviceUrl[JKG]}/api/kernels/{**}?"/>
+    </rule>
+
+    <filter name="JKG/jkg/outbound/api/kernels">
+        <content type="text/plain" asType="application/json">
+        </content>
+    </filter>
+    <filter name="JKG/jkg/inbound/api/kernels">
+        <content type="application/x-www-form-urlencoded" asType="application/octet-stream">
+        </content>
+    </filter>
+</rules>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/knox/blob/da4946cc/gateway-service-definitions/src/main/resources/services/jkg/1.1.2/service.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/jkg/1.1.2/service.xml
b/gateway-service-definitions/src/main/resources/services/jkg/1.1.2/service.xml
new file mode 100644
index 0000000..fff3f63
--- /dev/null
+++ b/gateway-service-definitions/src/main/resources/services/jkg/1.1.2/service.xml
@@ -0,0 +1,51 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+-->
+
+
+<service role="JKG" name="jkg" version="1.1.2">
+
+    <routes>
+        <route path="/jkg">
+        </route>
+        <route path="/jkg/api/kernelspecs">
+            <rewrite apply="JKG/jkg/inbound/api/kernelspecs" to="request.url"/>
+        </route>
+        <route path="/jkg/api/kernelspecs/**">
+            <rewrite apply="JKG/jkg/inbound/api/kernelspecs/query" to="request.url"/>
+        </route>
+        <route path="/jkg/api/kernels">
+            <policies>
+                <policy role="webappsec"/>
+                <policy role="authentication"/>
+                <policy role="rewrite"/>
+                <policy role="authorization"/>
+            </policies>
+            <rewrite apply="JKG/jkg/inbound/api/kernelsurl" to="request.url"/>
+            <rewrite apply="JKG/jkg/outbound/api/kernels" to="response.body"/>
+            <rewrite apply="JKG/jkg/inbound/api/kernels" to="request.body"/>
+        </route>
+        <route path="/jkg/api/kernels/*">
+            <policies>
+                <policy role="webappsec"/>
+                <policy role="authentication"/>
+                <policy role="rewrite"/>
+                <policy role="authorization"/>
+            </policies>
+            <rewrite apply="JKG/jkg/inbound/api/kernel/query" to="request.url"/>
+        </route>
+    </routes>
+</service>

http://git-wip-us.apache.org/repos/asf/knox/blob/da4946cc/gateway-service-definitions/src/main/resources/services/jkgws/1.1.2/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/jkgws/1.1.2/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/jkgws/1.1.2/rewrite.xml
new file mode 100644
index 0000000..5bea71c
--- /dev/null
+++ b/gateway-service-definitions/src/main/resources/services/jkgws/1.1.2/rewrite.xml
@@ -0,0 +1,28 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+-->
+
+<rules>
+    <rule dir="IN" name="JKGWS/jkgws/root" pattern="*://*:*/**/jkgws/">
+        <rewrite template="{$serviceUrl[JKGWS]}/"/>
+    </rule>
+    <rule dir="IN" name="JKGWS/jkgws/inboundrule/api/kernels" pattern="*://*:*/**/jkgws/api/kernels/{**}/channels?{**}">
+        <rewrite template="{$serviceUrl[JKGWS]}/api/kernels/{**}/channels?{**}"/>
+    </rule>
+    <rule dir="IN" name="JKGWS/jkgws/inboundrule" pattern="*://*:*/**/jkgws/api/kernels/{**}">
+        <rewrite template="{$serviceUrl[JKGWS]}/api/kernels/{**}"/>
+    </rule>
+</rules>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/knox/blob/da4946cc/gateway-service-definitions/src/main/resources/services/jkgws/1.1.2/service.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/jkgws/1.1.2/service.xml
b/gateway-service-definitions/src/main/resources/services/jkgws/1.1.2/service.xml
new file mode 100644
index 0000000..75174aa
--- /dev/null
+++ b/gateway-service-definitions/src/main/resources/services/jkgws/1.1.2/service.xml
@@ -0,0 +1,31 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
+-->
+
+
+<service role="JKGWS" name="jkgws" version="1.1.2">
+    <routes>
+        <route path="/jkgws">
+            <rewrite apply="JKGWS/jkgws/root" to="request.url"/>
+        </route>
+        <route path="/jkgws/api/kernels/**/channels">
+            <rewrite apply="JKGWS/jkgws/inboundrule" to="request.url"/>
+        </route>
+        <route path="/jkgws/api/kernels/**/channels**">
+            <rewrite apply="JKGWS/jkgws/inboundrule/api/kernels" to="request.url"/>
+        </route>
+    </routes>
+</service>


Mime
View raw message