Closed sangee2004 closed 6 months ago
Not sure what changed, but I am no longer seeing this behavior on the main branch of runtime, installed in my local k8s. (Haven't tried it against the SaaS.) Both scenarios produce the expected behavior as described in this issue. Moving this into QA. Let me know if something still seems broken.
@g-linville This issue reproduced inconsistently for me earlier. Also i saw this happen when testing in main
.
I'll bring it back to In Progress for now and play around some more and see if I can cause this bug to appear.
Merged the fix. The user should now be prompted only one time to provide credentials (or select existing ones).
@g-linville With latest build - acorn version - v0.10.0-rc2-35-g3cf6c107+3cf6c107
, I am not prompted to enter credentials when deploying apps with credentials.
App deployment just stays at acorn login mytestapp" required
state without prompting the user:
mytestapp
STATUS: ENDPOINTS[] HEALTHY[] UPTODATE[]
STATUS: ENDPOINTS[] HEALTHY[0] UPTODATE[0] "acorn login mytestapp" required
^C%
@g-linville The Acornfile I used for deploying apps when I am not prompted to enter the creds (has secrets being used as env variable in container):
secrets: config: {
type: "credential.acorn.io/mytestcred"
params: {
promptOrder: ["username", "password","testnodef"]
}
data: {
username: "abcd"
password: "ppp"
testnodef: "yy"
}
}
containers: {
mytest: {
image: "nginx"
env:{
username: "secret://config/username"
password: "secret://config/password"
}
}
}
I am prompted as expected when using the Acornfile mentioned in the issue.
Should be good now.
Tested with - acorn version - v0.10.0-rc2-36-g994b4680+994b4680
User is prompted to enter/pick existing credentials as expected when deploying apps with creds and containers having secrets consumed as env variables.
Also i am not able to reproduce the initial issue reported in this issue with user being prompted twice when entering a new cred/ choosing an existing cred. User is prompted only once to enter a new credential/pick existing one.
acorn version -
v0.10.0-rc2-9-g43dbcbf4+43dbcbf4
Steps to reproduce the problem:
Scenario 1:
Expected Behavior: If user is creating a new cred , we should be able to use the created one for the app instead of having to letting him select again.
Scenario 2:
Expected Behavior: User should not be prompted multiple times.