GithubHelp home page GithubHelp logo

Comments (11)

Disturbing avatar Disturbing commented on August 10, 2024 1

I was able to access unstable0066 - Integrating it and testing today. Should have a response (at least an update) in the next 6-9 hours on my end.

Thanks for moving quickly on this - looking forward to sharing the results.

from dotnet-kube-client.

Disturbing avatar Disturbing commented on August 10, 2024 1

from dotnet-kube-client.

Disturbing avatar Disturbing commented on August 10, 2024 1

from dotnet-kube-client.

tintoy avatar tintoy commented on August 10, 2024

Hi - do you mean the client also needs to expose the ReplicaSets API?

Assuming that's what you mean, I'll go ahead and add it; won't take long :)

from dotnet-kube-client.

Disturbing avatar Disturbing commented on August 10, 2024

Yes, that's correct - looking to see if the replicasets API can be exposed?

from dotnet-kube-client.

tintoy avatar tintoy commented on August 10, 2024

Yep, sure - can do, give me 2 mins :)

from dotnet-kube-client.

Disturbing avatar Disturbing commented on August 10, 2024

Awesome - awaiting for it - if you can push this hotfix to NUGET - you've got kinthub's love for life. <3 I'll be testing it today.

from dotnet-kube-client.

tintoy avatar tintoy commented on August 10, 2024

If I can push a new build of the packages to a MyGet feed (https://www.myget.org/feed/Packages/dotnet-kube-client) would you be willing to try it out for me?

If you're happy with it, I'll publish the new version to NuGet as well.

from dotnet-kube-client.

tintoy avatar tintoy commented on August 10, 2024

Ok, I've published new packages (version is 2.0.0-unstable0066) to the feed at https://www.myget.org/feed/Packages/dotnet-kube-client - let me know if you have problems accessing it or don't have time to try it out.

from dotnet-kube-client.

tintoy avatar tintoy commented on August 10, 2024

BTW, I've tried this out myself and it works for me so hopefully it'll do what you want :)

using KubeClient;
using KubeClient.Extensions.KubeConfig.Models;
using KubeClient.Models;

Config config = Config.Load(new FileInfo(
    Path.Combine(
        Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
        ".kube",
        "config"
    )
));

KubeClientOptions clientOptions = config.ToKubeClientOptions(defaultKubeNamespace: "kube-system");
using (KubeApiClient client = KubeApiClient.Create(clientOptions))
{
    List<ReplicaSetV1Beta1> replicaSets = await client.ReplicaSetsV1Beta1().List();
    
    Log.Information("Found {ReplicaSetCount} ReplicaSets.", replicaSets.Count);

    foreach (ReplicaSetV1Beta1 replicaSet in replicaSets)
        Log.Information("ReplicaSet: {@ReplicaSet}", replicaSet);
}

(you can skip the KubeConfig stuff if you're not getting your connection settings ~/.kube/config)

from dotnet-kube-client.

tintoy avatar tintoy commented on August 10, 2024

Hi @Disturbing - have you had a chance to try this out? Did it work for you?

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.