@@ -89,7 +89,7 @@ protected override async Task OnFileFoundAsync(ProcessRequest processRequest, ID
8989 return ;
9090 }
9191
92- this . ExtractImageReferencesFromValues ( yaml , processRequest . SingleFileComponentRecorder , file . Location ) ;
92+ this . ExtractImageReferencesFromValues ( yaml , processRequest . SingleFileComponentRecorder ) ;
9393 }
9494 catch ( Exception e )
9595 {
@@ -112,13 +112,13 @@ private static bool IsValuesFile(string fileName) =>
112112 ( fileName . EndsWith ( ".yaml" , StringComparison . OrdinalIgnoreCase ) ||
113113 fileName . EndsWith ( ".yml" , StringComparison . OrdinalIgnoreCase ) ) ;
114114
115- private void ExtractImageReferencesFromValues ( YamlStream yaml , ISingleFileComponentRecorder recorder , string fileLocation )
115+ private void ExtractImageReferencesFromValues ( YamlStream yaml , ISingleFileComponentRecorder recorder )
116116 {
117117 foreach ( var document in yaml . Documents )
118118 {
119119 if ( document . RootNode is YamlMappingNode rootMapping )
120120 {
121- this . WalkYamlForImages ( rootMapping , recorder , fileLocation ) ;
121+ this . WalkYamlForImages ( rootMapping , recorder ) ;
122122 }
123123 }
124124 }
@@ -128,7 +128,7 @@ private void ExtractImageReferencesFromValues(YamlStream yaml, ISingleFileCompon
128128 /// 1. Direct image string: `image: nginx:1.21`
129129 /// 2. Structured image object: `image: { repository: nginx, tag: "1.21" }`.
130130 /// </summary>
131- private void WalkYamlForImages ( YamlMappingNode mapping , ISingleFileComponentRecorder recorder , string fileLocation )
131+ private void WalkYamlForImages ( YamlMappingNode mapping , ISingleFileComponentRecorder recorder )
132132 {
133133 foreach ( var entry in mapping . Children )
134134 {
@@ -156,15 +156,15 @@ private void WalkYamlForImages(YamlMappingNode mapping, ISingleFileComponentReco
156156 }
157157 else if ( entry . Value is YamlMappingNode childMapping )
158158 {
159- this . WalkYamlForImages ( childMapping , recorder , fileLocation ) ;
159+ this . WalkYamlForImages ( childMapping , recorder ) ;
160160 }
161161 else if ( entry . Value is YamlSequenceNode sequenceNode )
162162 {
163163 foreach ( var item in sequenceNode )
164164 {
165165 if ( item is YamlMappingNode sequenceMapping )
166166 {
167- this . WalkYamlForImages ( sequenceMapping , recorder , fileLocation ) ;
167+ this . WalkYamlForImages ( sequenceMapping , recorder ) ;
168168 }
169169 }
170170 }
0 commit comments