Giter Site home page Giter Site logo

Comments (8)

ferhatying avatar ferhatying commented on May 26, 2024 2

OCI integration is moving from experimental to full feature. See also helm/helm#10393. It's currently part of v3.8.0-rc.1.

from provider-helm.

benagricola avatar benagricola commented on May 26, 2024 1

It seems this was implemented as part of v3.5.0: helm/helm@3ad08f3

Having a bit of brainfail reading this today, but as far as I can tell this leaves the actual RegistryClient internal and just adds the experimental implementation into the existing helm pull command, and the switch between v2 and OCI based charts just involves detecting oci:// chart URLs and setting client.OCI = true.

If I'm understanding correctly, this should mean we just need to do the same detection in provider-helm and build against helm 3.5.0.

@janwillies does this match your understanding? I'll sort out a PR if so.

e: Actually, after having a more in-depth look, I think this still isn't possible, as registryClient is still internal and is not automatically instantiated onto actionConfig 😞

from provider-helm.

benagricola avatar benagricola commented on May 26, 2024

From an implementation perspective this looks pretty simple, but the V2 pull action is broken down into a couple of separate steps when using OCI images, these are:

  • NewRegistryLogin: Login to the registry at Repository using Username and Password
  • NewChartPull: Pull OCI Chart Ref from registry into local container cache. This requires a combination of Name and Version (or new Ref field?)
  • NewChartExport: Export OCI Chart from local container cache to a file. Again based on a Ref field or combination of Name and Version.

The only problem with actually doing this is that the ActionConfig.Init method (from helm) doesn't automatically add a RegistryClient instance - and the RegistryClient instantiation code (usage here) in helm is still marked internal so I suspect this needs to wait until that code is made available externally. All comments I can find suggest that was planned for V3.3 or V3.4 but I don't see any change in either of those versions 🕐

from provider-helm.

janwillies avatar janwillies commented on May 26, 2024

It seems this was implemented as part of v3.5.0: helm/helm@3ad08f3

from provider-helm.

benagricola avatar benagricola commented on May 26, 2024

helm/helm/issues/9188 - looks like moving registry out of internal is on the roadmap but no solid timescale yet, guess we just have to wait and see 🙂

from provider-helm.

echarles avatar echarles commented on May 26, 2024

+1 to get this feature

from provider-helm.

benagricola avatar benagricola commented on May 26, 2024

Updates on the helm issue above seem to suggest the registryClient will be available in Helm 3.7 or 3.8 so we'll need to wait for those releases before implementing.

from provider-helm.

ferhatying avatar ferhatying commented on May 26, 2024

Update: OCI support is now GA in Helm v3.8.0. It's not experimental anymore.

from provider-helm.

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.