MCPcopy
hub / github.com/helm/helm / ClientCreateOptionServerSideApply

Function ClientCreateOptionServerSideApply

pkg/kube/client.go:277–288  ·  view source on GitHub ↗

ClientCreateOptionServerSideApply enables performing object apply server-side see: https://kubernetes.io/docs/reference/using-api/server-side-apply/ `forceConflicts` forces conflicts to be resolved (may be used when serverSideApply enabled only) see: https://kubernetes.io/docs/reference/using-api/s

(serverSideApply, forceConflicts bool)

Source from the content-addressed store, hash-verified

275// `forceConflicts` forces conflicts to be resolved (may be used when serverSideApply enabled only)
276// see: https://kubernetes.io/docs/reference/using-api/server-side-apply/#conflicts
277func ClientCreateOptionServerSideApply(serverSideApply, forceConflicts bool) ClientCreateOption {
278 return func(o *clientCreateOptions) error {
279 if !serverSideApply && forceConflicts {
280 return errors.New("forceConflicts enabled when serverSideApply disabled")
281 }
282
283 o.serverSideApply = serverSideApply
284 o.forceConflicts = forceConflicts
285
286 return nil
287 }
288}
289
290// ClientCreateOptionDryRun requests the server to perform non-mutating operations only
291func ClientCreateOptionDryRun(dryRun bool) ClientCreateOption {

Callers 13

installCRDsMethod · 0.92
RunWithContextMethod · 0.92
performInstallMethod · 0.92
TestCreateFunction · 0.85
TestWaitFunction · 0.85
TestWaitJobFunction · 0.85
TestWaitDeleteFunction · 0.85

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…