Skip to content

Creating arbitrary resources #4013

Answered by shawkins
stefanbethke asked this question in Q&A
Discussion options

You must be logged in to vote

It is mostly support in 5.11 or later - with the exception of a couple of bugs.

Those have been addressed in 6.0, so you should be able to do this however you like - with a for loop, with

kubernetesClient.resourceList(resources).inNamespace(namespace).createOrReplace();

Or with the basic server side apply support

kubernetesClient.resourceList(resources).resources().forEach(r -> r.patch(PatchContext.of(PatchType.SERVER_SIDE_APPLY), r.get()));

Replies: 1 comment 1 reply

Comment options

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

Answer selected by manusa
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