Skip to content

Commit

Permalink
chore(service/chart): address PR review findings
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Becker <[email protected]>
  • Loading branch information
sbckr committed Dec 19, 2024
1 parent ad0b89d commit 69fb33c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 21 deletions.
8 changes: 4 additions & 4 deletions charts/ephemeral/templates/discovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
name: discovery-config
- name: tls-secret-volume
secret:
secretName: {{ .Values.discovery.tls.secret }}
secretName: {{ .Values.tls.secret }}
serviceAccountName: discovery
---
kind: Service
Expand Down Expand Up @@ -80,7 +80,7 @@ data:
"frontendURL": "{{ .Values.discovery.frontendUrl }}",
"masterHost": "{{ .Values.discovery.master.host }}",
"masterPort": "{{ .Values.discovery.master.port }}",
"tlsEnabled": {{ .Values.discovery.tls.enabled }},
"tlsEnabled": {{ .Values.tls.enabled }},
"slave": {{ if .Values.discovery.isMaster }}false{{ else }}true{{ end }},
"playerCount": {{ .Values.playerCount }},
"stateTimeout": "{{ .Values.discovery.stateTimeout }}",
Expand All @@ -96,14 +96,14 @@ spec:
selector:
istio: ingressgateway # use istio default controller
servers:
{{- if .Values.discovery.tls.enabled }}
{{- if .Values.tls.enabled }}
- port:
number: 31400
name: cs-grpc
protocol: HTTPS
tls:
mode: MUTUAL # enables mTLS on the Gateway
credentialName: {{ .Values.discovery.tls.secret }} # the name of the Secret that holds the TLS certs and CA certificate
credentialName: {{ .Values.tls.secret }} # the name of the Secret that holds the TLS certs and CA certificate
hosts:
- "*"
{{- else }}
Expand Down
4 changes: 2 additions & 2 deletions charts/ephemeral/templates/ephemeral.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ spec:
name: {{ include "ephemeral.fullname" . }}-config1
- name: tls-secret-volume
secret:
secretName: {{ .Values.ephemeral.tls.secret }}
secretName: {{ .Values.tls.secret }}
serviceAccountName: knative-serving
---
apiVersion: v1
Expand Down Expand Up @@ -108,7 +108,7 @@ data:
"tupleStock": {{ .Values.ephemeral.castor.tupleStock }}
},
"frontendURL": "{{ .Values.ephemeral.frontendUrl }}",
"tlsEnabled": {{ .Values.ephemeral.tls.enabled }},
"tlsEnabled": {{ .Values.tls.enabled }},
"discoveryConfig": {
"host": "{{ .Values.ephemeral.discovery.host }}",
"port": "{{ .Values.ephemeral.discovery.port }}",
Expand Down
4 changes: 2 additions & 2 deletions charts/ephemeral/templates/network-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ metadata:
data:
config.json: |-
{
"tlsEnabled": {{ .Values.networkController.tls.enabled }},
"tlsSecret": "{{ .Values.networkController.tls.secret }}"
"tlsEnabled": {{ .Values.tls.enabled }},
"tlsSecret": "{{ .Values.tls.secret }}"
}
13 changes: 4 additions & 9 deletions charts/ephemeral/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
# This file defines the default values for all variables used in the Ephemeral Helm Chart.
playerCount: 2

tls:
enabled: false
secret:

discovery:
service:
annotations: []
Expand All @@ -26,9 +30,6 @@ discovery:
computationTimeout : "600s"
slave:
connectTimeout: "60s"
tls:
enabled: false
secret:

ephemeral:
service:
Expand Down Expand Up @@ -64,9 +65,6 @@ ephemeral:
path: "/"
tupleStock: 1000
frontendUrl:
tls:
enabled: false
secret:
discovery:
host: discovery.default.svc.cluster.local
port: 8080
Expand All @@ -92,6 +90,3 @@ networkController:
tag: latest
pullPolicy: "IfNotPresent"
pullSecrets: []
tls:
enabled: false
secret:
2 changes: 1 addition & 1 deletion cmd/discovery/main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 - for information on the respective copyright owner
// Copyright (c) 2021-2024 - for information on the respective copyright owner
// see the NOTICE file and/or the repository https://github.com/carbynestack/ephemeral.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion cmd/discovery/main_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 - for information on the respective copyright owner
// Copyright (c) 2021-2024 - for information on the respective copyright owner
// see the NOTICE file and/or the repository https://github.com/carbynestack/ephemeral.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion pkg/discovery/transport/client/client.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 - for information on the respective copyright owner
// Copyright (c) 2021-2024 - for information on the respective copyright owner
// see the NOTICE file and/or the repository https://github.com/carbynestack/ephemeral.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion pkg/ephemeral/spdz.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2021-2023 - for information on the respective copyright owner
// Copyright (c) 2021-2024 - for information on the respective copyright owner
// see the NOTICE file and/or the repository https://github.com/carbynestack/ephemeral.
//
// SPDX-License-Identifier: Apache-2.0
Expand Down

0 comments on commit 69fb33c

Please sign in to comment.