You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// WithContext sets the context for the next call of either GroupVersionKindFor or IsObjectNamespaced.
124
+
// Since the signature of these methods does not allow passing a context, and the retrying can not be cancelled without one,
125
+
// this method is required to inject the context to be used for the aforementioned methods.
126
+
// Note that any function of this Client that actually retries an operation will reset this context, but only for GroupVersionKindFor and IsObjectNamespaced it will actually be used.
127
+
// The intended use of this method is something like this:
128
+
//
129
+
// c.WithContext(ctx).GroupVersionKindFor(obj)
130
+
// c.WithContext(ctx).IsObjectNamespaced(obj)
131
+
//
132
+
// If no context is injected via this method, both GroupVersionKindFor and IsObjectNamespaced will use the default context.Background().
0 commit comments