Skip to content

KubernetesClient & KubernetesClient.Models diverged #1424

Closed

Description

@buehler

Describe the bug
Recently, the KubernetesClient version 12.1.1 came out. However, the base models (KubernetesClient.Models) still are on version 12.0.16. This creates an issue when referencing both packages.

Expected behavior
Both packages should be on the same version or even better: KubernetesClient depends on the Models package to create a proper dependency. This would allow package authors to create "abstractions" packages without any issues when upgrading the Kubernetes Client package.

Regards

Activity

  1. tg123 commented on Oct 6, 2023

    @tg123
    Member

    see #1407 for reason.
    let us know if you can create ext using KubernetesClient only

  2. buehler commented on Oct 6, 2023

    @buehler
    Author

    Hey @tg123
    Thanks for the prompt response!

    Since KubernetesClient relies on net6.0 and newer, I cannot create a netstandard2.0 or 2.1 library with only abstractions in it.

    I actually only really need "IKubernetesObject" and "IKubernetesObject".

    But yeah, maybe I can drop the netstandard idea again in favor of newer framework support.

    (https://github.com/buehler/dotnet-operator-sdk/tree/main/src/KubeOps.Abstractions is the source of my troubles)

    I loved the idea of KubernetesClient.Models to actually only have all models in that package. But I can totally understand the move ;-)

    What do you think about the matter? I could totally drop netstandard and just use .net, however this was a more or less requested feature in the SDK package.

  3. tg123 commented on Oct 6, 2023

    @tg123
    Member

    you can use KubernetesClient.Classic it contains everything for netstandard2.0

  4. buehler commented on Oct 9, 2023

    @buehler
    Author

    Ty :-)

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