kubebuilder icon indicating copy to clipboard operation
kubebuilder copied to clipboard

Access resource of another CRD

Open shach33 opened this issue 1 year ago • 0 comments
trafficstars

What do you want to happen?

I am creating a CR controller where I get a configuration value. I need to further go and edit this value into the config of another CR.

For example, I take a namespace name 'x' and I need to add a new pipeline in another CR 'y'. Manually I would do

kubectl edit y

and then change. However I am trying to do it using kubebuilder through my CR. Is it even possible? How can I access resources of another CR in my operator.

Extra Labels

No response

shach33 avatar Mar 04 '24 07:03 shach33