@@ -111,7 +111,7 @@ type SlurmClusterSpec struct {
111111 // PlugStackConfig represents the Plugin stack configurations in `plugstack.conf`.
112112 //
113113 // +kubebuilder:validation:Optional
114- // +kubebuilder:default={ pyxis: { required: true, containerImageSave : "/var/cache/enroot-container-images/ " }, ncclDebug: { required: false, enabled: false, logLevel: "INFO", outputToFile: true, outputToStdOut: false, outputDirectory: "/opt/soperator-outputs/nccl_logs" } }
114+ // +kubebuilder:default={ pyxis: { required: true, importerPath : "/opt/slurm_scripts/pyxis_caching_importer.sh " }, ncclDebug: { required: false, enabled: false, logLevel: "INFO", outputToFile: true, outputToStdOut: false, outputDirectory: "/opt/soperator-outputs/nccl_logs" } }
115115 PlugStackConfig PlugStackConfig `json:"plugStackConfig,omitempty"`
116116
117117 // SConfigController defines the desired state of controller that watches after configs
@@ -214,7 +214,7 @@ type PlugStackConfig struct {
214214 // Pyxis represents the 'Pyxis' SPANK plugin configuration.
215215 //
216216 // +kubebuilder:validation:Optional
217- // +kubebuilder:default={ required: true, containerImageSave : "/var/cache/enroot-container-images/ " }
217+ // +kubebuilder:default={ required: true, importerPath : "/opt/slurm_scripts/pyxis_caching_importer.sh " }
218218 Pyxis PluginConfigPyxis `json:"pyxis,omitempty"`
219219
220220 // NcclDebug represents the 'NCCL Debug' SPANK plugin configuration.
@@ -239,6 +239,14 @@ type PluginConfigPyxis struct {
239239 // +kubebuilder:default=true
240240 Required * bool `json:"required,omitempty"`
241241
242+ // Path to the executable for pyxis importer extension.
243+ // File should be available to execute for every user in Slurm.
244+ // More docs: https://github.com/NVIDIA/pyxis/tree/v0.23.0/importers.
245+ //
246+ // +kubebuilder:validation:Optional
247+ // +kubebuilder:default="/opt/slurm_scripts/pyxis_caching_importer.sh"
248+ ImporterPath string `json:"importerPath,omitempty"`
249+
242250 // ContainerImageSave represents an absolute path to the file or directory where SquashFS files will be stored.
243251 // If the specified file or directory already exists, it will be reused.
244252 // If the path does not exist, it will be created.
@@ -248,7 +256,7 @@ type PluginConfigPyxis struct {
248256 // If the option argument is empty (""), SquashFS files will not be stored.
249257 //
250258 // +kubebuilder:validation:Optional
251- // +kubebuilder:default="/var/cache/enroot-container-images/ "
259+ // +kubebuilder:deprecation:warning="The ContainerImageSave field is deprecated and will be removed in a future release "
252260 ContainerImageSave string `json:"containerImageSave,omitempty"`
253261}
254262
0 commit comments