@@ -185,20 +185,18 @@ func deployContent(ctx context.Context, deployingToMgmtCluster bool, destConfig
185
185
Name : referencedObject .GetName (),
186
186
}
187
187
188
- err = validateUnstructred (ctx , deployingToMgmtCluster , destConfig , destClient , referencedUnstructured , ref ,
189
- configv1alpha1 .FeatureResources , clusterSummary , logger )
188
+ err = validateUnstructred (ctx , deployingToMgmtCluster , referencedUnstructured , clusterSummary , logger )
190
189
if err != nil {
191
190
return nil , err
192
191
}
193
192
194
- return deployUnstructured (ctx , deployingToMgmtCluster , destConfig , destClient , referencedUnstructured , ref ,
193
+ return deployUnstructured (ctx , destConfig , destClient , referencedUnstructured , ref ,
195
194
configv1alpha1 .FeatureResources , clusterSummary , logger )
196
195
}
197
196
198
- func validateUnstructred (ctx context.Context , deployingToMgmtCluster bool , destConfig * rest.Config ,
199
- destClient client.Client , referencedUnstructured []* unstructured.Unstructured , referencedObject * corev1.ObjectReference ,
200
- featureID configv1alpha1.FeatureID , clusterSummary * configv1alpha1.ClusterSummary , logger logr.Logger ,
201
- ) error {
197
+ func validateUnstructred (ctx context.Context , deployingToMgmtCluster bool ,
198
+ referencedUnstructured []* unstructured.Unstructured , clusterSummary * configv1alpha1.ClusterSummary ,
199
+ logger logr.Logger ) error {
202
200
203
201
for i := range referencedUnstructured {
204
202
policy := referencedUnstructured [i ]
@@ -228,7 +226,7 @@ func validateUnstructred(ctx context.Context, deployingToMgmtCluster bool, destC
228
226
// Returns an error if one occurred. Otherwise it returns a slice containing the name of
229
227
// the policies deployed in the form of kind.group:namespace:name for namespaced policies
230
228
// and kind.group::name for cluster wide policies.
231
- func deployUnstructured (ctx context.Context , deployingToMgmtCluster bool , destConfig * rest.Config ,
229
+ func deployUnstructured (ctx context.Context , destConfig * rest.Config ,
232
230
destClient client.Client , referencedUnstructured []* unstructured.Unstructured , referencedObject * corev1.ObjectReference ,
233
231
featureID configv1alpha1.FeatureID , clusterSummary * configv1alpha1.ClusterSummary , logger logr.Logger ,
234
232
) (reports []configv1alpha1.ResourceReport , err error ) {
0 commit comments