MCPcopy
hub / github.com/redspread/spread / deepCopy

Function deepCopy

pkg/deploy/deployment.go:237–243  ·  view source on GitHub ↗

deepCopy creates a deep copy of the Kubernetes object given.

(obj KubeObject)

Source from the content-addressed store, hash-verified

235
236// deepCopy creates a deep copy of the Kubernetes object given.
237func deepCopy(obj KubeObject) (KubeObject, error) {
238 copy, err := kube.Scheme.DeepCopy(obj)
239 if err != nil {
240 return nil, err
241 }
242 return copy.(KubeObject), nil
243}
244
245var (
246 // ErrorConflict is returned when an object with an identical path already exists in the Deployment.

Callers 1

AddMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected