Skip to content
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

Backport of Fix for acceptance tests into release/1.1.x #2943

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
314 commits
Select commit Hold shift + click to select a range
2fb7944
test image form consul-enterprise
jmurret Apr 10, 2023
0e771fc
Revert "test image form consul-enterprise"
jmurret Apr 10, 2023
10c7a56
Convert acceptance to use github actions (#2046)
curtbushko Apr 13, 2023
3b2d5e8
Remove CircleCI (#2050)
curtbushko Apr 14, 2023
5817c28
Update status on PRs (#2054)
curtbushko Apr 14, 2023
8d2c193
Update backport assistant to support -gh-automerge (#2047)
curtbushko Apr 17, 2023
34fb4a2
Add a cleanup cron job (#2059)
curtbushko Apr 18, 2023
11f842c
add sameness group CRD (#2048)
Apr 18, 2023
7145b02
Supply chain updates (#2072)
curtbushko Apr 20, 2023
e0df679
Fix Sync Catalog ACL Token Environment Var Name (#2068)
mbillow Apr 21, 2023
568ab03
Add changelog for NET 2422 (#2080)
Apr 24, 2023
f8eb931
add sameness group to exported services (#2075)
Apr 24, 2023
969b6f9
Adjust API gateway controller deployment appropriately when Vault con…
nathancoleman Apr 27, 2023
2173112
Result of tsccr-helper -pin-all-workflows . (#2089)
hashicorp-tsccr[bot] Apr 27, 2023
7a006b5
set consul server locality from k8s node labels (#2093)
erichaberkorn Apr 28, 2023
28f396a
add sameness group to service resolver, update manifests (#2086)
Apr 28, 2023
8c22f83
add sameness group to source intention (#2097)
Apr 28, 2023
bc693e6
security: update Go version to 1.20.4 (#2102)
DanStough May 4, 2023
c86f3d5
Spatel/net 1646 add max ejection percent and base ejection time (#2064)
May 4, 2023
d7bf922
chore(ci): fix changelog action for non-main base branches (#2105)
DanStough May 8, 2023
cb7fd51
chore(ci): fix backport assistant not finding new branches (#2113)
DanStough May 8, 2023
4a2bd44
Customizing Vault Version for WanFed Test (#2043)
20sr20 May 10, 2023
ccb51c1
add config read command (#2078)
hanshasselberg May 11, 2023
bd16ab8
Update CRDs for Permissive mTLS (#2100)
May 11, 2023
d159fc5
helm: add HOST_IP to mesh-gateway (#1808)
woz5999 May 12, 2023
8a10701
chore(ci): fix typo in changelog checker (#2127)
DanStough May 12, 2023
eeab076
Add support for syncing Ingress hostname to the Consul Catalog (#2098)
May 15, 2023
02cab6c
Add telemetry collector deployment to consul-k8s (#2134)
clly May 16, 2023
5bd6c60
NET-2619 - save ClusterIPs to manual vips table (#2124)
curtbushko May 17, 2023
7b09da1
Get the consul version from values.yaml (#2146)
curtbushko May 17, 2023
85c28bd
[COMPLIANCE] Add Copyright and License Headers (#2079)
hashicorp-copywrite[bot] May 18, 2023
889b689
Update go-discover (#2157)
jm96441n May 23, 2023
d5b4601
add helm chart values to configure global server side rate limiting (…
jmurret May 23, 2023
13c166f
Disable DNS redirection when tproxy is disabled (#2176)
lkysow May 25, 2023
eac1df8
Fix tests (#2181)
lkysow May 25, 2023
1aa138a
[API Gateway] Add stub acceptance test (#2185)
May 26, 2023
37dd929
Update consul image so that acceptance tests run (#2189)
curtbushko May 26, 2023
8bfcfcf
API Gateways for Consul on Kubernetes `BETA` (#2152)
May 26, 2023
e7d528a
Update consul image on prepare-dev and prepare-release (#2180)
curtbushko May 26, 2023
f44d888
Fix dev mode on main (#2193)
curtbushko May 26, 2023
725e78d
Fix CVEs by updating controller-runtime (#2183)
May 29, 2023
1734d98
Adding support for idleTimeout in Service Router spec (#2156)
kphatak May 29, 2023
370976f
Changelog: add support for idleTimeout in Service Router config (#2200)
curtbushko May 30, 2023
fa3e146
build(deps): update controller UBI base to 9.2 (#2204)
DanStough May 30, 2023
ea41d4d
inject envoy_telemetry_bind_socket_dir proxy config when telemetry co…
nickethier May 30, 2023
cb67e6a
update cloud preset to enable telemetry collector (#2205)
nickethier May 31, 2023
f132cdd
Consul Telemetry acceptance test (#2195)
chapmanc May 31, 2023
aaee9a7
Fix bug on service intention CRDs causing source partitions and names…
erichaberkorn May 31, 2023
3a66856
Add CRD for jwt-provider config entry (#2209)
May 31, 2023
5f3f26d
API Gateway tenancy tests + fixes (#2201)
May 31, 2023
18f2cd5
Update ServiceIntentions CRD for JWT auth (#2213)
May 31, 2023
aaaed67
Fix setting args for the telemetry-collector (#2224)
clly May 31, 2023
0c28b9b
Fix telemetry collector issue and fix for bat test (#2223)
chapmanc Jun 1, 2023
8d51935
Get consul-dataplane image from helm chart (#2232)
curtbushko Jun 1, 2023
9dfc3d0
Add acceptance test cleanup for API Gateway resources (#2237)
Jun 1, 2023
494837e
improve code readability and fix flaky tests re acl token generation …
Jun 1, 2023
10c582f
Increase timeout and backoff for retry on flaky test (#2242)
chapmanc Jun 1, 2023
46055a3
Add fake demo/crds to get around that expectation in chart install (#…
jjti Jun 1, 2023
d4b8c73
NET-4285 add check for pointer (#2246)
chapmanc Jun 2, 2023
7b6e5eb
Persist virtual-ips for intentions / service-defaults. (#2222)
hashi-derek Jun 2, 2023
b922ef2
Allow API Gateways to bind to privileged ports (#2253)
Jun 2, 2023
f9ad994
API Gateway lifecycle acceptance tests (#2248)
Jun 2, 2023
05acb5f
accepance: extend api gateway lifecycle test retryCheck timeouts (#2256)
mikemorris Jun 2, 2023
6662c78
api-gateway: create RoleBinding attaching Role to ServiceAccount (#2252)
nathancoleman Jun 2, 2023
3f34676
Add missing resources to kustomization.yaml (#2255)
Jun 2, 2023
8966651
Fix Gateway trigger for when secret is modified (#2261)
Jun 3, 2023
3cecd2e
Add CRD for ControlPlane RequestLimits (#2166)
loshz Jun 5, 2023
48f97c8
Update casing of json tag for ServiceDefault field (#2266)
Jun 5, 2023
2ddd05a
Add the endpoint ignoring logic for triggering gateway reconciliation…
Jun 5, 2023
ff021cc
[COMPLIANCE] Add Copyright and License Headers (#2271)
hashicorp-copywrite[bot] Jun 5, 2023
fe2c481
Add additional helm hook for resource management (#2259)
Jun 6, 2023
8d014c0
Add missing entries to main CHANGELOG (#2275)
curtbushko Jun 6, 2023
38cd4d7
Fixing changelog for 2195 (#2277)
curtbushko Jun 6, 2023
0f893be
[API Gateway] Add external consul servers test (#2270)
Jun 6, 2023
b5b0b27
Add check for timeout error (#2280)
jm96441n Jun 6, 2023
9dd605e
Add Consul status to routes and gateways (#2281)
Jun 6, 2023
ee256e9
Update alpine to 3.18 to fix CVE-2023-2650 (#2284)
curtbushko Jun 6, 2023
49c5219
Remove check for reference grant for route to gateway (#2283)
jm96441n Jun 6, 2023
3126955
[API Gateway] Add partition test (#2278)
Jun 7, 2023
644e02e
Update memory defaults for connect inject controller (#2249)
Jun 7, 2023
3c56558
Mw/fix pipeline 1 1 6 (#2282)
wilkermichael Jun 7, 2023
57fef1f
Add bug to changelog so that go-changelog works (#2276)
curtbushko Jun 8, 2023
e35eaa3
Fix retry loops that use `t` (#2311)
Jun 8, 2023
f4435ac
Add FIPS builds (#2165)
skpratt Jun 8, 2023
097f945
activated weekly acceptance tests for 1-2-x (#2315)
wilkermichael Jun 8, 2023
61c7280
Net 4230/add tcp to basic acceptance test (#2297)
missylbytes Jun 9, 2023
555d4a6
[API Gateway] Add acceptance test for cluster peering (#2306)
Jun 9, 2023
b56b7dd
Mw/net 3598 update kind for consul k8s acceptance tests with latest v…
wilkermichael Jun 9, 2023
203c9d1
[API Gateway] WAN Federation test and fixes (#2295)
Jun 9, 2023
da147c1
[API Gateway] fix dangling service registrations (#2321)
Jun 9, 2023
198c443
api-gateway: add unit tests verifying scaling parameters on GatewayCl…
nathancoleman Jun 9, 2023
8245efc
Rename GatewayClassController to prevent name collision (#2317)
Jun 9, 2023
f07736b
[API Gateway] Conformance Test Fixes (#2326)
Jun 9, 2023
6933efe
pin for 1.2.x-rc latest Consul submodules (#2327)
wilkermichael Jun 9, 2023
7f6e1cb
Ensure Reconciliation Stops (#2305)
jm96441n Jun 9, 2023
7e076bb
Add CRT docker changes for release workflow (#2333)
skpratt Jun 10, 2023
4976215
Update var check with appropriate quotes (#2330)
skpratt Jun 11, 2023
60b214e
Revert "Ensure Reconciliation Stops (#2305)" (#2341)
nathancoleman Jun 12, 2023
8f47485
Improvement- [NET-189] Added helm inputs for managing audit logs (#2265)
Ganeshrockz Jun 12, 2023
fc40d5e
Set Consul service instance localities from K8s node labels (#2346)
erichaberkorn Jun 13, 2023
345f62c
fix: use correct flag when translating namespaces (#2353)
nathancoleman Jun 13, 2023
2850962
added imagePullPolicy for images in values.yaml (#2310)
aahel Jun 13, 2023
f2c166f
[chore]: Pin github action workflows (#2356)
curtbushko Jun 13, 2023
80b1f52
ci: update backport assistant to 0.3.4 (#2365)
nathancoleman Jun 13, 2023
e691f46
update changelog based on changes made to 1.2.x (#2348)
wilkermichael Jun 13, 2023
9121afc
api-gateway: nightly conformance test action (#2257)
sarahalsmiller Jun 14, 2023
3ce3302
add crds for prioritize by locality (#2357)
erichaberkorn Jun 15, 2023
19d2fb5
set everything to correct version (#2342)
curtbushko Jun 15, 2023
c4617fc
api-gateway: fix cache and service deletion issue (#2377)
Jun 15, 2023
47d4063
Adding support for weighted k8s service (#2293)
srahul3 Jun 19, 2023
fe4857e
Bumping go-discover to the lastest version (#2390)
eastebry Jun 19, 2023
a3c8771
Pin Kind versions on release branches (#2384)
wilkermichael Jun 19, 2023
aaa54c2
[COMPLIANCE] Add Copyright and License Headers (#2400)
hashicorp-copywrite[bot] Jun 20, 2023
63c7682
update consul-dataplane on main to use 1.2-dev (#2325)
curtbushko Jun 20, 2023
4141f6f
Acceptance test for permissive mTLS (#2378)
Jun 20, 2023
08534e3
Revert "added imagePullPolicy for images in values.yaml (#2310)" (#2415)
Jun 21, 2023
883fbdc
update with new make targets (#2411)
wilkermichael Jun 22, 2023
5b1856e
feat(helm): add configurable server-acl-init and cleanup resource lim…
DanStough Jun 23, 2023
c6c5d52
update redhat registry id (#2337)
alvin-huang Jun 23, 2023
f783f7e
Fix auditlog config (#2434)
Jun 23, 2023
79db263
Add acceptance test to test sync + ingress (#2421)
Jun 23, 2023
c2a149b
[COMPLIANCE] Add Copyright and License Headers (#2456)
hashicorp-copywrite[bot] Jun 26, 2023
c83ce0c
Fix GatewayClassConfig Test Timing Issue (#2409)
Jun 26, 2023
95af4c7
always update acl policy if it exists (#2392)
aahel Jun 27, 2023
e176846
Proxy Lifecycle helm, connect-inject and acceptance tests (#2233)
mikemorris Jun 27, 2023
d3f9b67
PR breaking change release note change (#2469)
Jun 28, 2023
920ee32
Adds back gateway controller halting integration test (#2412)
missylbytes Jun 28, 2023
e976b88
api-gateway: Fix nil pointer exception panic (#2487)
sarahalsmiller Jun 29, 2023
83f050b
Use correct length for certificate RSA key for tests (#2490)
jm96441n Jun 29, 2023
8fe4fb6
APIGW: Validate length of RSA Keys (#2478)
jm96441n Jun 29, 2023
ced0ae8
add changelog for 1.2.0 dataplane and consul 1.16.0 (#2496)
wilkermichael Jun 29, 2023
736649d
Adds chanelog values for 0.49.7 (#2501)
missylbytes Jun 30, 2023
30e9f55
ci: fix eks terraform quota error by cleaning up oidc providers (#2470)
ndhanushkodi Jul 3, 2023
1161322
build: update versions to 1.3.0-dev (#2511)
DanStough Jul 6, 2023
cbcbdc5
[COMPLIANCE] Add Copyright and License Headers (#2507)
hashicorp-copywrite[bot] Jul 7, 2023
0cb24d7
values.yaml - replace connect with service mesh for some instances (#…
Jul 10, 2023
6624d34
docs: self service changelog instructions (#2526)
DanStough Jul 10, 2023
11a1851
feat: adding security context and annotations to tls and acl init/cle…
DanStough Jul 10, 2023
fb02159
NET-4813: Fix issue where virtual IP saving had insufficient ACLs. (#…
hashi-derek Jul 10, 2023
6adb9a2
reactivate proxy-lifecycle tests (#2532)
wilkermichael Jul 10, 2023
4676652
Fix test flakes. (#2483)
hashi-derek Jul 10, 2023
486061a
Update chart to use OSS image (#2528)
curtbushko Jul 11, 2023
6b45156
Remove todo.txt (#2548)
curtbushko Jul 11, 2023
fd201c5
makes gateway controllers less chatty (#2524)
missylbytes Jul 11, 2023
592e457
HCP Observability acceptance test (#2254)
chapmanc Jul 11, 2023
8582286
HCP bootstrap preset to always downcase datacenter (#2551)
chapmanc Jul 11, 2023
4f06479
api-gateway: when multiple listeners have the same port, only add to …
nathancoleman Jul 11, 2023
b8be6a0
NET-4482: set route condition appropriately when parent ref includes …
nathancoleman Jul 11, 2023
73959e7
test: update nightly tests to consul 1.17-dev (#2556)
DanStough Jul 12, 2023
65c4e74
Update Release Scripts (#2558)
wilkermichael Jul 12, 2023
df0e649
added missing changelogs (#2565)
wilkermichael Jul 12, 2023
29b6ed3
Refactor test framework to allow for more than two kube contexts (#2534)
wilkermichael Jul 14, 2023
59228dd
[COMPLIANCE] Add Copyright and License Headers (#2577)
hashicorp-copywrite[bot] Jul 17, 2023
ab462d0
Consume gateway-api v0.7.1 for acceptance testing (#2578)
nathancoleman Jul 18, 2023
c790951
Update to handle validation endpoints (#2580)
chapmanc Jul 18, 2023
07cc5cd
test(eks): fix deprecated CSI driver terraform (#2584)
DanStough Jul 19, 2023
f0530d9
Add a check to prevent a nil-pointer dereference on Ingress LB (#2592)
Jul 19, 2023
b3769b1
test: remove unused workflow inputs (#2589)
DanStough Jul 19, 2023
4d4c35a
chore: Update actions for security (#2601)
curtbushko Jul 20, 2023
a4d9487
[NET-4122] Doc guidance for federation with externalServers (#2583)
zalimeni Jul 20, 2023
414554c
Handle errors properly when services are de-registered from the catal…
curtbushko Jul 20, 2023
ff24495
Adding support for Enterprise and other improvement on the Customizin…
20sr20 Jul 20, 2023
8b45de8
Differentiate FIPS linux package names (#2599)
skpratt Jul 21, 2023
efa2be8
added make target for checking for hashicorppreview (#2603)
wilkermichael Jul 21, 2023
e2adf6f
Increase golangci-lint timeout to 10m (#2621)
zalimeni Jul 21, 2023
1690fe2
Fix TestAPIGateway_GatewayClassConfig (#2631)
Jul 24, 2023
3932e28
Support running with restricted PSA enforcement enabled (part 1) (#2572)
Jul 24, 2023
a924e88
change fips delimiter to + (#2480) (#2591)
skpratt Jul 24, 2023
5b57e63
[NET-4865] security: Upgrade Go and net/http CVE-2023-29406 (#2642)
zalimeni Jul 24, 2023
6b26d91
Consul client always logs into the local datacenter (#2652)
Jul 25, 2023
89a1c6d
Add support for requestTimeout in Service Resolver spec (#2641)
markcampv Jul 25, 2023
94414a7
Increase timeout for acl replication to 60 seconds and poll every 500…
Jul 26, 2023
596a2a7
Update changelog to address cloud auto-join change in 1.0.0 (#2667)
Jul 26, 2023
f026d43
NET-4967: Fix helm install when setting copyAnnotations or nodeSelect…
nathancoleman Jul 26, 2023
7bb0a57
Fix ordering of licence in templates (#2675)
Jul 27, 2023
b6d3e61
Mw/net 4260 phase 2 automate the k8s sameness tests (#2579)
wilkermichael Jul 27, 2023
89ee905
Added logLevel field for components (#2302)
Ganeshrockz Jul 28, 2023
3e1f799
Add missing tsccr entries (#2682)
curtbushko Jul 28, 2023
63567cb
Use controller-gen 0.8.0 for CRDs (#2684)
Jul 28, 2023
3cb0cce
Fix ingress (#2687)
Jul 28, 2023
6835b1e
[NET-4865] Bump golang.org/x/net to 0.12.0 in cni (#2668)
zalimeni Jul 28, 2023
da99ce4
Fix default Ent image tag in acceptance tests (#2683)
zalimeni Jul 31, 2023
8379be9
[NET-5146] security: Upgrade Go and `x/net` (#2710)
zalimeni Aug 2, 2023
61c7761
Increase timeout while waiting for vault server to be ready (#2709)
curtbushko Aug 2, 2023
939e7c3
Acceptance tests: increase api-gateway retries (#2716)
curtbushko Aug 3, 2023
671675d
NET-3908: allow configuration of SecurityContextConstraints when runn…
nathancoleman Aug 8, 2023
71cdbc2
Gateway privileged port mapping (#2707)
missylbytes Aug 8, 2023
a1eb32b
Support restricted PSA enforcement part 2 (#2702)
Aug 8, 2023
f3d099c
NET-4413 Implement translation + validation of TLS options (#2711)
nathancoleman Aug 9, 2023
a287fce
NET-4993 JWT auth basic acceptance test (#2706)
jm96441n Aug 9, 2023
a86533b
[NET-5217] Apply K8s node locality to services and sidecars (#2748)
zalimeni Aug 10, 2023
0100fa4
Adds changelog for release of 1.1.4 (#2754)
missylbytes Aug 11, 2023
6e98cf9
Set privileged to false unless on OpenShift without CNI (#2755)
curtbushko Aug 11, 2023
b57b936
Update consul-enterprise-version script to add -ent (#2756)
curtbushko Aug 11, 2023
1968df4
Automate the k8s sameness tests add peering (#2725)
wilkermichael Aug 11, 2023
6e9f473
Updates changelog to include 1.0.9 (#2758)
missylbytes Aug 14, 2023
ab00c03
Adds changelog for 1.2.1, reorders 1.1.4 and 1.0.9 (#2768)
missylbytes Aug 15, 2023
8a5eff0
Mw/net 4260 add tproxy coverage (#2776)
wilkermichael Aug 16, 2023
48184c6
[NET-2880] Add `PrioritizeByLocality` to `ProxyDefaults` CRD (#2784)
zalimeni Aug 17, 2023
9f089ec
AKS 1.24 is deprecated, update to latest 1.25 patch (#2792)
curtbushko Aug 18, 2023
e5ad447
Net 4889 implement retry feature on the api gateway (#2735)
sarahalsmiller Aug 18, 2023
4d40591
Update Kustomize to use `patches` instead of `patchesStrategicMerge` …
Aug 21, 2023
fd19813
[NET-4498] Test locality propagation to services from k8s (#2791)
zalimeni Aug 21, 2023
13f42c2
Use Kubernetes 1.25 on AKS (#2801)
curtbushko Aug 21, 2023
4c95f8f
Point mod to main to fix build errors (#2805)
sarahalsmiller Aug 21, 2023
3c07c5d
Fix peer test flakes. (#2812)
hashi-derek Aug 22, 2023
c064868
NET-4806: Fix ACL tokens for pods don't have pod name set (#2808)
hashi-derek Aug 22, 2023
d647bee
net-1776, add job lifecycle test and changes to connhelper (#2669)
trevorLeonHC Aug 23, 2023
55cb040
Net 1784 inject sidecar first (#2743)
trevorLeonHC Aug 23, 2023
b75d803
Add readOnlyRootFilesystem to security context (#2771) (#2789)
Aug 23, 2023
3fba398
feat: func to create V2 resource client (#2823)
DanStough Aug 23, 2023
11ded8c
feat: add helm value for consul resource-apis experiment (#2800)
DanStough Aug 23, 2023
a73c716
add sameness testing performance enhancement (#2822)
wilkermichael Aug 24, 2023
95f3a28
NET-5186 Add NET_BIND_SERVICE capability to Consul's restricted secur…
nathancoleman Aug 24, 2023
835a10c
Added tests for partition dns/pq (#2816)
wilkermichael Aug 24, 2023
aa8ff67
Mw/net 4888 add namespace tests failover wan fed (#2797)
wilkermichael Aug 25, 2023
4ea0486
fix: lifecycle enabled iptables mismatch (#2842)
DanStough Aug 25, 2023
0cd68fc
refactor: make space for v2 controllers (#2832)
DanStough Aug 25, 2023
a741836
build: update SDK version to use commit from (#2846)
DanStough Aug 25, 2023
b08a159
Revert "Add readOnlyRootFilesystem to security context (#2771)" (#2847)
Aug 28, 2023
ae2b318
Fix issue where CLI install test was running Tproxy manually (#2843)
Aug 28, 2023
085c812
Configure Gateway Deployment Resources (#2723)
Aug 28, 2023
c4cbc32
correct prometheus port and scheme annotations if tls is enabled (#2782)
rigalGit Aug 29, 2023
0dc6bc1
Adds missing fields for PassiveHealthCheck on IngressGateway and Serv…
missylbytes Aug 29, 2023
3056323
added check if anonymous token policy exists (#2790)
aahel Aug 30, 2023
ef30dc0
Net 5229 create dedicated argocd stanza (#2785)
absolutelightning Aug 31, 2023
88fa7e1
docs - Update connectInject.logLevel docs (#2871)
Aug 31, 2023
af16373
NET-5389- Remove global.acls.nodeSelector and global.acls.annotations…
sophie-gairo Sep 1, 2023
decdca5
Filter api-gateway cache logging to reduce log output on server disco…
curtbushko Sep 5, 2023
096954c
removed deprecated `patchesStrategicMerge` (#2894)
wilkermichael Sep 5, 2023
d58a340
NET-5186 Add NET_BIND_SERVICE to built-in PSPs for consul-dataplane d…
nathancoleman Sep 5, 2023
8c44e1d
feat: add v2 pod controller w/ workload lifecycle (#2868)
DanStough Sep 5, 2023
c6b703d
Add RateLimit config to serviceDefaults (#2844)
Sep 5, 2023
837ad52
Address issue #1285 via docs (#2903)
Sep 6, 2023
b66543f
Fix audit log parse error (#2905)
Ganeshrockz Sep 7, 2023
516d762
Force a check on controller-gen version (#2902)
Sep 7, 2023
fd35b89
NET-581 - Added vault namespace in helm (#2841)
absolutelightning Sep 8, 2023
d5fdc0d
[NET-5399] Improve token fetching performance for endpoints controlle…
hashi-derek Sep 8, 2023
6e5d7d8
Update README.md - include Consul API Gateway as a use case (#2931)
Sep 8, 2023
2f84fa0
feat: add v2 endpoints controller (#2883)
zalimeni Sep 11, 2023
da909d7
Tests: Fix/improve tests with Restricted PSA enforcement (#2780)
pglass Sep 11, 2023
fcb1b3e
Fix for acceptance tests
absolutelightning Sep 11, 2023
b0425d6
fix accpetance test
absolutelightning Sep 11, 2023
582039b
fix spaces
absolutelightning Sep 11, 2023
b6f2146
backport of commit 2f673e824efa09c63e3f80f787758fdab510982b
absolutelightning Sep 11, 2023
38ab247
backport of commit d20bfe935449913c1d4e014d1bb3f60af60e2e64
absolutelightning Sep 11, 2023
a0c2832
backport of commit 4f575c08130ef5746a311940b7100ce7a70a8c09
absolutelightning Sep 11, 2023
1feace0
backport of commit 1b7014efc701edc768c723eac98ea28ac8817972
absolutelightning Sep 12, 2023
7ff7258
Fix for acceptance tests (#2937)
absolutelightning Sep 12, 2023
821da78
merge rel
absolutelightning Sep 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/consul/templates/ingress-gateways-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ spec:
{{- if $root.Values.global.secretsBackend.vault.agentAnnotations }}
{{ tpl $root.Values.global.secretsBackend.vault.agentAnnotations $root | nindent 8 | trim }}
{{- end }}
{{- if (and ($root.Values.global.secretsBackend.vault.vaultNamespace) (not (hasKey (default "" $root.Values.global.secretsBackend.vault.agentAnnotations | fromYaml) "vault.hashicorp.com/namespace")))}}
"vault.hashicorp.com/namespace": "{{ $root.Values.global.secretsBackend.vault.vaultNamespace }}"
{{- end }}
{{- end }}
{{- if (and $root.Values.global.metrics.enabled $root.Values.global.metrics.enableGatewayMetrics) }}
"prometheus.io/scrape": "true"
Expand Down
5 changes: 4 additions & 1 deletion charts/consul/templates/server-acl-init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,12 @@ spec:
fieldPath: metadata.name
# Extract the Vault namespace from the Vault agent annotations.
{{- if .Values.global.secretsBackend.vault.enabled }}
{{- if .Values.global.secretsBackend.vault.agentAnnotations }}
{{- if and (.Values.global.secretsBackend.vault.agentAnnotations) (hasKey (default "" .Values.global.secretsBackend.vault.agentAnnotations | fromYaml) "vault.hashicorp.com/namespace") }}
- name: VAULT_NAMESPACE
value: {{ get (tpl .Values.global.secretsBackend.vault.agentAnnotations . | fromYaml) "vault.hashicorp.com/namespace" }}
{{- else if .Values.global.secretsBackend.vault.vaultNamespace }}
- name: VAULT_NAMESPACE
value: {{ .Values.global.secretsBackend.vault.vaultNamespace }}
{{- end }}
{{- end }}
{{- include "consul.consulK8sConsulServerEnvVars" . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/consul/templates/terminating-gateways-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ spec:
{{- if $root.Values.global.secretsBackend.vault.agentAnnotations }}
{{ tpl $root.Values.global.secretsBackend.vault.agentAnnotations $root | nindent 8 | trim }}
{{- end }}
{{- if (and ($root.Values.global.secretsBackend.vault.vaultNamespace) (not (hasKey (default "" $root.Values.global.secretsBackend.vault.agentAnnotations | fromYaml) "vault.hashicorp.com/namespace")))}}
"vault.hashicorp.com/namespace": "{{ $root.Values.global.secretsBackend.vault.vaultNamespace }}"
{{- end }}
{{- end }}
{{- if (and $root.Values.global.metrics.enabled $root.Values.global.metrics.enableGatewayMetrics) }}
"prometheus.io/scrape": "true"
Expand Down
19 changes: 19 additions & 0 deletions charts/consul/test/unit/ingress-gateways-deployment.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,25 @@ key2: value2' \
[ "${actual}" = "bar" ]
}

@test "ingressGateway/Deployment: vault namespace annotations can be set when secretsBackend.vault.vaultNamespace is set and .global.secretsBackend.vault.agentAnnotations is not set." {
cd `chart_dir`
local object=$(helm template \
-s templates/ingress-gateways-deployment.yaml \
--set 'ingressGateways.enabled=true' \
--set 'connectInject.enabled=true' \
--set 'global.tls.enabled=true' \
--set 'global.secretsBackend.vault.enabled=true' \
--set 'global.secretsBackend.vault.consulClientRole=test' \
--set 'global.secretsBackend.vault.consulServerRole=foo' \
--set 'global.tls.caCert.secretName=foo' \
--set 'global.secretsBackend.vault.consulCARole=carole' \
--set 'global.secretsBackend.vault.vaultNamespace=vns' \
. | tee /dev/stderr |
yq -r '.spec.template' | tee /dev/stderr)
local actual=$(echo $object | yq -r '.metadata.annotations."vault.hashicorp.com/namespace"')
[ "${actual}" = "vns" ]
}

#--------------------------------------------------------------------
# terminationGracePeriodSeconds

Expand Down
19 changes: 19 additions & 0 deletions charts/consul/test/unit/terminating-gateways-deployment.bats
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,25 @@ key2: value2' \
[ "${actual}" = "bar" ]
}

@test "terminatingGateways/Deployment: vault namespace annotations can be set when secretsBackend.vault.vaultNamespace is set and .global.secretsBackend.vault.agentAnnotations is not set." {
cd `chart_dir`
local object=$(helm template \
-s templates/terminating-gateways-deployment.yaml \
--set 'terminatingGateways.enabled=true' \
--set 'connectInject.enabled=true' \
--set 'global.tls.enabled=true' \
--set 'global.secretsBackend.vault.enabled=true' \
--set 'global.secretsBackend.vault.consulClientRole=test' \
--set 'global.secretsBackend.vault.consulServerRole=foo' \
--set 'global.tls.caCert.secretName=foo' \
--set 'global.secretsBackend.vault.consulCARole=carole' \
--set 'global.secretsBackend.vault.vaultNamespace=vns' \
. | tee /dev/stderr |
yq -r '.spec.template' | tee /dev/stderr)
local actual=$(echo $object | yq -r '.metadata.annotations."vault.hashicorp.com/namespace"')
[ "${actual}" = "vns" ]
}

#--------------------------------------------------------------------
# global.cloud

Expand Down