You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openserverless.apache.org by ms...@apache.org on 2025/06/10 10:57:55 UTC

(openserverless-operator) 02/02: structure

This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch devel
in repository https://gitbox.apache.org/repos/asf/openserverless-operator.git

commit 3fde7d16d752c34772d95675e1e49accc7a0ecc9
Author: Michele Sciabarra <ms...@apache.org>
AuthorDate: Tue Jun 10 12:55:22 2025 +0200

    structure
---
 kubernetes/couchdb/main.py         |  0
 kubernetes/opsfile.yml             | 28 ++++++++++++++++++++++++++++
 kubernetes/pyproject.toml          |  7 +++++++
 kubernetes/standalone/docopts.md   | 30 ++++++++++++++++++++++++++++++
 kubernetes/standalone/install.py   | 10 ++++++++++
 kubernetes/standalone/opsfile.yml  | 37 +++++++++++++++++++++++++++++++++++++
 kubernetes/standalone/uninstall.py |  8 ++++++++
 kubernetes/util.py                 |  2 ++
 kubernetes/uv.lock                 |  8 ++++++++
 opsfile.yml                        | 31 +++++++++++++++++++++++++++++++
 10 files changed, 161 insertions(+)

diff --git a/kubernetes/couchdb/main.py b/kubernetes/couchdb/main.py
new file mode 100644
index 0000000..e69de29
diff --git a/kubernetes/opsfile.yml b/kubernetes/opsfile.yml
new file mode 100644
index 0000000..af0620e
--- /dev/null
+++ b/kubernetes/opsfile.yml
@@ -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.
+
+version: '3'
+# Licensed to the Apache Software Foundation (ASF) under one
+
+vars:
+  OS: '{{OS}}'
+  ARCH: '{{ARCH}}'
+
+tasks:
+
+  standalone:
+    desc: "Standalone Installation"
diff --git a/kubernetes/pyproject.toml b/kubernetes/pyproject.toml
new file mode 100644
index 0000000..2dec67f
--- /dev/null
+++ b/kubernetes/pyproject.toml
@@ -0,0 +1,7 @@
+[project]
+name = "kubernetes"
+version = "0.1.0"
+description = "Add your description here"
+readme = "README.md"
+requires-python = ">=3.13"
+dependencies = []
diff --git a/kubernetes/standalone/docopts.md b/kubernetes/standalone/docopts.md
new file mode 100644
index 0000000..a32a0a2
--- /dev/null
+++ b/kubernetes/standalone/docopts.md
@@ -0,0 +1,30 @@
+<!---
+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.
+-->
+# Tasks `ops setup2`
+
+Manage installation OpenServerless v2
+
+## Synopsis
+
+```text
+Usage:
+    standalone install [<name>]
+    standalone uninstall [<name>]
+```
+
diff --git a/kubernetes/standalone/install.py b/kubernetes/standalone/install.py
new file mode 100644
index 0000000..a9ff395
--- /dev/null
+++ b/kubernetes/standalone/install.py
@@ -0,0 +1,10 @@
+import util
+
+
+def main(argv):
+    """
+    Main function to install the standalone Kubernetes setup.
+    """
+    [name] = argv
+    util.pr("install standalone", name)
+
diff --git a/kubernetes/standalone/opsfile.yml b/kubernetes/standalone/opsfile.yml
new file mode 100644
index 0000000..67cc69c
--- /dev/null
+++ b/kubernetes/standalone/opsfile.yml
@@ -0,0 +1,37 @@
+# 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.
+
+version: '3'
+
+vars:
+  OS: '{{OS}}'
+  ARCH: '{{ARCH}}'
+
+tasks:
+
+  install:
+    desc: "Install Standalone"
+    dir: ..
+    cmds:
+     - pwd
+     - uv run python -m standalone install "{{._name_}}"
+
+  uninstall:
+    desc: "Uninstall Standalone"
+    dir: ..
+    cmds:
+     - uv run python -m standalone uninstall "{{._name_}}"
\ No newline at end of file
diff --git a/kubernetes/standalone/uninstall.py b/kubernetes/standalone/uninstall.py
new file mode 100644
index 0000000..bbaceae
--- /dev/null
+++ b/kubernetes/standalone/uninstall.py
@@ -0,0 +1,8 @@
+import util
+
+def main(argv):
+    """
+    Main function to install the standalone Kubernetes setup.
+    """
+    [name] = argv
+    util.pr("uninstall standalone", name)
diff --git a/kubernetes/util.py b/kubernetes/util.py
new file mode 100644
index 0000000..5eefc7e
--- /dev/null
+++ b/kubernetes/util.py
@@ -0,0 +1,2 @@
+def pr(*x):
+    print(*x)
\ No newline at end of file
diff --git a/kubernetes/uv.lock b/kubernetes/uv.lock
new file mode 100644
index 0000000..260d9f3
--- /dev/null
+++ b/kubernetes/uv.lock
@@ -0,0 +1,8 @@
+version = 1
+revision = 1
+requires-python = ">=3.13"
+
+[[package]]
+name = "kubernetes"
+version = "0.1.0"
+source = { virtual = "." }
diff --git a/opsfile.yml b/opsfile.yml
new file mode 100644
index 0000000..5de1ccf
--- /dev/null
+++ b/opsfile.yml
@@ -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.
+
+version: '3'
+# Licensed to the Apache Software Foundation (ASF) under one
+
+vars:
+  OS: '{{OS}}'
+  ARCH: '{{ARCH}}'
+
+tasks:
+
+  kubernetes:
+    desc: "Kubernetes Setup"
+
+  couchdb:
+    desc: "Kubernetes Setup"