-
Notifications
You must be signed in to change notification settings - Fork 543
Provide https support for health check #912
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ GOOS=${GOOS:-linux} | |
| GOARCH=${GOARCH:-amd64} | ||
|
|
||
| if [[ "" != "${GCFLAGS:-}" ]]; then | ||
| GCFLAGS="-gcflags ${GCFLAGS:-}" | ||
| GCFLAG='-gcflags' | ||
| fi | ||
|
|
||
| if CGO_ENABLED=0 GO111MODULE=on GOOS="${GOOS}" GOARCH="${GOARCH}" go build \ | ||
|
|
@@ -29,7 +29,7 @@ if CGO_ENABLED=0 GO111MODULE=on GOOS="${GOOS}" GOARCH="${GOARCH}" go build \ | |
| -X ${REPO}/pkg/version.GitSHA=${GIT_SHA} \ | ||
| -X ${REPO}/pkg/version.BuiltAt=${NOW} \ | ||
| " \ | ||
| ${GCFLAGS:-} \ | ||
| $GCFLAG "${GCFLAGS:-}" \ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you, please, clarify, why would you like to create $GCFLAG as a separate var and not to add '-gcflags' to $GCFLAGS ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The original method had issues with the quotations being passed into |
||
| -o "${OUTPUT_BINARY}" \ | ||
| "${MAIN_SRC_FILE}" | ||
| then | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,7 @@ const ( | |
| // 1. Metrics requests | ||
| // 2. Schema maintenance | ||
| // User credentials can be specified in additional ClickHouse config files located in `chUsersConfigsPath` folder | ||
| defaultChScheme = "http" | ||
| defaultChUsername = "" | ||
| defaultChPassword = "" | ||
| defaultChPort = 8123 | ||
|
|
@@ -146,6 +147,7 @@ type OperatorConfigClickHouse struct { | |
| // 1. Metrics requests | ||
| // 2. Schema maintenance | ||
| // User credentials can be specified in additional ClickHouse config files located in `chUsersConfigsPath` folder | ||
| Scheme string `json:"scheme" yaml:"scheme"` | ||
| Username string `json:"username" yaml:"username"` | ||
| Password string `json:"password" yaml:"password"` | ||
|
|
||
|
|
@@ -324,6 +326,7 @@ type OperatorConfig struct { | |
| // 1. Metrics requests | ||
| // 2. Schema maintenance | ||
| // User credentials can be specified in additional ClickHouse config files located in `chUsersConfigsPath` folder | ||
| CHScheme string `json:"chScheme" yaml:"chScheme"` | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This section is kind of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I saw, wasn't sure, i thought it was no harm. |
||
| CHUsername string `json:"chUsername" yaml:"chUsername"` | ||
| CHPassword string `json:"chPassword" yaml:"chPassword"` | ||
| // Location of k8s Secret with username and password to be used by operator to connect to ClickHouse instances | ||
|
|
@@ -645,6 +648,9 @@ func (c *OperatorConfig) normalizeAccessSection() { | |
| // 1. Metrics requests | ||
| // 2. Schema maintenance | ||
| // User credentials can be specified in additional ClickHouse config files located in `chUsersConfigsPath` folder | ||
| if c.ClickHouse.Access.Scheme == "" { | ||
| c.ClickHouse.Access.Scheme = defaultChScheme | ||
| } | ||
| if c.ClickHouse.Access.Username == "" { | ||
| c.ClickHouse.Access.Username = defaultChUsername | ||
| } | ||
|
|
@@ -941,6 +947,9 @@ func (c *OperatorConfig) move() { | |
| // 1. Metrics requests | ||
| // 2. Schema maintenance | ||
| // User credentials can be specified in additional ClickHouse config files located in `chUsersConfigsPath` folder | ||
| if c.CHScheme != "" { | ||
| c.ClickHouse.Access.Password = c.CHScheme | ||
| } | ||
| if c.CHUsername != "" { | ||
| c.ClickHouse.Access.Username = c.CHUsername | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment below on the
callline