-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mesh Gateway Deployment Configuration (#3477)
* Add BATs for Gateway Log Level Configuration * Pass logLevel into init-container and dataplane-container * Add BATs for extraLabels * Test that extraLabels get set on the deployment * BATs for annotations * Use config for log level over gcc if available * Make consulDataplaneContainer an assoc func to builder * Use logLevelForDataplaneContainer func * Test annotations getting set * Add comments for Builder obj * Rename config.go to gateway_config.go * Add comments to gateway_config * Move commands closer to their configuration * Extract some constants * `%s/expected/debug/g`
- Loading branch information
Thomas Eckert
authored
Jan 18, 2024
1 parent
245a845
commit 5d9bd49
Showing
10 changed files
with
349 additions
and
76 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) HashiCorp, Inc. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
package gateways | ||
|
||
const ( | ||
// General environment variables. | ||
envPodName = "POD_NAME" | ||
envPodNamespace = "POD_NAMESPACE" | ||
envNodeName = "NODE_NAME" | ||
envTmpDir = "TMPDIR" | ||
|
||
// Dataplane Configuration Environment variables. | ||
envDPProxyId = "DP_PROXY_ID" | ||
envDPCredentialLoginMeta = "DP_CREDENTIAL_LOGIN_META" | ||
envDPServiceNodeName = "DP_SERVICE_NODE_NAME" | ||
|
||
// Init Container Configuration Environment variables. | ||
envConsulAddresses = "CONSUL_ADDRESSES" | ||
envConsulGRPCPort = "CONSUL_GRPC_PORT" | ||
envConsulHTTPPort = "CONSUL_HTTP_PORT" | ||
envConsulAPITimeout = "CONSUL_API_TIMEOUT" | ||
envConsulNodeName = "CONSUL_NODE_NAME" | ||
envConsulLoginAuthMethod = "CONSUL_LOGIN_AUTH_METHOD" | ||
envConsulLoginBearerTokenFile = "CONSUL_LOGIN_BEARER_TOKEN_FILE" | ||
envConsulLoginMeta = "CONSUL_LOGIN_META" | ||
envConsulLoginPartition = "CONSUL_LOGIN_PARTITION" | ||
envConsulNamespace = "CONSUL_NAMESPACE" | ||
envConsulPartition = "CONSUL_PARTITION" | ||
|
||
// defaultBearerTokenFile is the default location where the init container will store the bearer token for the dataplane container to read. | ||
defaultBearerTokenFile = "/var/run/secrets/kubernetes.io/serviceaccount/token" | ||
) |
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
Oops, something went wrong.