@@ -154,23 +154,6 @@ impl HealthChecker for K8sHealthFluxHelmRelease {
154154 HealthCheckerError :: Generic ( "HelmRelease data is not an object" . to_string ( ) )
155155 } ) ?;
156156
157- // Check if the HelmRelease is properly updated: it should reflect the agent's configuration
158- if self
159- . k8s_client
160- . has_dynamic_object_changed ( & self . k8s_object ) ?
161- {
162- return Ok ( HealthWithStartTime :: from_unhealthy (
163- Unhealthy :: new (
164- String :: default ( ) ,
165- format ! (
166- "HelmRelease '{}' does not match the latest agent configuration" ,
167- & self . name,
168- ) ,
169- ) ,
170- self . start_time ,
171- ) ) ;
172- }
173-
174157 let status = self . get_status ( helm_release_data) ?;
175158 let conditions = self . get_status_conditions ( & status) ?;
176159
@@ -207,15 +190,6 @@ pub mod tests {
207190 fn ( & mut MockSyncK8sClient ) ,
208191 ) ;
209192 let test_cases : Vec < TestCase > = vec ! [
210- (
211- "Helm release unhealthy when the helm-release object should change" ,
212- Ok ( Unhealthy :: new( String :: default ( ) , "HelmRelease 'example-release' does not match the latest agent configuration" . to_string( ) ) . into( ) ) ,
213- |mock: & mut MockSyncK8sClient | {
214- mock. expect_get_dynamic_object( )
215- . returning( |_, _| Ok ( Some ( Arc :: new( dynamic_object( ) ) ) ) ) ;
216- mock. expect_has_dynamic_object_changed( ) . times( 1 ) . returning( |_| Ok ( true ) ) ;
217- } ,
218- ) ,
219193 (
220194 "Helm release healthy when ready and status true" ,
221195 Ok ( Healthy :: default ( ) . into( ) ) ,
@@ -337,7 +311,5 @@ pub mod tests {
337311 } ) ,
338312 } ) ) )
339313 } ) ;
340- mock. expect_has_dynamic_object_changed ( )
341- . returning ( |_| Ok ( false ) ) ;
342314 }
343315}
0 commit comments