Skip to content

C# client KEDA support #1604

Description

@istvangabospwc

Hello,

Is there any support for the KEDA API in the C# client? I need to query the "scaledobjects" resource definition for an AKS instance. I was able to authenticate with the csharp client to AKS and query the namespaces but was not able to find any support for the KEDA scaling extension that comes out of the box in azure.

I have found this kedacore/keda#3265 (comment) discussion and example in the python repository that seems pretty close to what I need but with the C# client.

Is there any direct or similar support as in the python example for KEDA in the csharp client? I would really appreciate getting any guidance or recommendations for my use-case.

Thank you,
István

Activity

  1. IvanJosipovic commented on Jan 13, 2025

    @IvanJosipovic
    Contributor

    Hey,

    I publish several .NET packages for popular CRDs https://github.com/IvanJosipovic/KubernetesCRDModelGen which include Keda, https://www.nuget.org/packages/KubernetesCRDModelGen.Models.keda.sh/

    Load that NuGet, then you can use this with the GenericClient

    using var client = new GenericClient(KubernetesClientConfiguration.BuildDefaultConfig(), V1alpha1ScaledJob.KubeGroup, V1alpha1ScaledJob.KubeApiVersion, V1alpha1ScaledJob.KubePluralName);
    
    await client.ListNamespacedAsync<V1alpha1ScaledJob>("default")
    
  2. istvangabospwc commented on Jan 14, 2025

    @istvangabospwc
    Author

    Thank you!

  3. locked and limited conversation to collaborators on Jan 15, 2025
  4. converted this issue into a discussion #1606 on Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions