mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
unnecessary use of fmt.Sprintf (#2531)
Signed-off-by: slayer321 <sachin.maurya7666@gmail.com>
This commit is contained in:
parent
a42e944c22
commit
787d6de696
4 changed files with 4 additions and 4 deletions
|
@ -99,7 +99,7 @@ func ProcessOverlay(log logr.Logger, ruleName string, overlay interface{}, resou
|
|||
|
||||
// rule application successfully
|
||||
resp.Status = response.RuleStatusPass
|
||||
resp.Message = fmt.Sprintf("successfully processed overlay")
|
||||
resp.Message = string("successfully processed overlay")
|
||||
resp.Patches = patches
|
||||
|
||||
return resp, patchedResource
|
||||
|
|
|
@ -62,7 +62,7 @@ func ProcessPatchJSON6902(ruleName string, patchesJSON6902 []byte, resource unst
|
|||
}
|
||||
|
||||
resp.Status = response.RuleStatusPass
|
||||
resp.Message = fmt.Sprintf("successfully process JSON6902 patches")
|
||||
resp.Message = string("successfully process JSON6902 patches")
|
||||
resp.Patches = patchesBytes
|
||||
return resp, patchedResource
|
||||
}
|
||||
|
|
|
@ -86,7 +86,7 @@ func ProcessPatches(log logr.Logger, ruleName string, mutation kyverno.Mutation,
|
|||
|
||||
// JSON patches processed successfully
|
||||
resp.Status = response.RuleStatusPass
|
||||
resp.Message = fmt.Sprintf("successfully process JSON patches")
|
||||
resp.Message = string("successfully process JSON patches")
|
||||
resp.Patches = patches
|
||||
return resp, patchedResource
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ func Test_Validate_Flux_Sets(t *testing.T) {
|
|||
By(fmt.Sprintf("Test to validate objects: \"%s\"", test.TestName))
|
||||
|
||||
// Clean up Resources
|
||||
By(fmt.Sprintf("Cleaning Cluster Policies"))
|
||||
By(string("Cleaning Cluster Policies"))
|
||||
e2eClient.CleanClusterPolicies(policyGVR)
|
||||
// Clear Namespace
|
||||
By(fmt.Sprintf("Deleting Namespace: \"%s\"", nspace))
|
||||
|
|
Loading…
Add table
Reference in a new issue