set namespace on create

This commit is contained in:
Asim Aslam 2020-04-23 18:10:13 +01:00
parent 986e3d3c35
commit e0a651bfc3

View File

@ -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)
}