Skip to content

Conversation

Tvion
Copy link
Contributor

@Tvion Tvion commented Feb 22, 2023

Thanks for taking the time to contribute to clickhouse-operator!

Please, read carefully instructions on how to make a Pull Request.

This will help a lot for maintainers to adopt your Pull Request.

Important items to consider before making a Pull Request

Please check items PR complies to:

  • All commits in the PR are squashed. More info
  • The PR is made into dedicated next-release branch, not into master branch1. More info
  • The PR is signed. More info

--

1 If you feel your PR does not affect any Go-code or any testable functionality (for example, PR contains docs only or supplementary materials), PR can be made into master branch, but it has to be confirmed by project's maintainer.

minimum: 0
maximum: 65535
secure:
type: integer
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • Looks like attempt to make bool out of int type. Probably it would be more proper to use StringBool type in here
  • crd.yaml is a generated file and not supposed to be edited manually

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. Changed to StringBool.
  2. CRD were generated.

util.Iline(b, 8, "<node>")
util.Iline(b, 8, " <host>%s</host>", node.Host)
util.Iline(b, 8, " <port>%d</port>", node.Port)
if node.Secure == 1 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

making bool out of int looks a little awkward

Copy link
Contributor Author

@Tvion Tvion Mar 13, 2023

Choose a reason for hiding this comment

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

Changed to node.Secure.HasValue() method

@Tvion Tvion requested a review from sunsingerus March 13, 2023 10:52
@sunsingerus sunsingerus merged commit 86407b1 into Altinity:0.21.0 Mar 17, 2023
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