Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

[fix] - promptOrder now works for credentials (#2386) #2453

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

cloudnautique
Copy link
Member

@cloudnautique cloudnautique commented Jan 22, 2024

The original implementation always ended up with an empty []string{} resulting in never following promptOrder.

Based on my understanding it wouldn't get typed from ([]interface{}) to ([]interface{}) without going through this workflow.

@cloudnautique cloudnautique changed the title [fix] - promptOrder now works for credentials [fix] - promptOrder now works for credentials (#2386) Jan 22, 2024
if len(value) == 0 {
value = []byte(def)
paramsData := app.Status.AppSpec.Secrets[secretName].Params.GetData()
if paramsData != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: nil check here isn't necessary.

Signed-off-by: Bill Maxwell <cloudnautique@users.noreply.github.com>
@cloudnautique cloudnautique merged commit ce008ae into acorn-io:main Jan 23, 2024
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants