Kubernetes Code Generator Tags Walkthrough

August 17, 2019    kubernetes codegen walkthrough

Kubernetes Code Generator Tags Walkthrough

There are 4 categories of code generators function:

  • Deepcopy generator:deepcopy-gen
  • Clientset generator: client-gen
  • Informers generator: informer-gen
  • Listers generator: lister-gen

Deepcopy generator function

It has two type or categories of tags: 1. Global tags 2. Local tags

Deepcopy generator function: Global tags

// +k8s:deepcopy-gen=package: This tag is used to call the deepcopy-gen function to create deepcopy methods by default for all the Go types present in current package.


comments powered by Disqus