Skip to content

Deserialization Error During Server-Side Apply (SSA) with Protobuf Content Type #3344

@filipcirtog

Description

@filipcirtog

Hello team!

Problem Statement

We're migrating from client.Patch(Apply) to client.Apply(). While making this transition, we've encountered the following issue.

Observed Behavior

When using client.Apply together with a configuration where config.ContentType = "application/vnd.kubernetes.protobuf", an error occurs during the deserialization process.

The protobuf decoder fails to parse the configuration object and throws the following error: object %v does not implement the protobuf marshalling interface and cannot be encoded to a *client.applyconfigurationRuntimeObject protobuf message

Steps to Reproduce

To reproduce the issue, you can add cfg.ContentType = "application/vnd.kubernetes.protobuf" in the client_suite_test.go file and execute the tests. This triggers the error during the deserialization stage.

Please let us know if we are doing anything wrong or this is indeed a bug. Thank you!

Image Image Image

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