MCPcopy
hub / github.com/apecloud/kubeblocks / Action

Method Action

pkg/operations/type.go:38–38  ·  view source on GitHub ↗

Action The action duration should be short. if it fails, it will be reconciled by the OpsRequest controller. Do not patch OpsRequest status in this function with k8s client, just modify the status of ops. The opsRequest controller will patch it to the k8s apiServer.

(reqCtx intctrlutil.RequestCtx, cli client.Client, opsResource *OpsResource)

Source from the content-addressed store, hash-verified

36 // Do not patch OpsRequest status in this function with k8s client, just modify the status of ops.
37 // The opsRequest controller will patch it to the k8s apiServer.
38 Action(reqCtx intctrlutil.RequestCtx, cli client.Client, opsResource *OpsResource) error
39
40 // ReconcileAction loops till the operation is completed.
41 // return OpsRequest.status.phase and requeueAfter time.

Implementers 14

BackupOpsHandlerpkg/operations/backup.go
StopOpsHandlerpkg/operations/stop.go
StartOpsHandlerpkg/operations/start.go
ExposeOpsHandlerpkg/operations/expose.go
reconfigureActionpkg/operations/reconfigure.go
restartOpsHandlerpkg/operations/restart.go
verticalScalingHandlerpkg/operations/vertical_scaling.go
horizontalScalingOpsHandlerpkg/operations/horizontal_scaling.go
CustomOpsHandlerpkg/operations/custom.go
rebuildInstanceOpsHandlerpkg/operations/rebuild_instance.go
volumeExpansionOpsHandlerpkg/operations/volume_expansion.go
RestoreOpsHandlerpkg/operations/restore.go

Calls

no outgoing calls

Tested by

no test coverage detected