© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
P. MartinKubernetes Programming with Gohttps://doi.org/10.1007/978-1-4842-9026-2_9

9. Working with Custom Resources

Philippe Martin1  
(1)
Blanquefort, France
 

In the previous chapter, you have seen how to declare a new custom resource to be served by the Kubernetes API using CustomResourceDefinition resources, and how to create new instances of this custom resource using kubectl. But for the moment, you do not have any Go library that allows you to work with instances of custom resources.

This chapter explores the various possibilities to work with custom resources in Go:
  • Generating code for a dedicated Clientset for the custom resource.

  • Using the unstructured ...

Get Kubernetes Programming with Go: Programming Kubernetes Clients and Operators Using Go and the Kubernetes API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.