Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 2 deletions cypress-tests/cypress/e2e/v2/verifyInfrastructure.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ function retryRequest(
describe("Verify the infrastructure is ready", () => {
it("Can interact with the backend components", () => {
retryRequest("api/data/version", "Data services");
retryRequest("api/search/version", "Search");
retryRequest("api/auth/login", "Gateway");
retryRequest("config.json", "UI client");

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

// Search should return a list of items
const searchUrl = "/api/search/query";
const searchUrl = "/api/data/search/query";
cy.request(searchUrl).then((resp) => {
if (resp.status >= 400 || !("items" in resp.body))
throw new Error("Search endpoints not working as expected.");
Expand Down
2 changes: 1 addition & 1 deletion cypress-tests/cypress/support/utils/search.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function verifySearchIndexing(
);

function attempt(tries: number): Cypress.Chainable<boolean> {
return cy.request(`/api/search/query?q=${query}`).then((response) => {
return cy.request(`/api/data/search/query?q=${query}`).then((response) => {
const success =
matcher === "eq"
? response.body.items && response.body.items.length === expectedItems
Expand Down
1 change: 1 addition & 0 deletions helm-chart/renku/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies:
- name: amalthea
repository: "https://swissdatasciencecenter.github.io/helm-charts/"
version: "0.19.1"
condition: enableV1Services
- name: amalthea-sessions
repository: "https://swissdatasciencecenter.github.io/helm-charts/"
version: "0.19.1"
Expand Down
2 changes: 2 additions & 0 deletions helm-chart/renku/templates/data-service/rbac_k8s_watcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ metadata:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
rules:
{{- if .Values.enableV1Services }}
- apiGroups:
- {{ .Values.amalthea.crdApiGroup }}
resources:
Expand All @@ -21,6 +22,7 @@ rules:
- list
- get
- watch
{{- end }}
- apiGroups:
- amalthea.dev
resources:
Expand Down
35 changes: 15 additions & 20 deletions helm-chart/renku/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@
{{- $keycloakEnabled := .Values.keycloakx.enabled -}}
{{- $keycloakFullname := include "keycloak.fullname" . -}}
{{- $keycloakServicePort := .Values.keycloakx.ingress.servicePort -}}
{{- $gitlabFullname := include "gitlab.fullname" . -}}
{{- $gitlabServicePort := 80 -}}
{{- $uiFullname := include "ui.fullname" . -}}
{{- $uiServicePort := .Values.ui.client.service.port -}}
{{- $uiserverFullname := include "uiserver.fullname" . -}}
{{- $uiserverServicePort := .Values.ui.server.service.port -}}
{{- $webhookServiceFullname := include "renku.graph.webhookService.fullname" . -}}
{{- $knowledgeGraphFullname := include "renku.graph.knowledgeGraph.fullname" . -}}
{{- $searchApiFullname := include "renku.search.searchApi.fullname" . -}}
{{- $renkuFullname := include "renku.fullname" . -}}
{{- $jenaFullname := include "renku-jena.fullname" . -}}
{{- $jenaServicePort := .Values.jena.service.port -}}
{{- $swaggerEnabled := .Values.swagger.enabled -}}
---
apiVersion: networking.k8s.io/v1
Expand Down Expand Up @@ -59,53 +52,54 @@ spec:
port:
name: {{ $keycloakServicePort }}
{{- end }}
- path: /gitlab
- path: /api
pathType: Prefix
backend:
service:
name: {{ template "renku.fullname" $ }}-gateway
port:
number: 80
- path: /repos
- path: /
pathType: Prefix
backend:
service:
name: {{ template "renku.fullname" $ }}-gateway
name: {{ $uiFullname }}
port:
number: 80
- path: /api
number: {{ $uiServicePort }}
- path: /ui-server
pathType: Prefix
backend:
service:
name: {{ template "renku.fullname" $ }}-gateway
port:
number: 80
- path: /entities
number: {{ $uiserverServicePort }}
{{- if $.Values.enableV1Services }}
- path: /gitlab
pathType: Prefix
backend:
service:
name: {{ template "renku.fullname" $ }}-gateway
port:
number: 80
- path: /
- path: /repos
pathType: Prefix
backend:
service:
name: {{ $uiFullname }}
name: {{ template "renku.fullname" $ }}-gateway
port:
number: {{ $uiServicePort }}
- path: /ui-server
number: 80
- path: /entities
pathType: Prefix
backend:
service:
name: {{ template "renku.fullname" $ }}-gateway
port:
number: {{ $uiserverServicePort }}
number: 80
- path: /webhooks/events
pathType: Prefix
backend:
service:
name: {{ $webhookServiceFullname }}
name: {{ template "renku.graph.webhookService.fullname" $ }}
port:
number: 80
- path: /knowledge-graph
Expand All @@ -115,6 +109,7 @@ spec:
name: {{ template "renku.fullname" $ }}-gateway
port:
number: 80
{{- end }}
{{- if $swaggerEnabled }}
- path: /swagger
pathType: Prefix
Expand Down
51 changes: 14 additions & 37 deletions helm-chart/renku/templates/network-policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ spec:
matchLabels:
kubernetes.io/metadata.name: {{ .Release.Namespace }}
{{- end }}
{{- if .Values.enableV1Services }}
- podSelector:
matchLabels:
app: event-log
Expand All @@ -56,6 +57,7 @@ spec:
namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: {{ .Release.Namespace }}
{{- end }}
- podSelector:
matchLabels:
app: post-install-postgres
Expand Down Expand Up @@ -288,6 +290,7 @@ spec:
ports:
- protocol: TCP
port: http
{{- if .Values.enableV1Services }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down Expand Up @@ -366,33 +369,7 @@ spec:
ports:
- protocol: TCP
port: http-kg
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: ingress-to-search-service-from-gateway
labels:
app: {{ template "renku.name" . }}
chart: {{ template "renku.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
podSelector:
matchLabels:
app: {{ template "renku.search.searchApi.name" . }}
release: {{ .Release.Name }}
policyTypes:
- Ingress
ingress:
- from:
- podSelector:
matchLabels:
app: {{ template "gateway.name" . }}
release: {{ .Release.Name }}
ports:
- protocol: TCP
port: http-search-api

{{- end }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down Expand Up @@ -494,6 +471,7 @@ spec:
- protocol: TCP
port: http
{{- end }}
{{- if .Values.enableV1Services }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand All @@ -518,6 +496,7 @@ spec:
ports:
- protocol: TCP
port: http-webhook-sv
{{- end }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down Expand Up @@ -573,6 +552,7 @@ spec:
port: http
- protocol: TCP
port: grpc
{{- if .Values.enableV1Services }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand All @@ -598,6 +578,7 @@ spec:
ports:
- protocol: TCP
port: http
{{- end }}
{{- if .Values.redis.install }}
---
apiVersion: networking.k8s.io/v1
Expand Down Expand Up @@ -637,10 +618,6 @@ spec:
matchLabels:
app: renku-data-tasks
release: {{ .Release.Name }}
- podSelector:
matchLabels:
app: {{ template "renku.search.searchApi.name" . }}
release: {{ .Release.Name }}
ports:
- protocol: TCP
port: redis
Expand Down Expand Up @@ -673,12 +650,6 @@ spec:
matchLabels:
app: renku-data-tasks
release: {{ .Release.Name }}
- podSelector:
matchLabels:
app: search-api
- podSelector:
matchLabels:
app: search-provision
ports:
- protocol: TCP
port: http
Expand Down Expand Up @@ -750,6 +721,7 @@ spec:
- from:
- ipBlock:
cidr: 0.0.0.0/0
{{- if .Values.enableV1Services }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down Expand Up @@ -962,6 +934,7 @@ spec:
ports:
- protocol: TCP
port: http
{{- end }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down Expand Up @@ -991,6 +964,7 @@ spec:
ports:
- protocol: TCP
port: http
{{- if .Values.enableV1Services }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down Expand Up @@ -1019,6 +993,7 @@ spec:
ports:
- protocol: TCP
port: http
{{- end }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down Expand Up @@ -1046,6 +1021,7 @@ spec:
ports:
- protocol: TCP
port: http
{{- if .Values.enableV1Services }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down Expand Up @@ -1090,6 +1066,7 @@ spec:
app.kubernetes.io/name: amalthea
policyTypes:
- Egress
{{- end }}
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
Expand Down
2 changes: 2 additions & 0 deletions helm-chart/renku/templates/notebooks/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.enableV1Services }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -117,3 +118,4 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
32 changes: 0 additions & 32 deletions helm-chart/renku/templates/search/_helpers.tpl

This file was deleted.

Loading
Loading