@@ -47,7 +47,7 @@ class RCloneSettings(SettingsLibraryRCloneSettings):
4747
4848 @field_validator ("R_CLONE_POLL_INTERVAL_SECONDS" )
4949 @classmethod
50- def enforce_r_clone_requirement (cls , v : int , info : ValidationInfo ) -> PositiveInt :
50+ def _enforce_r_clone_requirement (cls , v : int , info : ValidationInfo ) -> PositiveInt :
5151 dir_cache_time = info .data ["R_CLONE_DIR_CACHE_TIME_SECONDS" ]
5252 if v >= dir_cache_time :
5353 msg = f"R_CLONE_POLL_INTERVAL_SECONDS={ v } must be lower than R_CLONE_DIR_CACHE_TIME_SECONDS={ dir_cache_time } "
@@ -85,7 +85,7 @@ class PlacementSettings(BaseCustomSettings):
8585
8686 @field_validator ("DIRECTOR_V2_GENERIC_RESOURCE_PLACEMENT_CONSTRAINTS_SUBSTITUTIONS" )
8787 @classmethod
88- def warn_if_any_values_provided (cls , value : dict ) -> dict :
88+ def _warn_if_any_values_provided (cls , value : dict ) -> dict :
8989 if len (value ) > 0 :
9090 warnings .warn ( # noqa: B028
9191 "Generic resources will be replaced by the following "
@@ -160,8 +160,8 @@ class DynamicSidecarSettings(BaseCustomSettings, MixinLoggingSettings):
160160
161161 @field_validator ("DYNAMIC_SIDECAR_MOUNT_PATH_DEV" , mode = "before" )
162162 @classmethod
163- def auto_disable_if_production (cls , v , values ):
164- if v and values .get ("DYNAMIC_SIDECAR_SC_BOOT_MODE" ) == BootModeEnum .PRODUCTION :
163+ def _auto_disable_if_production (cls , v , info : ValidationInfo ):
164+ if v and info . data .get ("DYNAMIC_SIDECAR_SC_BOOT_MODE" ) == BootModeEnum .PRODUCTION :
165165 _logger .warning (
166166 "In production DYNAMIC_SIDECAR_MOUNT_PATH_DEV cannot be set to %s, enforcing None" ,
167167 v ,
@@ -171,17 +171,17 @@ def auto_disable_if_production(cls, v, values):
171171
172172 @field_validator ("DYNAMIC_SIDECAR_EXPOSE_PORT" , mode = "before" )
173173 @classmethod
174- def auto_enable_if_development (cls , v , values ):
174+ def _auto_enable_if_development (cls , v , info : ValidationInfo ):
175175 if (
176- boot_mode := values .get ("DYNAMIC_SIDECAR_SC_BOOT_MODE" )
176+ boot_mode := info . data .get ("DYNAMIC_SIDECAR_SC_BOOT_MODE" )
177177 ) and boot_mode .is_devel_mode ():
178178 # Can be used to access swagger doc from the host as http://127.0.0.1:30023/dev/doc
179179 return True
180180 return v
181181
182182 @field_validator ("DYNAMIC_SIDECAR_IMAGE" , mode = "before" )
183183 @classmethod
184- def strip_leading_slashes (cls , v : str ) -> str :
184+ def _strip_leading_slashes (cls , v : str ) -> str :
185185 return v .lstrip ("/" )
186186
187187 @field_validator ("DYNAMIC_SIDECAR_LOG_LEVEL" )
0 commit comments