Skip to content
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

APPX-88 & APPX-89: Default value for WriteConnectionSecretToRef and write values in lowercase #13

Closed
wants to merge 6 commits into from

Conversation

martini-source
Copy link
Member

Changes:

  • Spec.WriteConnectionSecretToRef.Name gets default Value of ServiceName+"-creds", get overwritten if set manually
  • All values(a-z,A-Z) get transformed to lower-case
  • Cleanup existing default values that weren't valid

@martini-source martini-source changed the title APPX-88 & APPX-89 APPX-88 & APPX-89: Default value for WriteConnectionSecretToRef and write values in lowercase Aug 9, 2023
Copy link
Member

@mhutter mhutter left a comment

Choose a reason for hiding this comment

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

Can you also add a golden test that verifies that overwriting the secret name works?

@@ -1,19 +1,20 @@
apiVersion: exoscale.appcat.vshn.io/v1
kind: ExoscaleKafka
kind: exoscalekafka
Copy link
Member

Choose a reason for hiding this comment

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

That looks wrong? Does it matter?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably, I'll revert the whole lowercase thingy.

@@ -127,7 +127,7 @@ func mapArgsToInput(args []string) []Input {
inputList = append(inputList, input)
input = Input{}
} else {
input.Value = arg
input.Value = NormalizeName(arg)
Copy link
Member

Choose a reason for hiding this comment

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

Actually now that I think about it, I'm not sure that this (and APPX-89) is correct. While it might b e true that Spec.Parameters.Maintenance.DayOfWeek must be lowercase, it might be that other fields must be mixed case, no?

For example, I think fields like imagePullPolicy MUST be Always, and always is invalid.

Copy link
Member Author

Choose a reason for hiding this comment

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

True, some consistency would have been amazing, oh well.

@martini-source martini-source deleted the fix/Input branch August 10, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants