-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mw/net 4260 add tproxy coverage (#2776)
* add additional tproxy static-client - this doesn't specify an upstream so that tproxy will be able to handle routing * add tproxy coverage - add control-flow to handle using the virtual host name when tproxy is enabled
- Loading branch information
1 parent
ab00c03
commit 8a5eff0
Showing
5 changed files
with
95 additions
and
12 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...tance/tests/fixtures/cases/sameness/static-client/ap1-partition-tproxy/kustomization.yaml
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,8 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
resources: | ||
- ../../../../bases/static-client | ||
|
||
patchesStrategicMerge: | ||
- patch.yaml |
21 changes: 21 additions & 0 deletions
21
acceptance/tests/fixtures/cases/sameness/static-client/ap1-partition-tproxy/patch.yaml
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,21 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: static-client | ||
spec: | ||
template: | ||
metadata: | ||
annotations: | ||
'consul.hashicorp.com/connect-inject': 'true' | ||
spec: | ||
containers: | ||
- name: static-client | ||
image: anubhavmishra/tiny-tools:latest | ||
# Just spin & wait forever, we'll use `kubectl exec` to demo | ||
command: ['/bin/sh', '-c', '--'] | ||
args: ['while true; do sleep 30; done;'] | ||
# If ACLs are enabled, the serviceAccountName must match the Consul service name. | ||
serviceAccountName: static-client |
8 changes: 8 additions & 0 deletions
8
...e/tests/fixtures/cases/sameness/static-client/default-partition-tproxy/kustomization.yaml
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,8 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
resources: | ||
- ../../../../bases/static-client | ||
|
||
patchesStrategicMerge: | ||
- patch.yaml |
21 changes: 21 additions & 0 deletions
21
acceptance/tests/fixtures/cases/sameness/static-client/default-partition-tproxy/patch.yaml
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,21 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: static-client | ||
spec: | ||
template: | ||
metadata: | ||
annotations: | ||
'consul.hashicorp.com/connect-inject': 'true' | ||
spec: | ||
containers: | ||
- name: static-client | ||
image: anubhavmishra/tiny-tools:latest | ||
# Just spin & wait forever, we'll use `kubectl exec` to demo | ||
command: ['/bin/sh', '-c', '--'] | ||
args: ['while true; do sleep 30; done;'] | ||
# If ACLs are enabled, the serviceAccountName must match the Consul service name. | ||
serviceAccountName: static-client |
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