Giter Site home page Giter Site logo

Comments (4)

clux avatar clux commented on June 26, 2024

this is more kube related than k8s-openapi since you are bypassing the structs entirely. i don't use create much myself since it's an older pattern, but on a suspicious note, are you passing string serialised yaml to the api (which takes json)? see a normal create example.

you can also increase the log level of kube to see what goes on the wire.

from k8s-openapi.

RileySeaburg avatar RileySeaburg commented on June 26, 2024

Hey @clux I appreciate your swift response.

I'm not sure what you referring to in regards to "bypassing the structs".

I can confirm that the Yaml version does work for creating namespaces.
It also works for creating deployments.

It just seems to get stuck on other items such as ingresses.

I'll go ahead and serialize my yaml to json and see what I come up with.

Thanks again and great project.

from k8s-openapi.

Arnavion avatar Arnavion commented on June 26, 2024

@clux I'm surprised this works as well, but also the doc of Api::create does specifically allow it:

This function requires a type that Serializes to K, which can be:

  1. Raw string YAML

from k8s-openapi.

RileySeaburg avatar RileySeaburg commented on June 26, 2024

Lol @Arnavion

error prone (run-time errors on
typos due to failed serialize
attempts)

Can confirm this is true.

from k8s-openapi.

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.