Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into THR-18-dev-feature-h5…
Browse files Browse the repository at this point in the history
…p-editor
  • Loading branch information
marode-cap committed Jul 28, 2023
2 parents c0935db + cae74fe commit 4befc25
Show file tree
Hide file tree
Showing 803 changed files with 45,465 additions and 32,164 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/" # Location of package manifests
open-pull-requests-limit: 5
versioning-strategy: "increase"
schedule:
interval: "weekly"

1 change: 1 addition & 0 deletions .github/workflows/clean.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ jobs:
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
DEV_KUBE_CONFIG: ${{ secrets.DEV_KUBE_CONFIG }}
BINGO_REPO_TOKEN: ${{ secrets.BINGO_REPO_TOKEN }}
10 changes: 10 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
DEV_VAULT: ${{ secrets.DEV_VAULT }}
DEV_KUBE_CONFIG: ${{ secrets.DEV_KUBE_CONFIG }}
BINGO_REPO_TOKEN: ${{ secrets.BINGO_REPO_TOKEN }}

deploy-successful:
needs:
Expand Down Expand Up @@ -139,6 +140,15 @@ jobs:
with:
ref: ${{ needs.branch_meta.outputs.branch }}

cy-e2e-tests:
needs:
- branch_meta
- deploy
uses: hpi-schul-cloud/e2e-system-tests/.github/workflows/remote-trigger.yml@main
with:
ref: ${{ needs.branch_meta.outputs.branch }}
secrets: inherit

test-successful:
runs-on: ubuntu-latest
needs:
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
with:
args: >
-Dsonar.sources=.
-Dsonar.organization=schulcloud-verbund
-Dsonar.projectKey=hpi-schul-cloud_schulcloud-server
-Dsonar.exclusions=**/*.js
-Dsonar.cpd.exclusions=**/controller/dto/*.ts,**/*.spec.ts
-Dsonar.javascript.lcov.reportPaths=merged-lcov.info
nest_lint:
runs-on: ubuntu-latest
timeout-minutes: 5
Expand Down
2 changes: 1 addition & 1 deletion ansible/group_vars/all/schulcloud-server.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
SCHULCLOUD_SERVER_IMAGE: schulcloud/schulcloud-server
SCHULCLOUD_SERVER_IMAGE: quay.io/schulcloudverbund/schulcloud-server
13 changes: 6 additions & 7 deletions ansible/roles/schulcloud-server-core/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
namespace: "{{ NAMESPACE }}"
template: svc.yml.j2

- name: ServiceMonitor
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: svc-monitor.yml.j2

- name: FileStorageService
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
Expand All @@ -17,13 +23,6 @@
template: api-fwu-svc.yml.j2
when: FEATURE_FWU_CONTENT_ENABLED is defined and FEATURE_FWU_CONTENT_ENABLED|bool

- name: H5pEditorService
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: api-h5p-svc.yml.j2
when: FEATURE_H5P_EDITOR_ENABLED is defined and FEATURE_H5P_EDITOR_ENABLED|bool

- name: Configmap
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ metadata:
namespace: {{ NAMESPACE }}
labels:
app: api-files
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '4444'
spec:
type: ClusterIP
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ metadata:
namespace: {{ NAMESPACE }}
labels:
app: api-fwu
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '4446'
spec:
type: ClusterIP
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ metadata:
namespace: {{ NAMESPACE }}
labels:
app: api-h5p
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '4448'
spec:
type: ClusterIP
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ spec:
- containerPort: 3030
name: api
protocol: TCP
- containerPort: 9090
name: api-metrics
protocol: TCP
envFrom:
- configMapRef:
name: api-configmap
Expand Down
17 changes: 17 additions & 0 deletions ansible/roles/schulcloud-server-core/templates/svc-monitor.yml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: api-svc-monitor
namespace: {{ NAMESPACE }}
labels:
app: api
spec:
selector:
matchExpressions:
- key: app.kubernetes.io/name
operator: in
values:
- api-svc
endpoints:
- path: /metrics
port: api-metrics
7 changes: 4 additions & 3 deletions ansible/roles/schulcloud-server-core/templates/svc.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ metadata:
namespace: {{ NAMESPACE }}
labels:
app: api
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '3030'
spec:
type: ClusterIP
ports:
- port: {{ PORT_SERVER }}
targetPort: 3030
protocol: TCP
name: api
- port: {{ PORT_METRICS_SERVER }}
targetPort: 9090
protocol: TCP
name: api-metrics
selector:
app: api
12 changes: 11 additions & 1 deletion ansible/roles/schulcloud-server-init/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,22 @@
name: mgmt-svc
when: not WITH_SCHULCLOUD_INIT

- name: Check Init Job
kubernetes.core.k8s_info:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
kind: Job
api_version: batch/v1
name: api-init-job
register: init_job_exists
ignore_errors: yes

- name: Init Job
kubernetes.core.k8s:
kubeconfig: ~/.kube/config
namespace: "{{ NAMESPACE }}"
template: job_init.yml.j2
when: WITH_SCHULCLOUD_INIT
when: WITH_SCHULCLOUD_INIT and init_job_exists.resources|length == 0

- name: Remove Init Job
kubernetes.core.k8s:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ spec:
subPath: update.sh
command: ['/bin/sh','-c']
args: ['cp /update.sh /update.run.sh && chmod +x /update.run.sh &&./update.run.sh']
resources:
limits:
cpu: "3000m"
memory: "1Gi"
requests:
cpu: "100m"
memory: "150Mi"
volumes:
- name: script
configMap:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ metadata:
namespace: {{ NAMESPACE }}
labels:
app: management-deployment
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '3333'
spec:
type: ClusterIP
ports:
Expand Down
9 changes: 0 additions & 9 deletions ansible/roles/schulcloud-server-ldap/meta/main.yml

This file was deleted.

34 changes: 0 additions & 34 deletions ansible/roles/schulcloud-server-ldap/tasks/main.yml

This file was deleted.

78 changes: 0 additions & 78 deletions ansible/roles/schulcloud-server-ldap/templates/deployment.yml.j2

This file was deleted.

19 changes: 0 additions & 19 deletions ansible/roles/schulcloud-server-ldap/templates/service.yml.j2

This file was deleted.

Loading

0 comments on commit 4befc25

Please sign in to comment.