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 ec4d1dafe236a3840b1d4fdf83a07ab6a4800586 Author: Michele Sciabarra <[email protected]> AuthorDate: Sun Jun 15 11:17:48 2025 +0200 adding opsfile --- opsfile.yml | 29 +++++++++++++++++++++++++++++ support/couchdb/main.py | 0 support/opsfile.yml | 28 ++++++++++++++++++++++++++++ support/pyproject.toml | 7 +++++++ support/standalone/docopts.md | 30 ++++++++++++++++++++++++++++++ support/standalone/install.py | 10 ++++++++++ support/standalone/opsfile.yml | 37 +++++++++++++++++++++++++++++++++++++ support/standalone/uninstall.py | 8 ++++++++ support/util.py | 2 ++ support/uv.lock | 8 ++++++++ 10 files changed, 159 insertions(+) diff --git a/opsfile.yml b/opsfile.yml new file mode 100644 index 0000000..e186667 --- /dev/null +++ b/opsfile.yml @@ -0,0 +1,29 @@ +# 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: + + support: + desc: "Kubernetes Setup" + diff --git a/support/couchdb/main.py b/support/couchdb/main.py new file mode 100644 index 0000000..e69de29 diff --git a/support/opsfile.yml b/support/opsfile.yml new file mode 100644 index 0000000..af0620e --- /dev/null +++ b/support/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/support/pyproject.toml b/support/pyproject.toml new file mode 100644 index 0000000..2dec67f --- /dev/null +++ b/support/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/support/standalone/docopts.md b/support/standalone/docopts.md new file mode 100644 index 0000000..a32a0a2 --- /dev/null +++ b/support/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/support/standalone/install.py b/support/standalone/install.py new file mode 100644 index 0000000..a9ff395 --- /dev/null +++ b/support/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/support/standalone/opsfile.yml b/support/standalone/opsfile.yml new file mode 100644 index 0000000..67cc69c --- /dev/null +++ b/support/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/support/standalone/uninstall.py b/support/standalone/uninstall.py new file mode 100644 index 0000000..bbaceae --- /dev/null +++ b/support/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/support/util.py b/support/util.py new file mode 100644 index 0000000..5eefc7e --- /dev/null +++ b/support/util.py @@ -0,0 +1,2 @@ +def pr(*x): + print(*x) \ No newline at end of file diff --git a/support/uv.lock b/support/uv.lock new file mode 100644 index 0000000..260d9f3 --- /dev/null +++ b/support/uv.lock @@ -0,0 +1,8 @@ +version = 1 +revision = 1 +requires-python = ">=3.13" + +[[package]] +name = "kubernetes" +version = "0.1.0" +source = { virtual = "." }
