Giter VIP home page Giter VIP logo

Comments (4)

btwseeu78 avatar btwseeu78 commented on May 27, 2024 1

The error about patch and transform is self explanatory and as of now i don't want two version of function,but maybe be useful in future provided we fix crd for input i don't have a use case as of now on that.

My only concern is that individual functions should be independent of each other since they don't share anything between them,function sequencer should be in healthy state irrespective of whatever happening for patch and transform.

Function should be independent of each other they use diff input crds,runs on diff pods why should it be dependent on another I don't believe that should the way it should work.

from crossplane.

jbw976 avatar jbw976 commented on May 27, 2024

Thanks for opening this issue and providing more context @btwseeu78!

I'd love to understand your scenario a bit better - is there a reason you're hoping to have more than 1 version of function-patch-and-transform installed in the control plane? what does your ideal outcome look like if your scenario worked as intended? 🤔

I think in general it's not supported to install 2 copies of the same function right now - I can essentially reproduce this same scenario just installing function-patch-and-transform twice, without function-sequencer. I think for function-sequencer, you're getting the error message about function-patch-and-transform in the lock file, which is a bit misleading, because the lock file as a whole is in an unsupported state due to the duplicated functions, and therefore the package manager can't even try to think about function-sequencer's dependencies (of which there are actually none). I think this is what's happening here 😇

Here's a repro of this scenario with just 2 function-patch-and-transform:

apiVersion: pkg.crossplane.io/v1beta1
kind: Function
metadata:
  name: function-patch-and-transform
spec:
  package: xpkg.upbound.io/crossplane-contrib/function-patch-and-transform:v0.4.0
apiVersion: pkg.crossplane.io/v1beta1
kind: Function
metadata:
  name: function-patch-and-transform-2
spec:
  package: xpkg.upbound.io/crossplane-contrib/function-patch-and-transform:v0.4.0

from crossplane.

phisco avatar phisco commented on May 27, 2024

Yes, we could probably avoid getting the lock in a knowingly inconsistent state beforehand 🤔

from crossplane.

phisco avatar phisco commented on May 27, 2024

Related old issue: #3423

from crossplane.

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.