@@ -36,17 +36,18 @@ const (
3636 // Sandbox Manager or Sandbox Claim creates high-priority sandboxes by default.
3737 SandboxAnnotationPriority = "agents.kruise.io/sandbox-priority"
3838
39- // ShouldInjectCsiMount is the annotation key for inject csi mount plugin container.
40- // If set, the csi sidecar will be injected into the pod when the sandbox is created.
41- // The csi mount sidecar is used to mount the remote oss/nas storage to the sandbox container.
42- ShouldInjectCsiMount = "agents.kruise.io/inject-csi-plugin"
43-
44- // ShouldInjectAgentRuntime is the annotation key for inject agent runtime sidecar in init container.
45- // If set, the agent runtime sidecar will be injected into the pod when the sandbox is created.
46- // Some binary tools which are contained in the init agent runtime container. These are the basic tools for sandbox running.
47- ShouldInjectAgentRuntime = "agents.kruise.io/inject-agent-runtime"
39+ // RuntimeConfigForInjectCsiMount is a valid value for RuntimeConfig.Name.
40+ // When set, enables CSI mount sidecar injection for the sandbox.
41+ RuntimeConfigForInjectCsiMount = "csi"
42+ // RuntimeConfigForInjectAgentRuntime is a valid value for RuntimeConfig.Name.
43+ // When set, enables agent runtime sidecar injection for the sandbox.
44+ RuntimeConfigForInjectAgentRuntime = "agent-runtime"
4845)
4946
47+ type RuntimeConfig struct {
48+ Name string `json:"name"`
49+ }
50+
5051// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN!
5152// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
5253
@@ -69,6 +70,10 @@ type SandboxSpec struct {
6970 // +kubebuilder:validation:Format="date-time"
7071 ShutdownTime * metav1.Time `json:"shutdownTime,omitempty"`
7172
73+ // Runtimes - Runtime configuration for sandbox object
74+ // +optional
75+ Runtimes []RuntimeConfig `json:"runtimes,omitempty"`
76+
7277 // PauseTime - Absolute time when the sandbox will be paused automatically.
7378 // +kubebuilder:validation:Format="date-time"
7479 PauseTime * metav1.Time `json:"pauseTime,omitempty"`
0 commit comments