Skip to content

How to update a subresource like "status" with KubernetesClient? #882

Answered by jefflill
jefflill asked this question in Q&A
Discussion options

You must be logged in to vote

@tg123: Thanks!!! This is what I was looking for:

client.CustomObjects.PatchClusterCustomObjectStatus()

I don't know how I didn't find this myself.

You might want to cover these topics when you do your write up:

  • RBAC role: be sure to add a rule that allows patch for MYRESOURCE/status
  • I first thought that the patch was rooted under the status property, but its actually rooted top of the document object.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@jefflill
Comment options

@tg123
Comment options

tg123 Jun 2, 2022
Maintainer

@tg123
Comment options

tg123 Jun 2, 2022
Maintainer

Comment options

You must be logged in to vote
1 reply
@tg123
Comment options

tg123 Jun 3, 2022
Maintainer

Answer selected by jefflill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants