You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m currently working on reusing a struct that defines a container configuration for both jobs and deployments. Since these configurations can have different values (e.g., the image field), I structured it like this:
If Container specifies image:abc and AdminDeploymentContainer specifies image: xyz, the admin deployment should run with xyz, while everything else uses abc.
I was considering adding a Merge function to handle these cases, in addition to the existing DeepCopyInto function.
Does this approach make sense, or is there an existing PR or issue I might have overlooked?
The text was updated successfully, but these errors were encountered:
TrayserCassa
changed the title
Merg e CRD objects into each other
Merge CRD objects into each other
Dec 20, 2024
Hi,
I’m currently working on reusing a struct that defines a container configuration for both jobs and deployments. Since these configurations can have different values (e.g., the image field), I structured it like this:
The goal is as follows:
If Container specifies
image:abc
and AdminDeploymentContainer specifiesimage: xyz
, the admin deployment should run withxyz
, while everything else usesabc
.I was considering adding a Merge function to handle these cases, in addition to the existing DeepCopyInto function.
Does this approach make sense, or is there an existing PR or issue I might have overlooked?
The text was updated successfully, but these errors were encountered: