Skip to content
New issue

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

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

Already on GitHub? # to your account

User is not notified if the func.yaml namespace is different from the active one #235

Closed
lstocchi opened this issue Apr 20, 2022 · 2 comments · Fixed by #239
Closed

User is not notified if the func.yaml namespace is different from the active one #235

lstocchi opened this issue Apr 20, 2022 · 2 comments · Fixed by #239
Assignees

Comments

@lstocchi
Copy link
Contributor

To replicate

  1. add a namespace to the func.yaml (e.g default)
  2. switch namespace (e.g test)
  3. deploy the function
    This is deployed to default even if i'm connected to test and i would expect the function to be deployed there. It would be good if the user is informed somehow.
    In IJ i have this, where default is the namespace written inside the func.yaml file
    image
@sudhirverma sudhirverma self-assigned this Apr 21, 2022
@sudhirverma
Copy link
Contributor

sudhirverma commented Apr 21, 2022

in func.yaml when I deploy the functions first time it doesn't update the namespace. To compare the namespace if the user switches to a different namespace.

Screenshot 2022-04-21 at 12 37 13 PM

@lstocchi
Copy link
Contributor Author

You need to run the deploy command with the -n flag set.
If not set in func.yaml it will use the namespace where the user is currently logged in, if set it will always use the ns in func.yaml

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

Successfully merging a pull request may close this issue.

2 participants