-
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.
Net 6392- Create MeshGateway Deployment (#3290)
* checkpoint * checkpoint, deployment spec intial skeleton * set up reconcile * checkpoint * checkpoint * checkpoint * working deployment * cleaning up todos, working deployment * cleaned up todos, changed namespaces back from hardcoded default * unit test finished * fix pointer added in rebase * Update control-plane/config-entries/controllersv2/mesh_gateway_controller.go * additional cleanup/linting issues * rename files, clean up configuration to reuse tenacy config * import grouping * responding to code review * gofmt * Update control-plane/config-entries/controllersv2/mesh_gateway_controller.go Co-authored-by: Nathan Coleman <[email protected]> * clean up incorrect comment * add gcc nil test to cover potential nil use cases, add log statment for gcc fetch error * clean up nit picks * checkpoint * fix typing * Update control-plane/gateways/config.go Co-authored-by: Nathan Coleman <[email protected]> * Update control-plane/gateways/deployment_init_container.go Co-authored-by: Nathan Coleman <[email protected]> * Update control-plane/gateways/deployment_init_container.go Co-authored-by: Nathan Coleman <[email protected]> * Update control-plane/config-entries/controllersv2/mesh_gateway_controller.go Co-authored-by: Nathan Coleman <[email protected]> * Add rudimentary Deployment assertions to mesh_gateway_controller_test.go * Fix command assertion whitespace * Use full GCC instead of GCCSpec so we have future access to annotations --------- Co-authored-by: Nathan Coleman <[email protected]>
- Loading branch information
1 parent
fd6d765
commit 2785091
Showing
14 changed files
with
1,295 additions
and
18 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
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,37 @@ | ||
package gateways | ||
|
||
import "github.com/hashicorp/consul-k8s/control-plane/api/common" | ||
|
||
// GatewayConfig is a combination of settings relevant to Gateways. | ||
type GatewayConfig struct { | ||
// ImageDataplane is the Consul Dataplane image to use in gateway deployments. | ||
ImageDataplane string | ||
// ImageConsulK8S is the Consul Kubernetes Control Plane image to use in gateway deployments. | ||
ImageConsulK8S string | ||
// AuthMethod method used to authenticate with Consul Server. | ||
AuthMethod string | ||
|
||
ConsulTenancyConfig common.ConsulTenancyConfig | ||
|
||
// LogLevel is the logging level of the deployed Consul Dataplanes. | ||
LogLevel string | ||
// LogJSON if JSONLogging has been enabled. | ||
LogJSON bool | ||
// TLSEnabled is the value of whether or not TLS has been enabled in Consul. | ||
TLSEnabled bool | ||
// PeeringEnabled toggles whether or not Peering is enabled in Consul. | ||
PeeringEnabled bool | ||
// ConsulTLSServerName the name of the server running TLS. | ||
ConsulTLSServerName string | ||
// ConsulCACert contains the Consul Certificate Authority. | ||
ConsulCACert string | ||
// ConsulConfig configuration for the consul server address. | ||
ConsulConfig common.ConsulConfig | ||
|
||
// EnableOpenShift indicates whether we're deploying into an OpenShift environment | ||
EnableOpenShift bool | ||
|
||
// MapPrivilegedServicePorts is the value which Consul will add to privileged container port values (ports < 1024) | ||
// defined on a Gateway. | ||
MapPrivilegedServicePorts int | ||
} |
Oops, something went wrong.