| 29 | ) |
| 30 | |
| 31 | type VineyardEngine struct { |
| 32 | runtime *datav1alpha1.VineyardRuntime |
| 33 | name string |
| 34 | namespace string |
| 35 | runtimeType string |
| 36 | engineImpl string |
| 37 | runtimeInfo base.RuntimeInfoInterface |
| 38 | Log logr.Logger |
| 39 | client.Client |
| 40 | //When reaching this gracefulShutdownLimits, the system is forced to clean up. |
| 41 | gracefulShutdownLimits int32 |
| 42 | MetadataSyncDoneCh chan base.MetadataSyncResult |
| 43 | retryShutdown int32 |
| 44 | Recorder record.EventRecorder |
| 45 | *ctrl.Helper |
| 46 | } |
| 47 | |
| 48 | func Build(id string, ctx cruntime.ReconcileRequestContext) (base.Engine, error) { |
| 49 | engine := &VineyardEngine{ |
nothing calls this directly
no outgoing calls
no test coverage detected