-
Notifications
You must be signed in to change notification settings - Fork 208
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
Porter should print a clear message that the bundle has changed and is being rebuilt first #500
Comments
Hi @nunix ! I can see this behavior has been surprising. However, I believe it is a 'feature' that porter rebuilds the bundle (in some cases) prior generating credentials. It will do so if the hash of the porter manifest ( Perhaps we could/should think about how to reduce the UX surprise here; and/or inform the user better on what is occurring. |
Hi @vdice :) If it's working as intended, and the credentials generation would come after the rebuild, I will then fix my bundle (docker part) and see if I'm asked to enter my values again (that's what I was expecting to see with thanks again for your time and feedback |
Yes, that is what porter is doing. A few commands rely upon a generated file Seems like we have two good follow-ups:
|
Both 1 and 2, but 2 is the critical step. No one will be suprised if porter says, hey, I have to rebuild the bundle because there have been changes. |
Let's print a message when we detect that the bundle is out of date and we start a rebuild. Something like "Changes have been detected to porter.yaml, rebuilding the bundle before proceeding...". Here is the area where we determine if we need to rebuild a bundle: Lines 31 to 42 in 8b61fc1
We have an integration test (requires that you compile your code with tests/integration/rebuild_test.go |
Hi team,
while testing an image with "Docker in Docker", I faced a very strange bug with the latest release:
when running
porter credentials generate
, Porter actually tries to install the bundle:In the screenshot, you can see both attempts from Windows Powershell and WSL (ubuntu).
My "credentials" section looks like this:
Thanks a lot for your feedback :)
The text was updated successfully, but these errors were encountered: