Skip to content

BadRequest: the name of the object (admin based on URL) was undeterminable: name must be provided #1214

Closed
@bhadreshpanchal88

Description

@bhadreshpanchal88

Describe the bug
I am getting BadRequest response while updating the deployment.
It was working fine with older version. I recently upgraded k8s client to 10.0.1

Kubernetes C# SDK Client Version
10.0.1

Server Kubernetes Version
1.25.6

Dotnet Runtime Version
net6

To Reproduce
Steps to reproduce the behavior:
Try updating the deployment,
PatchNamespacedDeployment(V1Patch, Name, NamespaceName)

Error
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "the name of the object (admin based on URL) was undeterminable: name must be provided",
"reason": "BadRequest",
"code": 400
}

Expected behavior
A clear and concise description of what you expected to happen.

KubeConfig
If applicable, add a KubeConfig file with secrets redacted.

Where do you run your app with Kubernetes SDK (please complete the following information):

  • OS: Linux
  • Environment: container
  • Cloud: Azure

Additional context
I am able to update the deployment image, but not the entire deployment with full json data.

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