MCPcopy Create free account
hub / github.com/PaddlePaddle/PaddleCloud / PVCreateObject

Function PVCreateObject

pkg/sampleset/ctrls/base_controller.go:326–332  ·  view source on GitHub ↗

func(c *Controller, object client.Object, ctx *common.RequestContext) error

(c *Controller, object client.Object, ctx *common.RequestContext)

Source from the content-addressed store, hash-verified

324// func(c *Controller, object client.Object, ctx *common.RequestContext) error
325
326func PVCreateObject(c *Controller, object client.Object, ctx *common.RequestContext) error {
327 pv := object.(*v1.PersistentVolume)
328 if err := c.CreatePV(pv, ctx); err != nil {
329 return err
330 }
331 return nil
332}
333
334func PVCCreateObject(c *Controller, object client.Object, ctx *common.RequestContext) error {
335 pvc := object.(*v1.PersistentVolumeClaim)

Callers

nothing calls this directly

Calls 1

CreatePVMethod · 0.65

Tested by

no test coverage detected