-
Notifications
You must be signed in to change notification settings - Fork 261
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
service update #12
Comments
/milestone v0.1.0 |
@csantanapr: You must be a member of the knative/knative-milestone-maintainers github team to set the milestone. 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. |
OK, so maybe this one can be my next victim :) @sixolet are you thinking update for all params but the image, so for instance: kn service update old-name --name new-name --request-cpu 1000m --limits-memory 1024Mi This would update the service's name to kn service update new-name --env NEW_KEY=NEW_VAL KEY=NEW_VAL --limits-cpu 1000m This would update the service with And so on. |
Do we have (or is it planned) to have a For an analogy to kubectl: kubectl uses I'm not sure what would be nicer in our context:
or
I think the former is more straight forward if you want to support multiple ways for e.g. updating env vars (like from a file, or managing multiple env, or other stuff). Interestingly there in |
I like But happy to do whichever. At this point just want to move forward. cc: @sixolet and @cppforlife what say you? I want to get started on this today or tomorrow. Please provide your input please. No input tomorrow then I start with @rhuss suggestion. We can always change later if a strong opinion emerges. |
@maximilien it really depends how much power you want to add for changing e.g. If it's ok to update single env vars only (potentially with the option to remove/add one, too, then I agree doing it per options makes is more lighweight. If we want to support all env var manipulating features of kubectl like:
then a dedicated subcommand could make more sense to not overwhelm the number of options required. |
OK, @rhuss I get your point. However, I would vote for one command and allowing multiple flags as needed. Nothing prevents having multiple And if more |
Not sure if this will apply here, but I have seen situations in the past where multiple changes needed to be done together, or at least in a specified sequence. To pick on an example that makes me sad every time:
(assuming that the actual args to Other items that can vary similarly:
|
my vote is for having additional flags on update command. |
OK I'll move forward with |
If you require the changes applied in a specific sequence, using options means to imply an order on the options given. Not sure if you can easily find that out with the current libraries we are using for option handling (and its a bad UX anyway, as no one else imposes semantics on an option ordering. Arguments would be used for that). I agreed that its good for situations where you want to update multiples aspects atomically. So I'm fine with options as long as we don't impose an option order but apply all changes with a single update call. wrt/ to |
What type of env vars was discussed in one of the WG meetings when defining the MVP for the first release and group agree to keep it simple and implement first only simple strings for env vars |
…tive#12) * Initial version of presubmit-tests.sh helper in prow-tests image This helper manages flag parsing and presubmit skipping, leaving the real script in the repos with only the important stuff (i.e., running the tests themselves). This will reduce boilerplate code and unify the testing strategy and features for presubmits across ther repos. * Reorganize source and clarify comments.
We're consolidating the test infrastructure into a single place, so all repos get the same fixes, updates and new features. `presubmit-tests.sh` helper was implemented by knative#12
Write the command to update a service! It should never change the code you are running unless you specifically specify a new image/build.
The text was updated successfully, but these errors were encountered: