Giter Club home page Giter Club logo

Comments (6)

renzodavid9 avatar renzodavid9 commented on May 25, 2024 1

Hey @hgaron-blockbar! Yep, the example you added is exactly the way to configure the kubectl deployer for your use case. Behind the scene, Skaffold will first, render the manifests defined in manifests.rawYaml, and then will send them to the deploy.kubectl deployer. Hope that solves your use case. Thanks!

from skaffold.

hgaron-blockbar avatar hgaron-blockbar commented on May 25, 2024

I am having this same issue on 2.9.0; helm deployments still work in modules but rawYaml does not. If I move rawYaml to the root skaffold.yaml it will deploy correctly, but if it's inside a module, no such luck.

I have also verified skaffold correctly renders the yaml by running skaffold render > rendered.yaml and verifying the output. But any raw yaml just isn't deployed.

EDIT:
After a good deal of debugging, it looks like the rawYaml only works on the root skaffold.yaml if the requires key is omitted entirely. Even having a requires key with profiles that are not invoked breaks the rawYaml property, regardless of whether it is defined in a module or at the root skaffold.yaml.

For reference, I am also using apiVersion: skaffold/v4beta8.

from skaffold.

hgaron-blockbar avatar hgaron-blockbar commented on May 25, 2024

I downgraded to skaffold v2.8.0 and the issue persists there as well.

from skaffold.

renzodavid9 avatar renzodavid9 commented on May 25, 2024

Hello there! This is an intended behaviour: when using Skaffold modules, Skaffold itself is not able to add a default deployer. To make it work you'll need to add a deployer explicitly in the modules (deploy.*). For more context please refer to #9215 and #9138 . Thanks! 😄

from skaffold.

hgaron-blockbar avatar hgaron-blockbar commented on May 25, 2024

@renzodavid9 Forgive me but I think I misunderstand. I do have a Helm deployer present in my modules deploy.* and that works fine, but for the raw yaml manifests I'm not sure how to add a deployer?

In the v4beta8 schema, if I add a kubectl deployer there's no explicit way to define manifests (only a remoteManifests key exists). Should I just define it with an empty object?

ie.

manifests:
  rawYaml:
    - ../../manifests/*
deploy:
  kubectl: {}

Thanks for your help; cheers!

from skaffold.

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.