Coder Social home page Coder Social logo

Comments (6)

Tomcli avatar Tomcli commented on May 24, 2024 1

Thanks @YiannisGkoufas. I think we pulled the latest code a while ago and didn't see any problem, I did a delete and redeploy and it also works.
We can close this issue now.

from datashim.

YiannisGkoufas avatar YiannisGkoufas commented on May 24, 2024

some progress on this one @Tomcli, unfortunately at this point we cannot bundle the webhook configuration in the dlf.yaml since it requires the CA_BUNDLE value to be set. that's why it's populated within the generate-keys pod.
as a workaround I added just the definition ( https://github.com/IBM/dataset-lifecycle-framework/blob/master/src/generate-keys/webhook-definition.yaml ) which you can use it to delete the resource and also added the capability to generate the keys from host, by using the script https://github.com/IBM/dataset-lifecycle-framework/blob/master/src/generate-keys/script.sh
in the long term I am looking for a solution based on cert-manager ( https://cert-manager.io/docs/installation/kubernetes/ )

from datashim.

Tomcli avatar Tomcli commented on May 24, 2024

thanks @YiannisGkoufas. Quick question, if we deploy the webhook without CA_BUNDLE, will the controller overwrite the webhook with the correct CA_BUNDLE value?

We are using kustomize kubectl -k to deploy all of this without script. That's why we want the webhook to be explicit.

from datashim.

Tomcli avatar Tomcli commented on May 24, 2024

Another way could be, if the controller deployment is deleted, the controller's finalizer logic should delete the webhook as part of terminating the pod.

from datashim.

YiannisGkoufas avatar YiannisGkoufas commented on May 24, 2024

thanks @YiannisGkoufas. Quick question, if we deploy the webhook without CA_BUNDLE, will the controller overwrite the webhook with the correct CA_BUNDLE value?

That's a good point, it actually does kubectl apply so in theory it should work. Let me test it out and get back to you

We are using kustomize kubectl -k to deploy all of this without script. That's why we want the webhook to be explicit.

I wanted to migrate everything to kustomize, but the biggest problem I faced was about customizing /var/lib/kubelet path

from datashim.

YiannisGkoufas avatar YiannisGkoufas commented on May 24, 2024

Hi @Tomcli with the latest push I am creating the mutating webhook and the secrets as an init container of dataset operator. Also I included the yamls (which would be updated by the init container) so we have all the resources in dlf.yaml
Let me know if this works for you so I can close this one.

from datashim.

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.