Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 3672c86

Browse files
committed
Remove unnecessary fmt.Sprintf
Signed-off-by: Andreas Jaggi <andreas.jaggi@waterwave.ch>
1 parent 4a7d0c6 commit 3672c86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/suite/cases/impersonation/impersonation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ var _ = framework.CasesDescribe("Impersonation", func() {
7272
By("Creating ClusterRole for system:anonymous to impersonate")
7373
roleImpersonate, err := f.Helper().KubeClient.RbacV1().ClusterRoles().Create(context.TODO(), &rbacv1.ClusterRole{
7474
ObjectMeta: metav1.ObjectMeta{
75-
GenerateName: fmt.Sprintf("test-user-role-impersonate-"),
75+
GenerateName: "test-user-role-impersonate-",
7676
},
7777
Rules: []rbacv1.PolicyRule{
7878
{APIGroups: []string{""}, Resources: []string{"users"}, Verbs: []string{"impersonate"}},
@@ -83,7 +83,7 @@ var _ = framework.CasesDescribe("Impersonation", func() {
8383
By("Creating Role for user foo to list Pods")
8484
rolePods, err := f.Helper().KubeClient.RbacV1().Roles(f.Namespace.Name).Create(context.TODO(), &rbacv1.Role{
8585
ObjectMeta: metav1.ObjectMeta{
86-
GenerateName: fmt.Sprintf("test-user-role-pods-"),
86+
GenerateName: "test-user-role-pods-",
8787
},
8888
Rules: []rbacv1.PolicyRule{
8989
{APIGroups: []string{""}, Resources: []string{"pods"}, Verbs: []string{"get", "list"}},

0 commit comments

Comments
 (0)