mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-08 22:23:15 +00:00
chore: enable use-any from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user