-
Notifications
You must be signed in to change notification settings - Fork 497
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add health checks to OIDC discovery provider (#3151)
Signed-off-by: Christoph Dalski <[email protected]>
- Loading branch information
Showing
11 changed files
with
518 additions
and
110 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -388,5 +388,101 @@ func parseConfigCasesOS() []parseConfigCase { | |
`, | ||
err: "trust_domain must be configured in the workload_api configuration section", | ||
}, | ||
{ | ||
name: "health checks default values", | ||
in: ` | ||
domains = ["domain.test"] | ||
acme { | ||
email = "[email protected]" | ||
tos_accepted = true | ||
} | ||
server_api { | ||
address = "unix:///some/socket/path" | ||
} | ||
health_checks {} | ||
`, | ||
out: &Config{ | ||
LogLevel: defaultLogLevel, | ||
Domains: []string{"domain.test"}, | ||
ACME: &ACMEConfig{ | ||
CacheDir: defaultCacheDir, | ||
Email: "[email protected]", | ||
ToSAccepted: true, | ||
}, | ||
ServerAPI: &ServerAPIConfig{ | ||
Address: "unix:///some/socket/path", | ||
PollInterval: defaultPollInterval, | ||
}, | ||
HealthChecks: &HealthChecksConfig{ | ||
BindPort: defaultHealthChecksBindPort, | ||
ReadyPath: defaultHealthChecksReadyPath, | ||
LivePath: defaultHealthChecksLivePath, | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: "health checks config overrides", | ||
in: ` | ||
domains = ["domain.test"] | ||
acme { | ||
email = "[email protected]" | ||
tos_accepted = true | ||
} | ||
server_api { | ||
address = "unix:///some/socket/path" | ||
} | ||
health_checks { | ||
bind_address = "127.0.0.1" | ||
bind_port = "8888" | ||
live_path = "/live/override" | ||
ready_path = "/ready/override" | ||
} | ||
`, | ||
out: &Config{ | ||
LogLevel: defaultLogLevel, | ||
Domains: []string{"domain.test"}, | ||
ACME: &ACMEConfig{ | ||
CacheDir: defaultCacheDir, | ||
Email: "[email protected]", | ||
ToSAccepted: true, | ||
}, | ||
ServerAPI: &ServerAPIConfig{ | ||
Address: "unix:///some/socket/path", | ||
PollInterval: defaultPollInterval, | ||
}, | ||
HealthChecks: &HealthChecksConfig{ | ||
BindPort: 8888, | ||
LivePath: "/live/override", | ||
ReadyPath: "/ready/override", | ||
}, | ||
}, | ||
}, | ||
{ | ||
name: "health checks disabled", | ||
in: ` | ||
domains = ["domain.test"] | ||
acme { | ||
email = "[email protected]" | ||
tos_accepted = true | ||
} | ||
server_api { | ||
address = "unix:///some/socket/path" | ||
} | ||
`, | ||
out: &Config{ | ||
LogLevel: defaultLogLevel, | ||
Domains: []string{"domain.test"}, | ||
ACME: &ACMEConfig{ | ||
CacheDir: defaultCacheDir, | ||
Email: "[email protected]", | ||
ToSAccepted: true, | ||
}, | ||
ServerAPI: &ServerAPIConfig{ | ||
Address: "unix:///some/socket/path", | ||
PollInterval: defaultPollInterval, | ||
}, | ||
HealthChecks: nil, | ||
}, | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.