Skip to content

Commit 717b32a

Browse files
authored
Merge pull request #3033 from shafeeqes/enh/fakeclient
✨ Nit: Correct a typo in the docstring
2 parents 9fd890c + 4cef7c9 commit 717b32a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/client/interfaces.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ type SubResourceClientConstructor interface {
9494
// - ServiceAccount token creation:
9595
// sa := &corev1.ServiceAccount{ObjectMeta: metav1.ObjectMeta{Namespace: "foo", Name: "bar"}}
9696
// token := &authenticationv1.TokenRequest{}
97-
// c.SubResourceClient("token").Create(ctx, sa, token)
97+
// c.SubResource("token").Create(ctx, sa, token)
9898
//
9999
// - Pod eviction creation:
100100
// pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: "foo", Name: "bar"}}
101-
// c.SubResourceClient("eviction").Create(ctx, pod, &policyv1.Eviction{})
101+
// c.SubResource("eviction").Create(ctx, pod, &policyv1.Eviction{})
102102
//
103103
// - Pod binding creation:
104104
// pod := &corev1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: "foo", Name: "bar"}}
105105
// binding := &corev1.Binding{Target: corev1.ObjectReference{Name: "my-node"}}
106-
// c.SubResourceClient("binding").Create(ctx, pod, binding)
106+
// c.SubResource("binding").Create(ctx, pod, binding)
107107
//
108108
// - CertificateSigningRequest approval:
109109
// csr := &certificatesv1.CertificateSigningRequest{
@@ -115,17 +115,17 @@ type SubResourceClientConstructor interface {
115115
// }},
116116
// },
117117
// }
118-
// c.SubResourceClient("approval").Update(ctx, csr)
118+
// c.SubResource("approval").Update(ctx, csr)
119119
//
120120
// - Scale retrieval:
121121
// dep := &appsv1.Deployment{ObjectMeta: metav1.ObjectMeta{Namespace: "foo", Name: "bar"}}
122122
// scale := &autoscalingv1.Scale{}
123-
// c.SubResourceClient("scale").Get(ctx, dep, scale)
123+
// c.SubResource("scale").Get(ctx, dep, scale)
124124
//
125125
// - Scale update:
126126
// dep := &appsv1.Deployment{ObjectMeta: metav1.ObjectMeta{Namespace: "foo", Name: "bar"}}
127127
// scale := &autoscalingv1.Scale{Spec: autoscalingv1.ScaleSpec{Replicas: 2}}
128-
// c.SubResourceClient("scale").Update(ctx, dep, client.WithSubResourceBody(scale))
128+
// c.SubResource("scale").Update(ctx, dep, client.WithSubResourceBody(scale))
129129
SubResource(subResource string) SubResourceClient
130130
}
131131

0 commit comments

Comments
 (0)