chore: enable use-any from revive

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-01-17 07:51:57 +01:00
parent 5b1738abf8
commit cbba3bdde7
139 changed files with 798 additions and 799 deletions

View File

@@ -47,6 +47,6 @@ func GenerateYamlReport() error {
return nil
}
func AddTestSuitData(dataMap map[string]interface{}, testSuitDesc string) {
func AddTestSuitData(dataMap map[string]any, testSuitDesc string) {
test.ReportData.OtherFields[testSuitDesc] = dataMap
}

View File

@@ -478,7 +478,7 @@ func patchResources(resources *unstructured.UnstructuredList, namespace string,
".dockerconfigjson": credential,
},
}
resource.Object["imagePullSecrets"] = []map[string]interface{}{
resource.Object["imagePullSecrets"] = []map[string]any{
{
"name": "image-pull-secret",
},
@@ -559,7 +559,7 @@ func patchResources(resources *unstructured.UnstructuredList, namespace string,
return nil
}
func toUnstructured(res interface{}) (unstructured.Unstructured, error) {
func toUnstructured(res any) (unstructured.Unstructured, error) {
un := unstructured.Unstructured{}
data, err := json.Marshal(res)
if err != nil {