abcdesktopio / pyos

abcdesktop API services
https://abcdesktopio.github.io/
GNU General Public License v2.0
2 stars 2 forks source link

Changing namespace #8

Closed Disha5harma closed 1 year ago

Disha5harma commented 1 year ago

Hello Alexandre

I wanted to change the namespace of the pyos image (testing to provide seperate namespace for each user & for argo CI/CD implementation). I have done changes in settings.py and od.config.reference while making the image using dockerfile provided in oc.pyos and pyos repo . I am facing few challenges while deploying this .

image

Also what is the use of od.config.refererence when I am using separate od.config while deploying abcdesktop , what changes are required in both of them ? Also other thing I observed is that when I deploy daemonset-pyos using abcdesktopio/oc.pyos:3.0 , there are certain files that are missing in /var/pyos/oc/od

image

While making the pyos image from dockerfile , i am using this folder with these files as below (as specified in pyos repo).

image

As I can see some files such as infra.py , postponeapp.py etc. are missing inside daemonset but are present in pyos repo so I used them when making image. Also some files such as services.py are different in the repo and inside daemonset using default image . Can please guide which files should I modify for changing namespace

Thanks and please reply as soon as possible. Early reply is much appreciated.

alexandredevely commented 1 year ago

Hi Disha,

You can change the default namespace 'abcdesktop' by your own. You need to update od.config file to change the line

namespace: 'abcdesktop'

And update the yaml file with your own namespace.

I pushed some examples with the new namespace 'ns-abcdesktop'.

If you're looking for the source code, use the 3.0 branch of pyos

See you Alexandre

Disha5harma commented 1 year ago

Thanks a lot Alexandre , this is working fine , I have deployed 3 different namespace in same cluster and tested the same.