errorOnNameClient is a thin client wrapper that injects an error for a specific secret name.
| 332 | |
| 333 | // errorOnNameClient is a thin client wrapper that injects an error for a specific secret name. |
| 334 | type errorOnNameClient struct { |
| 335 | client.Client |
| 336 | failName string |
| 337 | failErr error |
| 338 | } |
| 339 | |
| 340 | func (e *errorOnNameClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error { |
| 341 | if secret, ok := obj.(*corev1.Secret); ok { |
nothing calls this directly
no outgoing calls
no test coverage detected