set namespace on create
This commit is contained in:
parent
986e3d3c35
commit
e0a651bfc3
@ -53,7 +53,9 @@ type Client interface {
|
||||
|
||||
// Create creates new API object
|
||||
func (c *client) Create(r *Resource, opts ...CreateOption) error {
|
||||
var options CreateOptions
|
||||
options := CreateOptions{
|
||||
Namespace: c.opts.Namespace,
|
||||
}
|
||||
for _, o := range opts {
|
||||
o(&options)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user