Git Product home page Git Product logo

Comments (11)

tintoy avatar tintoy commented on July 17, 2024 2

See 9d11ac1 for details of what was fixed. I'll push out a new version shortly.

from dotnet-kube-client.

vascofernandes avatar vascofernandes commented on July 17, 2024 1

Just for completeness :)

$ kubectl version

Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.3", GitCommit:"2bba0127d85d5a46ab4b778548be28623b32d0b0", GitTreeState:"clean", BuildDate:"2018-05-21T09:17:39Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"windows/amd64"}

Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.5", GitCommit:"753b2dbc622f5cc417845f0ff8a77f539a4213ea", GitTreeState:"clean", BuildDate:"2018-11-26T14:31:35Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}

And thanks for the new version.

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024 1

Thanks!

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024

Hi - thanks for reporting this, Iā€™m going to take a quick look at the OpenAPI document and see what it says we should expect there. What version of K8s are you using?

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024

Ok, this is a little odd - according to the K8s docs, StatusV1.Status is always supposed to be a string (Success or Failure):

https://kubernetes.io/docs/reference/federation/v1/definitions/#_v1_status

Let me play around with an actual instance of the K8s API and see what I get...

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024

Oh, right, never mind - I just realised (need my morning coffee!), this relates to #55.

from dotnet-kube-client.

vascofernandes avatar vascofernandes commented on July 17, 2024

I will check on the version.

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024

No worries - I'm about to add a fix for this (we recently updated the other resource clients to handle this, but I must have somehow missed the v1/Namespace client).

The problem was that some successful delete operations can return either a StatusV1 or a model representing the resource state before it was deleted (in this case a NamespaceV1, which has the correct properties for deserialisation). Only way to tell is to check the kind and apiVersion in the response body. Which we do now, for certain operations.

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024

You're welcome :)

I have published v2.2.4 (but it may take a while for NuGet to index the packages).

from dotnet-kube-client.

tintoy avatar tintoy commented on July 17, 2024

(if you need packages sooner that NuGet can index them, they are also published to this MyGet feed: https://www.myget.org/F/dotnet-kube-client/api/v3/index.json)

from dotnet-kube-client.

vascofernandes avatar vascofernandes commented on July 17, 2024

Tested and confirmed to be working fine.

from dotnet-kube-client.

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.