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

Function cleanObj

cli/add.go:100–106  ·  view source on GitHub ↗
(obj deploy.KubeObject)

Source from the content-addressed store, hash-verified

98}
99
100func cleanObj(obj deploy.KubeObject) error {
101 switch typedObj := obj.(type) {
102 case *kube.Service:
103 typedObj.Spec.ClusterIP = ""
104 }
105 return nil
106}

Callers 1

AddMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected