Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Mock KubernetesServer in 5.4.x does not allow to update status anymore #3267

Closed
victornoel opened this issue Jun 23, 2021 · 3 comments
Closed

Comments

@victornoel
Copy link

Hi,

Since 5.4 it's not possible to update the status of a resource when using KubernetesServer.

I see this has been fixed for 5.5 though in #3138 but until 5.5 is released (maybe it's soon?), it's difficult to use v5.4.

I may be missing something obvious and it's actually possible tough… I'm using the following in my tests to simulate that a job has started:

server.client.batch().v1().jobs().inNamespace("default").withName("name").editStatus {
            return new JobBuilder(it)
                    .editOrNewStatus()
                    .withFailed(1)
                    .endStatus()
                    .build()
        }

The status is simply ignored and the resource does not change.

@shawkins
Copy link
Contributor

https://github.com/fabric8io/kubernetes-client/milestone/27 should be in about a week or so.

@victornoel
Copy link
Author

@shawkins thx, I can just wait in that case, I let you close the ticket if you don't plan to do it for 5.4.x?

@shawkins
Copy link
Contributor

I have no plans, @manusa please reopen if this seems needed for 5.4.x.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants