Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger resources without namespace can not be created #214

Closed
dtaniwaki opened this issue Mar 8, 2019 · 2 comments
Closed

Trigger resources without namespace can not be created #214

dtaniwaki opened this issue Mar 8, 2019 · 2 comments
Assignees

Comments

@dtaniwaki
Copy link
Member

Describe the bug

I found omitting namespace in trigger resources causes an error in this line.

return fmt.Errorf("failed to create resource object. err: %+v", err)

Here's the actual error log.

2019-03-08T11:01:48Z | error | msg: trigger failed to execute |  error="failed to create resource object. err: an empty namespace may not be set during creation" sensor-name:hdfs-sensor trigger-name:hdfs-workflow-trigger

To Reproduce

Omit namespace in your trigger resources.

Expected behavior

// defaults to the service account namespace

This line describes the default namespace is the namespace of the service account. However, it seems the default namespace is not applied.

I think the namespace of the service account is hard to imagine. Should we use the namespace of the sensor, or default namespace?

Screenshots

N/A

Environment (please complete the following information):

  • OS: macOS
  • Browser: N/A
  • Version: N/A

Additional context

N/A

@VaibhavPage
Copy link
Contributor

VaibhavPage commented Mar 8, 2019

Hmm... Somehow I thought this was taken care of. I think we should fall back to Sensor namespace mainly because many users install argo and argo-events in the same namespace.

@dtaniwaki
Copy link
Member Author

I’ll fix it like so!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants