Code Monkey home page Code Monkey logo

Comments (7)

stefanprodan avatar stefanprodan commented on June 5, 2024 1

@suryapandian Helm can't upgrade CRDs if they are placed in the /crds dir, We release CRD updates with every Flux release, so to overcome this Helm limitation we had to place the CRDs in /templates.

from helm-charts.

stefanprodan avatar stefanprodan commented on June 5, 2024

This is the expected behavior, you need to use the flux2-sync chart to create GitRepostories and Kustomizations after you’ve installed flux2.

from helm-charts.

suryapandian avatar suryapandian commented on June 5, 2024

I am having both flux2 and flux2-sync as dependencies in the chart. If flux2-sync had a helm hook that waited until the CRD was installed, I will be able to do

helm upgrade --install flux2 ./charts/flux2

instead of doing the multipline commands

helm template flux-capacitor ./charts/flux2  \
      --namespace flux2 \
      --values ./tests/flux2/values.yaml \
      --output-dir ./tests/artifacts
kubectl apply -Rf ./tests/artifacts/flux2/charts/flux2
kubectl apply -Rf ./tests/artifacts/flux2/charts/flux2-sync

I am not able to do helm upgrade --install flux2 ./charts/flux2 because gitrepositories and kustomizations is tried to get applied before the CRDs are installed.

from helm-charts.

stefanprodan avatar stefanprodan commented on June 5, 2024

I am having both flux2 and flux2-sync as dependencies in the chart.

You can't do that, you need to run them one after the other.

from helm-charts.

stefanprodan avatar stefanprodan commented on June 5, 2024

Also what's the point of using Helm with kubectl? Please see flux bootstrap that does all things for you.

from helm-charts.

suryapandian avatar suryapandian commented on June 5, 2024

I am having both flux2 and flux2-sync as dependencies in the chart.

You can't do that, you need to run them one after the other.

Okay, will do it one after another.
Could you please point me to a doc that would help me understand why I cannot do that?

from helm-charts.

suryapandian avatar suryapandian commented on June 5, 2024

hmm thanks Stefan, will read along these.

from helm-charts.

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.