mergeWith

Takes existing CustomResourceOptions values and prepares type-safe builder to merge current CustomResourceOptions over the same properties of given CustomResourceOptions.

The original options objects will be unchanged.

Conceptually property merging follows these basic rules:

  • If the property is a collection, the final value will be a collection containing the values from each option object.

  • Simple scalar values from "options2" (i.e. "string", "int", "bool") will replace the values of "options1".

  • "null" values in "options2" will be ignored.