-
Notifications
You must be signed in to change notification settings - Fork 243
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
Confusing message about default project. #4309
Comments
I can work on this |
/unassign @girishramnani /good-first-issue |
@dharmit: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@dharmit I would like to work on this if you don't mind. |
/assign @niconosenzo Nicolas, it's yours. Make sure to take a look at solution proposed by @kadel and ask us questions if anything's confusing. As for checking if the |
This code patch is currently lacking of user-kind verification, it will fail and exit if "default" project is being used, is there any preferred way to check if it's a kubernetes or Openshift User? |
I'm lost about why the "user" thing matters here. I think the idea is to check if the user's running k8s cluster in backend or an OCP cluster. And the way to do that would be to check if As far as user is concerned, we don't bother much about it. Please let me know if I'm missing something w.r.t your question. |
Sorry that's what I meant. So, IsProjectSupported() would be fairly enough for that means, correct ? If so, I will submit the patch code. |
Yes, |
This is a really confusing message for both Kubernetes and OpenShift users
Kubernetes
For minikube or any other Kubernetes users this message provides no value. It doesn't matter if they are using the
default
project or not.Solution
Add a condition that will check if the cluster supports
Project
resource. If not, the warning should not be displayed even if thedefault
project is being used.OpenShift
OpenShift users should not use the
default
project.But the problem is that if the user does what the warning says; run
odo project create
it won't help them, the component project name is already recorded inenv.yml
, so it will have no effect on the existing component.Solution
Not sure what to do here. I would probably make this warning error and completely prevent users from using
default
project on OpenShift.(a little bit of background why we don't users to use
default
project is in #4027 (comment))The text was updated successfully, but these errors were encountered: