mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 06:16:08 -04:00
Update k8s dependencies (#308)
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
6d5cb6b581
commit
37a9dbfad2
9 changed files with 284 additions and 772 deletions
|
@ -50,7 +50,7 @@ func newStubReaderClient(t *testing.T, objects []runtime.Object, getErr, listErr
|
|||
}
|
||||
}
|
||||
|
||||
func (c *stubReaderClient) Get(_ context.Context, key client.ObjectKey, out client.Object) error {
|
||||
func (c *stubReaderClient) Get(_ context.Context, key client.ObjectKey, out client.Object, opts ...client.GetOption) error {
|
||||
gvks, _, err := c.scheme.ObjectKinds(out)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
@ -132,8 +132,8 @@ type stubReadWriterClient struct {
|
|||
client.Client
|
||||
}
|
||||
|
||||
func (c *stubReadWriterClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error {
|
||||
return c.stubReaderClient.Get(ctx, key, obj)
|
||||
func (c *stubReadWriterClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error {
|
||||
return c.stubReaderClient.Get(ctx, key, obj, opts...)
|
||||
}
|
||||
|
||||
func (c *stubReadWriterClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue