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

Add istio and sds values to GatewayParameters #9402

Merged
merged 185 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
4369426
wip
npolshakova Apr 25, 2024
b08391a
Merge main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] Apr 25, 2024
e9ef1fb
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] Apr 26, 2024
1e9479e
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] Apr 26, 2024
c89c8e9
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] Apr 29, 2024
3f84b08
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] Apr 29, 2024
0f1379b
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] Apr 29, 2024
cb7c8cd
wip
npolshakova Apr 29, 2024
be72874
wip
npolshakova Apr 29, 2024
9d5ee77
fix istio install
npolshakova Apr 29, 2024
04a838b
use global.istioIntegration.enableAutoMtls
npolshakova Apr 29, 2024
6dde338
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] Apr 30, 2024
b32f89d
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] Apr 30, 2024
e5d86a1
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] Apr 30, 2024
74e1a6e
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] Apr 30, 2024
37a5e15
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] Apr 30, 2024
2a8bfd9
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] Apr 30, 2024
8959992
Merge remote-tracking branch 'origin/main' into npolshak/istio-k8s-gw…
npolshakova Apr 30, 2024
af0fe2f
fix imports
npolshakova Apr 30, 2024
5a26a2a
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 1, 2024
8c28123
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 1, 2024
7c9c764
check settings
npolshakova May 1, 2024
98c3451
regen, pr comments
npolshakova May 1, 2024
6cc4b89
fix istio uninstall
npolshakova May 1, 2024
998cbd5
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 1, 2024
c997e04
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 1, 2024
4106e5d
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 1, 2024
a4bbf9a
split istio setup
npolshakova May 1, 2024
195a789
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 1, 2024
00d9fe9
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 1, 2024
9a5d72a
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 1, 2024
4202330
remove settings client
npolshakova May 2, 2024
8d19ca9
Merge remote-tracking branch 'origin/main' into npolshak/istio-k8s-gw…
npolshakova May 2, 2024
ba6ffb7
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 2, 2024
b7f8553
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 2, 2024
3d51bc6
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 2, 2024
578441a
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 2, 2024
3e0371c
pr feedback
npolshakova May 2, 2024
97efec7
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 2, 2024
63d40ac
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 2, 2024
22e572c
fixed assertions, cleanup
npolshakova May 2, 2024
fe10b1c
Merge refs/heads/main into npolshak/istio-k8s-gw-e2e-test
soloio-bulldozer[bot] May 2, 2024
a8086e0
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 2, 2024
714a0a2
changelog, debug instructions
npolshakova May 2, 2024
585641c
switch to sep headless svc test suites
npolshakova May 2, 2024
8e62eb3
Merge remote-tracking branch 'origin/npolshak/istio-k8s-gw-e2e-test' …
npolshakova May 2, 2024
38dd09a
classic edge automtls tests
npolshakova May 2, 2024
122660d
k8s gw headless svc test specific suite
npolshakova May 2, 2024
74e460c
Merge npolshak/istio-k8s-gw-e2e-test into npolshak/istio-classic-e2e-…
soloio-bulldozer[bot] May 3, 2024
041a1a8
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 3, 2024
5b84c23
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 3, 2024
0544986
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 3, 2024
b4b6404
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 3, 2024
7902bb2
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 3, 2024
b149f9a
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 3, 2024
e85f4b5
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 6, 2024
88e610f
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 6, 2024
085c553
regen
npolshakova May 7, 2024
0068438
add edge api tests
npolshakova May 7, 2024
e702c0f
passing tests
npolshakova May 7, 2024
bc9b194
passing glooctl tests
npolshakova May 8, 2024
747cbbd
fix uninject
npolshakova May 8, 2024
e0b01e8
Merge branch 'main' into npolshak/istio-classic-e2e-test
npolshakova May 8, 2024
57ce5a2
go mod
npolshakova May 8, 2024
7cd8815
changelog
npolshakova May 8, 2024
a5ece50
Merge remote-tracking branch 'origin/main' into npolshak/istio-classi…
npolshakova May 8, 2024
bea5c92
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 8, 2024
4e6dcce
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 8, 2024
e5f284b
initial upstream tests
npolshakova May 8, 2024
cff00c0
Merge npolshak/istio-classic-e2e-test into npolshak/add-istio-upstrea…
soloio-bulldozer[bot] May 8, 2024
8e5443c
add istio test
npolshakova May 8, 2024
bfd7b2c
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 8, 2024
acd9bc8
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 8, 2024
e2ca61d
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 8, 2024
fb9b2bc
regen
npolshakova May 8, 2024
adb6601
fix template
npolshakova May 8, 2024
390596f
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 9, 2024
43b42e8
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 9, 2024
e136366
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 9, 2024
3f2bd24
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 9, 2024
7427978
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 9, 2024
ed374e7
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 9, 2024
005a0e8
wip
npolshakova May 9, 2024
0501333
mimimize diff
npolshakova May 9, 2024
ce74407
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 9, 2024
19b3733
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 9, 2024
defe03e
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 9, 2024
204de84
Adding changelog file to new location
May 9, 2024
1d115c3
Deleting changelog file from old location
May 9, 2024
d7fa1a7
glooctl
npolshakova May 9, 2024
02215ac
Merge remote-tracking branch 'origin/npolshak/istio-classic-e2e-test'…
npolshakova May 9, 2024
965fd24
use testInst.GeneratedFiles.TempDir
npolshakova May 9, 2024
3bc1f46
remove glooctl path
npolshakova May 9, 2024
ec1d9e3
Merge remote-tracking branch 'origin/npolshak/istio-classic-e2e-test'…
npolshakova May 9, 2024
c0ec588
fix upstream upgrade test
npolshakova May 9, 2024
fc31601
Merge remote-tracking branch 'origin/main' into npolshak/istio-classi…
npolshakova May 9, 2024
101aeb4
Merge remote-tracking branch 'origin/npolshak/istio-classic-e2e-test'…
npolshakova May 9, 2024
591cc79
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 10, 2024
7e718a8
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 10, 2024
e202054
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
2367916
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 10, 2024
b7e3c7e
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 10, 2024
5e83dee
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
14b2000
pr feedback
npolshakova May 10, 2024
deb10cb
Merge remote-tracking branch 'origin/npolshak/istio-classic-e2e-test'…
npolshakova May 10, 2024
bd37b5c
changelog
npolshakova May 10, 2024
0a1ef5b
regen
npolshakova May 10, 2024
0bb2d17
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
02d463a
pr feedback, regen
npolshakova May 10, 2024
04580c9
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
d75af9a
add TestGlooctlIstioInjectEdgeApiGateway to test to run in ci
npolshakova May 10, 2024
f665a4a
add TestAutomtlsIstioEdgeApisGateway and TestIstioEdgeApiGateway to c…
npolshakova May 10, 2024
1b4c147
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
9289070
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 10, 2024
9ce5842
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 10, 2024
ffc841a
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
b549d0c
remove TestCluster refs
npolshakova May 10, 2024
a924ada
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
5358416
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 10, 2024
35874ec
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 10, 2024
766488a
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
a459ac1
fix filepath
npolshakova May 10, 2024
6ae5072
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
cefec55
remove --istio-namespace, not required for uninject, use default for …
npolshakova May 10, 2024
7cac02f
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
0269552
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 10, 2024
0e783fc
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 10, 2024
95a7615
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 10, 2024
41a9a7a
fix manifest file name
npolshakova May 13, 2024
d90be82
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 13, 2024
f4db0a3
add missing istio installation to automtls test
npolshakova May 13, 2024
cf46b4b
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 13, 2024
b2e6942
use edge api headless svc test
npolshakova May 13, 2024
abb29d1
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 13, 2024
eb7e7a5
regen
npolshakova May 13, 2024
92e8686
Merge refs/heads/main into npolshak/istio-classic-e2e-test
soloio-bulldozer[bot] May 13, 2024
f334256
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 13, 2024
c299153
Merge refs/heads/npolshak/istio-classic-e2e-test into npolshak/add-is…
soloio-bulldozer[bot] May 13, 2024
d2fd840
add pr execution run time
npolshakova May 13, 2024
1344e0d
add debug report
npolshakova May 13, 2024
caf279d
fix curl
npolshakova May 13, 2024
fff5f0a
Merge remote-tracking branch 'origin/main' into npolshak/add-istio-up…
npolshakova May 13, 2024
4287ef8
fix upstream tests
npolshakova May 14, 2024
a2dd10e
Merge remote-tracking branch 'origin/main' into npolshak/add-istio-up…
npolshakova May 14, 2024
0a7c70a
regen
npolshakova May 14, 2024
4782999
move changelog
npolshakova May 14, 2024
3c54d0e
Merge remote-tracking branch 'origin/main' into npolshak/istio-deploy…
npolshakova May 14, 2024
c0729cd
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 14, 2024
dc2cf1d
add assertions gw and example apps are ready
npolshakova May 14, 2024
f938287
Merge remote-tracking branch 'origin/main' into npolshak/add-istio-up…
npolshakova May 14, 2024
6f1a3f2
fix assertions
npolshakova May 15, 2024
f780bd5
increase timeout
npolshakova May 15, 2024
89ae2dc
add cluster id to debug output
npolshakova May 15, 2024
9b62c78
Merge refs/heads/main into npolshak/add-istio-upstream-tests
soloio-bulldozer[bot] May 15, 2024
30137ae
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 15, 2024
910533e
fix setup
npolshakova May 15, 2024
ead93da
clean up diff
npolshakova May 15, 2024
29d8090
fix deployer
npolshakova May 15, 2024
250e7c7
Merge branch 'npolshak/add-istio-upstream-tests' into npolshak/istio-…
npolshakova May 15, 2024
73f49ba
pass test
npolshakova May 15, 2024
17c1089
changelog
npolshakova May 15, 2024
80a56df
wip: default sds image
npolshakova May 16, 2024
c1b8d93
fixed default image
npolshakova May 16, 2024
a53c1a2
pr feedback
npolshakova May 16, 2024
aa74605
Merge refs/heads/npolshak/add-istio-upstream-tests into npolshak/isti…
soloio-bulldozer[bot] May 16, 2024
2ac8189
pr feedback
npolshakova May 16, 2024
9faac0c
Merge refs/heads/npolshak/add-istio-upstream-tests into npolshak/isti…
soloio-bulldozer[bot] May 16, 2024
93dad84
fix TestDisableAutomtlsOverridesSSLConfig assertion reset reason
npolshakova May 16, 2024
7bdf6e4
Merge refs/heads/npolshak/add-istio-upstream-tests into npolshak/isti…
soloio-bulldozer[bot] May 16, 2024
5bb1df7
Merge branch 'main' into npolshak/istio-deployer-changes
npolshakova May 16, 2024
91d9e6a
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 16, 2024
fbaf497
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 16, 2024
8c96ce1
remove logs
npolshakova May 16, 2024
cb1f230
Merge remote-tracking branch 'origin/npolshak/istio-deployer-changes'…
npolshakova May 16, 2024
8dc8035
Adding changelog file to new location
May 16, 2024
7b5b766
Deleting changelog file from old location
May 16, 2024
c271596
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 17, 2024
866bd2b
use defaults in values-templates
npolshakova May 17, 2024
6080795
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 17, 2024
bbaac5d
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 17, 2024
c6db202
pr feedback
npolshakova May 17, 2024
d3b0726
Merge remote-tracking branch 'origin/npolshak/istio-deployer-changes'…
npolshakova May 17, 2024
396f6bf
Merge refs/heads/main into npolshak/istio-deployer-changes
soloio-bulldozer[bot] May 17, 2024
04fe4f1
add description to sds and istio integration fields
npolshakova May 20, 2024
92ee07e
Add default values to proto desc
npolshakova May 20, 2024
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
7 changes: 7 additions & 0 deletions changelog/v1.17.0-beta29/add-sds-and-istio-gw-params.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
changelog:
- type: NON_USER_FACING
issueLink: https://github.com/solo-io/solo-projects/issues/6048
resolvesIssue: false
description: >-
Adds SDS and Istio values to GatewayParameters. Adds e2e tests for deploying k8s Gateway with GatewayParameters
that overrides the default SDS and Istio values.
203 changes: 202 additions & 1 deletion install/helm/gloo/crds/gateway.gloo.solo.io_crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
crd.solo.io/specHash: b770956ad3c60ed2
crd.solo.io/specHash: f7620f31f9f0fad8
labels:
app: gloo-gateway
app.kubernetes.io/name: gloo-gateway
Expand Down Expand Up @@ -583,6 +583,207 @@ spec:
type: object
type: array
type: object
sds:
properties:
istioIntegration:
properties:
istioContainer:
properties:
image:
properties:
digest:
type: string
pullPolicy:
enum:
- Unspecified
- IfNotPresent
- Always
- Never
type: string
registry:
type: string
repository:
type: string
tag:
type: string
type: object
logLevel:
type: string
resources:
properties:
limits:
additionalProperties:
type: string
type: object
requests:
additionalProperties:
type: string
type: object
type: object
securityContext:
properties:
allowPrivilegeEscalation:
type: boolean
capabilities:
properties:
add:
items:
type: string
type: array
drop:
items:
type: string
type: array
type: object
privileged:
type: boolean
procMount:
type: string
readOnlyRootFilesystem:
type: boolean
runAsGroup:
format: int64
type: integer
runAsNonRoot:
type: boolean
runAsUser:
format: int64
type: integer
seLinuxOptions:
properties:
level:
type: string
role:
type: string
type:
type: string
user:
type: string
type: object
seccompProfile:
properties:
localhostProfile:
type: string
type:
type: string
type: object
windowsOptions:
properties:
gmsaCredentialSpec:
type: string
gmsaCredentialSpecName:
type: string
hostProcess:
type: boolean
runAsUserName:
type: string
type: object
type: object
type: object
istioDiscoveryAddress:
type: string
istioMetaClusterId:
type: string
istioMetaMeshId:
type: string
type: object
sdsContainer:
properties:
bootstrap:
properties:
logLevel:
type: string
type: object
image:
properties:
digest:
type: string
pullPolicy:
enum:
- Unspecified
- IfNotPresent
- Always
- Never
type: string
registry:
type: string
repository:
type: string
tag:
type: string
type: object
resources:
properties:
limits:
additionalProperties:
type: string
type: object
requests:
additionalProperties:
type: string
type: object
type: object
securityContext:
properties:
allowPrivilegeEscalation:
type: boolean
capabilities:
properties:
add:
items:
type: string
type: array
drop:
items:
type: string
type: array
type: object
privileged:
type: boolean
procMount:
type: string
readOnlyRootFilesystem:
type: boolean
runAsGroup:
format: int64
type: integer
runAsNonRoot:
type: boolean
runAsUser:
format: int64
type: integer
seLinuxOptions:
properties:
level:
type: string
role:
type: string
type:
type: string
user:
type: string
type: object
seccompProfile:
properties:
localhostProfile:
type: string
type:
type: string
type: object
windowsOptions:
properties:
gmsaCredentialSpec:
type: string
gmsaCredentialSpecName:
type: string
hostProcess:
type: boolean
runAsUserName:
type: string
type: object
type: object
type: object
type: object
service:
properties:
clusterIP:
Expand Down
94 changes: 94 additions & 0 deletions projects/gateway2/api/v1alpha1/gateway_parameters.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ message KubernetesProxyConfig {

// Autoscaling configuration.
kube.gateway.gloo.solo.io.Autoscaling autoscaling = 5;

// Sds configuration.
// A non-nil value will enable sds integration. If empty config is provided, the default values will be used.
SdsIntegration sds = 6;
jbohanon marked this conversation as resolved.
Show resolved Hide resolved
}

// Configuration for the Proxy deployment in Kubernetes.
Expand Down Expand Up @@ -109,6 +113,96 @@ message EnvoyBootstrap {
map<string, string> component_log_levels = 2;
}

// Configuration for the sds integration settings used by a Gloo Gateway's data plane (Envoy proxy instance)
// If not set, internal mtls authentication will not be used.
message SdsIntegration {
// Configuration for the container running Gloo sds.
// If not provided, the default values will be used.
SdsContainer sds_container = 1;

// Istio integration configuration
// A non-nil value will enable sds integration. If empty config is provided, the default values will be used.
IstioIntegration istio_integration = 2;
npolshakova marked this conversation as resolved.
Show resolved Hide resolved

}

// Configuration for the Istio integration settings used by a Gloo Gateway's data plane (Envoy proxy instance)
message IstioIntegration {
// Configuration for the container running istio-proxy.
IstioContainer istio_container = 1;

// The address of the istio discovery service. Defaults to "istiod.istio-system.svc:15012".
string istio_discovery_address = 2;

// The mesh id of the istio mesh. Defaults to "cluster.local".
string istio_meta_mesh_id = 3;

// The cluster id of the istio cluster. Defaults to "Kubernetes".
string istio_meta_cluster_id = 4;
}

// Configuration for the container running Gloo sds.
message SdsContainer {
// The sds container image. See
// https://kubernetes.io/docs/concepts/containers/images
// for details.
//
// Default values for Edge OSS, which may be overridden individually:
// registry: quay.io/solo-io
// repository: sds / sds-ee
// tag: <gloo version> (OSS) / <gloo-ee version> (EE)
// pullPolicy: IfNotPresent
kube.gateway.gloo.solo.io.Image image = 1;

// The security context for this container. See
// https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#securitycontext-v1-core
// for details.
k8s.io.api.core.v1.SecurityContext security_context = 2;

// The compute resources required by this container. See
// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// for details.
kube.gateway.gloo.solo.io.ResourceRequirements resources = 3;

// Initial SDS container configuration.
SdsBootstrap bootstrap = 4;
}

// Configuration for the sds instance that is provisioned from a Kubernetes Gateway.
message SdsBootstrap {
// Log level for sds. Options include "info", "debug", "warn", "error", "panic" and "fatal".
// Default level is "info".
string log_level = 1;
}

// Configuration for the container running the istio-proxy.
message IstioContainer {
// The envoy container image. See
// https://kubernetes.io/docs/concepts/containers/images
// for details.
//
// Default values, which may be overridden individually:
// registry: docker.io/istio
// repository: proxyv2
// tag: <gloo version> (OSS) / <gloo-ee version> (EE)
// pullPolicy: IfNotPresent
kube.gateway.gloo.solo.io.Image image = 1;

// The security context for this container. See
// https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#securitycontext-v1-core
// for details.
k8s.io.api.core.v1.SecurityContext security_context = 2;

// The compute resources required by this container. See
// https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
// for details.
kube.gateway.gloo.solo.io.ResourceRequirements resources = 3;

// Log level for istio-proxy. Options include "info", "debug", "warning", and "error".
// Default level is info Default is "warning".
string log_level = 4;
npolshakova marked this conversation as resolved.
Show resolved Hide resolved
}

message GatewayParametersStatus {
// The current conditions of the GatewayParameters. This is not currently
// implemented.
Expand Down
16 changes: 14 additions & 2 deletions projects/gateway2/deployer/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,20 @@ func (d *Deployer) getValues(ctx context.Context, gw *api.Gateway) (*helmConfig,
Port: &d.inputs.ControlPlane.Kube.XdsPort,
},
Image: getDefaultEnvoyImageValues(d.inputs.Extensions.GetEnvoyImage()),
IstioSDS: &helmIstioSds{
// TODO(npolshak): Remove once default GatewayParameters are supported: https://github.com/solo-io/solo-projects/issues/6107
IstioSDS: &istioSDS{
Enabled: &d.inputs.IstioValues.SDSEnabled,
},
},
}

// TODO(npolshak): Remove once default GatewayParameters are supported: https://github.com/solo-io/solo-projects/issues/6107
if d.inputs.IstioValues.SDSEnabled {
// Is Istio integration is enabled, we need to set the SDS image tag
vals.Gateway.Sds = getDefaultSdsValues(d.inputs.Extensions.GetSdsImage())
vals.Gateway.Sds.Istio = getDefaultIstioValues()
}

// check if there is a GatewayParameters associated with this Gateway
gwp, err := d.getGatewayParametersForGateway(ctx, gw)
if err != nil {
Expand All @@ -216,6 +224,7 @@ func (d *Deployer) getValues(ctx context.Context, gw *api.Gateway) (*helmConfig,
podConfig := kubeProxyConfig.GetPodTemplate()
envoyContainerConfig := kubeProxyConfig.GetEnvoyContainer()
svcConfig := kubeProxyConfig.GetService()
sds := kubeProxyConfig.GetSds()

// deployment values
autoscalingVals := getAutoscalingValues(kubeProxyConfig.GetAutoscaling())
Expand All @@ -240,13 +249,16 @@ func (d *Deployer) getValues(ctx context.Context, gw *api.Gateway) (*helmConfig,
// envoy container values
logLevel := envoyContainerConfig.GetBootstrap().GetLogLevel()
compLogLevels := envoyContainerConfig.GetBootstrap().GetComponentLogLevels()

vals.Gateway.LogLevel = &logLevel
compLogLevelStr, err := ComponentLogLevelsToString(compLogLevels)
if err != nil {
return nil, err
}
vals.Gateway.ComponentLogLevel = &compLogLevelStr

// sds values
vals.Gateway.Sds = getSdsValues(sds, d.inputs.Extensions.GetSdsImage())

vals.Gateway.Resources = envoyContainerConfig.GetResources()
vals.Gateway.SecurityContext = envoyContainerConfig.GetSecurityContext()
vals.Gateway.Image = getMergedEnvoyImageValues(d.inputs.Extensions.GetEnvoyImage(), envoyContainerConfig.GetImage())
Expand Down
Loading
Loading