Skip to content

Commit 43e2013

Browse files
olevskiRenkuBotsgaistciyer
authored
release 2.3.0 (#4072)
* chore: remove old search deployments and values (#4069) * fix: make the legacy services flag work (#4067) * feat: upgrade ui to 4.2.0 (#4075) * chore: simplify ui config for openshift (#4065) * feat: upgrade amalthea to 0.20.0 (#4076) * refactor: harmonize security context handling (#4077) securityContext content was defined in multiple different manifests. Their content being hard coded there made them unsuitable for modifications such as required for OpenShift deployment. This patch makes them all use the content coming from the values file since they were mostly all using the same values. * chore: reconcile the two security contexts PRs (#4074) --------- Co-authored-by: Tasko Olevski <tasko.olevski@sdsc.ethz.ch> * refactor: move service account creation to own template (#4080) * feat: upgrade ui to 4.2.1 (#4082) --------- Co-authored-by: Renku Bot <renku@datascience.ch> Co-authored-by: Samuel Gaist <samuel.gaist@idiap.ch> Co-authored-by: Chandrasekhar Ramakrishnan <ciyer@users.noreply.github.com>
1 parent 437cdcb commit 43e2013

29 files changed

Lines changed: 131 additions & 520 deletions

cypress-tests/cypress/e2e/v2/verifyInfrastructure.cy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ function retryRequest(
3636
describe("Verify the infrastructure is ready", () => {
3737
it("Can interact with the backend components", () => {
3838
retryRequest("api/data/version", "Data services");
39-
retryRequest("api/search/version", "Search");
4039
retryRequest("api/auth/login", "Gateway");
4140
retryRequest("config.json", "UI client");
4241

@@ -48,7 +47,7 @@ describe("Verify the infrastructure is ready", () => {
4847
});
4948

5049
// Search should return a list of items
51-
const searchUrl = "/api/search/query";
50+
const searchUrl = "/api/data/search/query";
5251
cy.request(searchUrl).then((resp) => {
5352
if (resp.status >= 400 || !("items" in resp.body))
5453
throw new Error("Search endpoints not working as expected.");

cypress-tests/cypress/support/utils/search.utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function verifySearchIndexing(
1616
);
1717

1818
function attempt(tries: number): Cypress.Chainable<boolean> {
19-
return cy.request(`/api/search/query?q=${query}`).then((response) => {
19+
return cy.request(`/api/data/search/query?q=${query}`).then((response) => {
2020
const success =
2121
matcher === "eq"
2222
? response.body.items && response.body.items.length === expectedItems

helm-chart/renku/requirements.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ dependencies:
1818
condition: enableV1Services
1919
- name: amalthea
2020
repository: "https://swissdatasciencecenter.github.io/helm-charts/"
21-
version: "0.19.2"
21+
version: "0.20.0"
22+
condition: enableV1Services
2223
- name: amalthea-sessions
2324
repository: "https://swissdatasciencecenter.github.io/helm-charts/"
24-
version: "0.19.2"
25+
version: "0.20.0"
2526
- name: dlf-chart
2627
repository: "https://swissdatasciencecenter.github.io/datashim/"
2728
version: "0.3.9-renku-2"

helm-chart/renku/templates/_certificates-init-container.tpl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
- name: init-certificates
44
image: "{{ .Values.global.certificates.image.repository }}:{{ .Values.global.certificates.image.tag }}"
55
securityContext:
6-
allowPrivilegeEscalation: false
7-
runAsUser: 1000
8-
runAsGroup: 1000
9-
runAsNonRoot: true
6+
{{- toYaml .Values.securityContext | nindent 4 }}
107
volumeMounts:
118
- name: etc-ssl-certs
129
mountPath: /etc/ssl/certs/

helm-chart/renku/templates/authz/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ spec:
3636
# and the database migration will not read the db connection uri string from an env variable
3737
image: "{{ .Values.authz.image.repository }}:{{ .Values.authz.image.tag }}-debug"
3838
imagePullPolicy: {{ .Values.authz.image.pullPolicy }}
39+
securityContext:
40+
{{- toYaml .Values.securityContext | nindent 12 }}
3941
env:
4042
- name: "SPICEDB_DATASTORE_CONN_URI"
4143
valueFrom:

helm-chart/renku/templates/data-service/rbac.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,6 @@ rules:
118118
- delete
119119
- create
120120
---
121-
apiVersion: v1
122-
kind: ServiceAccount
123-
metadata:
124-
name: {{ template "renku.fullname" . }}-data-service
125-
labels:
126-
app: {{ template "renku.name" . }}
127-
chart: {{ template "renku.chart" . }}
128-
release: {{ .Release.Name }}
129-
heritage: {{ .Release.Service }}
130-
---
131121
apiVersion: rbac.authorization.k8s.io/v1
132122
kind: RoleBinding
133123
metadata:

helm-chart/renku/templates/data-service/rbac_k8s_watcher.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
release: {{ .Release.Name }}
1010
heritage: {{ .Release.Service }}
1111
rules:
12+
{{- if .Values.enableV1Services }}
1213
- apiGroups:
1314
- {{ .Values.amalthea.crdApiGroup }}
1415
resources:
@@ -21,6 +22,7 @@ rules:
2122
- list
2223
- get
2324
- watch
25+
{{- end }}
2426
- apiGroups:
2527
- amalthea.dev
2628
resources:
@@ -56,16 +58,6 @@ rules:
5658
- watch
5759
{{- end }}
5860
---
59-
apiVersion: v1
60-
kind: ServiceAccount
61-
metadata:
62-
name: {{ template "renku.fullname" . }}-k8s-watcher
63-
labels:
64-
app: {{ template "renku.name" . }}
65-
chart: {{ template "renku.chart" . }}
66-
release: {{ .Release.Name }}
67-
heritage: {{ .Release.Service }}
68-
---
6961
apiVersion: rbac.authorization.k8s.io/v1
7062
kind: RoleBinding
7163
metadata:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: {{ template "renku.fullname" . }}-data-service
5+
labels:
6+
app: {{ template "renku.name" . }}
7+
chart: {{ template "renku.chart" . }}
8+
release: {{ .Release.Name }}
9+
heritage: {{ .Release.Service }}
10+
---
11+
apiVersion: v1
12+
kind: ServiceAccount
13+
metadata:
14+
name: {{ template "renku.fullname" . }}-k8s-watcher
15+
labels:
16+
app: {{ template "renku.name" . }}
17+
chart: {{ template "renku.chart" . }}
18+
release: {{ .Release.Name }}
19+
heritage: {{ .Release.Service }}

helm-chart/renku/templates/ingress.yaml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,11 @@
22
{{- $keycloakEnabled := .Values.keycloakx.enabled -}}
33
{{- $keycloakFullname := include "keycloak.fullname" . -}}
44
{{- $keycloakServicePort := .Values.keycloakx.ingress.servicePort -}}
5-
{{- $gitlabFullname := include "gitlab.fullname" . -}}
6-
{{- $gitlabServicePort := 80 -}}
75
{{- $uiFullname := include "ui.fullname" . -}}
86
{{- $uiServicePort := .Values.ui.client.service.port -}}
97
{{- $uiserverFullname := include "uiserver.fullname" . -}}
108
{{- $uiserverServicePort := .Values.ui.server.service.port -}}
11-
{{- $webhookServiceFullname := include "renku.graph.webhookService.fullname" . -}}
12-
{{- $knowledgeGraphFullname := include "renku.graph.knowledgeGraph.fullname" . -}}
13-
{{- $searchApiFullname := include "renku.search.searchApi.fullname" . -}}
149
{{- $renkuFullname := include "renku.fullname" . -}}
15-
{{- $jenaFullname := include "renku-jena.fullname" . -}}
16-
{{- $jenaServicePort := .Values.jena.service.port -}}
1710
{{- $swaggerEnabled := .Values.swagger.enabled -}}
1811
---
1912
apiVersion: networking.k8s.io/v1
@@ -59,53 +52,54 @@ spec:
5952
port:
6053
name: {{ $keycloakServicePort }}
6154
{{- end }}
62-
- path: /gitlab
55+
- path: /api
6356
pathType: Prefix
6457
backend:
6558
service:
6659
name: {{ template "renku.fullname" $ }}-gateway
6760
port:
6861
number: 80
69-
- path: /repos
62+
- path: /
7063
pathType: Prefix
7164
backend:
7265
service:
73-
name: {{ template "renku.fullname" $ }}-gateway
66+
name: {{ $uiFullname }}
7467
port:
75-
number: 80
76-
- path: /api
68+
number: {{ $uiServicePort }}
69+
- path: /ui-server
7770
pathType: Prefix
7871
backend:
7972
service:
8073
name: {{ template "renku.fullname" $ }}-gateway
8174
port:
82-
number: 80
83-
- path: /entities
75+
number: {{ $uiserverServicePort }}
76+
{{- if $.Values.enableV1Services }}
77+
- path: /gitlab
8478
pathType: Prefix
8579
backend:
8680
service:
8781
name: {{ template "renku.fullname" $ }}-gateway
8882
port:
8983
number: 80
90-
- path: /
84+
- path: /repos
9185
pathType: Prefix
9286
backend:
9387
service:
94-
name: {{ $uiFullname }}
88+
name: {{ template "renku.fullname" $ }}-gateway
9589
port:
96-
number: {{ $uiServicePort }}
97-
- path: /ui-server
90+
number: 80
91+
- path: /entities
9892
pathType: Prefix
9993
backend:
10094
service:
10195
name: {{ template "renku.fullname" $ }}-gateway
10296
port:
103-
number: {{ $uiserverServicePort }}
97+
number: 80
10498
- path: /webhooks/events
10599
pathType: Prefix
106100
backend:
107101
service:
108-
name: {{ $webhookServiceFullname }}
102+
name: {{ template "renku.graph.webhookService.fullname" $ }}
109103
port:
110104
number: 80
111105
- path: /knowledge-graph
@@ -115,6 +109,7 @@ spec:
115109
name: {{ template "renku.fullname" $ }}-gateway
116110
port:
117111
number: 80
112+
{{- end }}
118113
{{- if $swaggerEnabled }}
119114
- path: /swagger
120115
pathType: Prefix

helm-chart/renku/templates/network-policies.yaml

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ spec:
3838
matchLabels:
3939
kubernetes.io/metadata.name: {{ .Release.Namespace }}
4040
{{- end }}
41+
{{- if .Values.enableV1Services }}
4142
- podSelector:
4243
matchLabels:
4344
app: event-log
@@ -56,6 +57,7 @@ spec:
5657
namespaceSelector:
5758
matchLabels:
5859
kubernetes.io/metadata.name: {{ .Release.Namespace }}
60+
{{- end }}
5961
- podSelector:
6062
matchLabels:
6163
app: post-install-postgres
@@ -288,6 +290,7 @@ spec:
288290
ports:
289291
- protocol: TCP
290292
port: http
293+
{{- if .Values.enableV1Services }}
291294
---
292295
apiVersion: networking.k8s.io/v1
293296
kind: NetworkPolicy
@@ -366,33 +369,7 @@ spec:
366369
ports:
367370
- protocol: TCP
368371
port: http-kg
369-
---
370-
apiVersion: networking.k8s.io/v1
371-
kind: NetworkPolicy
372-
metadata:
373-
name: ingress-to-search-service-from-gateway
374-
labels:
375-
app: {{ template "renku.name" . }}
376-
chart: {{ template "renku.chart" . }}
377-
release: {{ .Release.Name }}
378-
heritage: {{ .Release.Service }}
379-
spec:
380-
podSelector:
381-
matchLabels:
382-
app: {{ template "renku.search.searchApi.name" . }}
383-
release: {{ .Release.Name }}
384-
policyTypes:
385-
- Ingress
386-
ingress:
387-
- from:
388-
- podSelector:
389-
matchLabels:
390-
app: {{ template "gateway.name" . }}
391-
release: {{ .Release.Name }}
392-
ports:
393-
- protocol: TCP
394-
port: http-search-api
395-
372+
{{- end }}
396373
---
397374
apiVersion: networking.k8s.io/v1
398375
kind: NetworkPolicy
@@ -494,6 +471,7 @@ spec:
494471
- protocol: TCP
495472
port: http
496473
{{- end }}
474+
{{- if .Values.enableV1Services }}
497475
---
498476
apiVersion: networking.k8s.io/v1
499477
kind: NetworkPolicy
@@ -518,6 +496,7 @@ spec:
518496
ports:
519497
- protocol: TCP
520498
port: http-webhook-sv
499+
{{- end }}
521500
---
522501
apiVersion: networking.k8s.io/v1
523502
kind: NetworkPolicy
@@ -573,6 +552,7 @@ spec:
573552
port: http
574553
- protocol: TCP
575554
port: grpc
555+
{{- if .Values.enableV1Services }}
576556
---
577557
apiVersion: networking.k8s.io/v1
578558
kind: NetworkPolicy
@@ -598,6 +578,7 @@ spec:
598578
ports:
599579
- protocol: TCP
600580
port: http
581+
{{- end }}
601582
{{- if .Values.redis.install }}
602583
---
603584
apiVersion: networking.k8s.io/v1
@@ -637,10 +618,6 @@ spec:
637618
matchLabels:
638619
app: renku-data-tasks
639620
release: {{ .Release.Name }}
640-
- podSelector:
641-
matchLabels:
642-
app: {{ template "renku.search.searchApi.name" . }}
643-
release: {{ .Release.Name }}
644621
ports:
645622
- protocol: TCP
646623
port: redis
@@ -673,12 +650,6 @@ spec:
673650
matchLabels:
674651
app: renku-data-tasks
675652
release: {{ .Release.Name }}
676-
- podSelector:
677-
matchLabels:
678-
app: search-api
679-
- podSelector:
680-
matchLabels:
681-
app: search-provision
682653
ports:
683654
- protocol: TCP
684655
port: http
@@ -750,6 +721,7 @@ spec:
750721
- from:
751722
- ipBlock:
752723
cidr: 0.0.0.0/0
724+
{{- if .Values.enableV1Services }}
753725
---
754726
apiVersion: networking.k8s.io/v1
755727
kind: NetworkPolicy
@@ -962,6 +934,7 @@ spec:
962934
ports:
963935
- protocol: TCP
964936
port: http
937+
{{- end }}
965938
---
966939
apiVersion: networking.k8s.io/v1
967940
kind: NetworkPolicy
@@ -991,6 +964,7 @@ spec:
991964
ports:
992965
- protocol: TCP
993966
port: http
967+
{{- if .Values.enableV1Services }}
994968
---
995969
apiVersion: networking.k8s.io/v1
996970
kind: NetworkPolicy
@@ -1019,6 +993,7 @@ spec:
1019993
ports:
1020994
- protocol: TCP
1021995
port: http
996+
{{- end }}
1022997
---
1023998
apiVersion: networking.k8s.io/v1
1024999
kind: NetworkPolicy
@@ -1046,6 +1021,7 @@ spec:
10461021
ports:
10471022
- protocol: TCP
10481023
port: http
1024+
{{- if .Values.enableV1Services }}
10491025
---
10501026
apiVersion: networking.k8s.io/v1
10511027
kind: NetworkPolicy
@@ -1090,6 +1066,7 @@ spec:
10901066
app.kubernetes.io/name: amalthea
10911067
policyTypes:
10921068
- Egress
1069+
{{- end }}
10931070
---
10941071
apiVersion: networking.k8s.io/v1
10951072
kind: NetworkPolicy

0 commit comments

Comments
 (0)