Code Monkey home page Code Monkey logo

Comments (4)

regisb avatar regisb commented on July 18, 2024

What command specifically is causing an issue? What are the logs?

from tutor.

snglth avatar snglth commented on July 18, 2024

This is a good point. I manage a "sandbox" instance at work. This "sandbox" part means that users and courses are being wiped once in a while. The namespace itself and the cleanup CronJobs are deployed by FluxCD. So, if I run tutor k8s delete tutor delete the cleanup CronJobs and the namespace which is suboptimal in my opinion. There has to be a way to configure tutor to omit deleting objects that was not deployed by tutor. Maybe a flag in config.yml like K8S_EXTERNAL_NAMESPACE set to true to tell tutor to not manage the namespace. @regisb What do you think?

from tutor.

waza-ari avatar waza-ari commented on July 18, 2024

Ah, sorry for not coming back earlier, I somehow missed the answer. Yes, it's the fact that the namespace being deleted while externally managed (ArgoCD in our case). ArgoCD allows us to provision k8s environments for projects (including the namespace, roles and so on), such that the user works within their assigned NS and permissions.

A flag as suggested by @snglth would be perfect for our use case as well.

from tutor.

regisb avatar regisb commented on July 18, 2024

Let's not add a new configuration setting without further consideration. There are alternatives:

  • On tutor k8s delete, all tutor does is running kubectl delete -k ~/.local/share/tutor/env --ignore-not-found=true --wait, as per the console output. I think it's pretty easy to run this command manually to add custom filters there, right?
  • Alternatively we could add a --exclude-namespace option to tutor k8s delete.

from tutor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.