Skip to content

Commit

Permalink
Merge pull request #187 from IN-CORE/release-1.32.0
Browse files Browse the repository at this point in the history
Release 1.32.0
  • Loading branch information
ywkim312 authored Oct 24, 2024
2 parents 7098219 + abcc692 commit a588b87
Show file tree
Hide file tree
Showing 10 changed files with 262 additions and 21 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## 1.32.0 - 2024-10-23
- Project service has been added
- Add additional service urls to the environment variablees of project service
- Add cronjob for alerting new user registration
- IN-CORE release 5.0.0

## 1.31.0 - 2024-08-21
- Update registration and reset password link in playbooks
- Use correct mongodb uri secret in auth service
Expand Down
9 changes: 4 additions & 5 deletions Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ annotations:
- name: Helm Chart
url: https://github.com/IN-CORE/incore-helm
artifacthub.io/changes: |
- IN-CORE release 5.4.1
- Update registration and reset password link in playbooks
- Use correct mongodb uri secret in auth service
- Upgraded postgresql to bitnami/postgresql:15.5.11. This requires an upgrade of the database, which can be done using a dump and restore.
- Updated keycloak theme to 1.1.0 that has email theme
- Project service has been added
- Add additional service urls to the environment variables of project service
- Add cronjob for alerting new user registration
- IN-CORE release 5.5.0
3 changes: 2 additions & 1 deletion templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Services:
- Semantics : {{ .Values.svc_sema.image.tag }}
- Space : {{ .Values.svc_space.image.tag }}
- Plotting : {{ .Values.svc_plotting.image.tag }}
- Project : {{ .Values.svc_project.image.tag }}

Maestro Services:
{{- if .Values.svc_maestro.testbeds }}
Expand Down Expand Up @@ -73,4 +74,4 @@ Support:

Cron Job:
- Maestro User Sync : {{ .Values.maestro_usersync.image.tag }}
- Version Tag Sync : {{ .Values.frontend.image.tag }}
- New User Alert : {{ .Values.cronjob.keycloak.new_user_alert.image.tag }}
52 changes: 52 additions & 0 deletions templates/cronjobs/keycloak-new-user-alert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ include "incore.fullname" . }}-new-user-alert
labels:
{{- include "incore.labels" . | nindent 4 }}
spec:
schedule: "0 8,16 * * 1-5" # Runs at 8 AM and 4 PM, Monday to Friday
startingDeadlineSeconds: 3600
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
jobTemplate:
spec:
backoffLimit: 1
template:
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
containers:
- name: new-user-alert-job
image: "{{ .Values.image.project }}/{{ .Values.cronjob.keycloak.new_user_alert.image.repository }}:{{ .Values.cronjob.keycloak.new_user_alert.image.tag }}"
imagePullPolicy: IfNotPresent
command: ["python"]
args:
- "/usr/src/app/find_new_users_and_mail.py"
env:
- name: KEYCLOAK_USERNAME
value: {{ .Values.maestro_usersync.env.ADMIN_USERNAME }}
- name: KEYCLOAK_PASSWORD
value: {{ .Values.keycloak.auth.adminPassword }}
- name: KEYCLOAK_URL
value: {{ .Values.maestro_usersync.env.SERVER_BASE_URL }}
- name: REALM
value: In-core
- name: GROUP
value: 0unapproved
- name: SMTP_SERVER
value: {{ .Values.cronjob.keycloak.new_user_alert.env.SMTP_SERVER }}
- name: SMTP_PORT
value: {{ .Values.cronjob.keycloak.new_user_alert.env.SMTP_PORT | quote }}
- name: EMAIL_SUBJECT
value: {{ .Values.cronjob.keycloak.new_user_alert.env.EMAIL_SUBJECT | quote }}
- name: EMAIL_RECIPIENTS
value: {{ .Values.cronjob.keycloak.new_user_alert.env.EMAIL_RECIPIENTS }}
- name: EMAIL_FROM
value: {{ .Values.cronjob.keycloak.new_user_alert.env.EMAIL_FROM }}
- name: EMAIL_BODY
value: {{ .Values.cronjob.keycloak.new_user_alert.env.EMAIL_BODY | quote }}
restartPolicy: Never
2 changes: 2 additions & 0 deletions templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ data:
DFR3_MONGODB_URI: {{ include "incore.mongodb.uri" . | replace "@DB@" "dfr3db" | b64enc | quote }}
HAZARD_MONGODB_URI: {{ include "incore.mongodb.uri" . | replace "@DB@" "hazarddb" | b64enc | quote }}
SPACE_MONGODB_URI: {{ include "incore.mongodb.uri" . | replace "@DB@" "spacedb" | b64enc | quote }}
PROJECT_MONGODB_URI: {{ include "incore.mongodb.uri" . | replace "@DB@" "projectdb" | b64enc | quote }}
SEMANTICS_MONGODB_URI: {{ include "incore.mongodb.uri" . | replace "@DB@" "semanticsdb" | b64enc | quote }}
MAESTRO_MONGODB_URI: {{ include "incore.mongodb.uri" . | replace "@DB@" "maestrodb" | b64enc | quote }}
COMMON_MONGODB_URI: {{ include "incore.mongodb.uri" . | replace "@DB@" "commondb" | b64enc | quote }}
Expand All @@ -23,6 +24,7 @@ data:
HAZARD_SERVICE_URL: {{ printf "http://%s-svc-hazard:%.f" (include "incore.fullname" .) .Values.svc_hazard.service.port | b64enc | quote }}
DFR3_SERVICE_URL: {{ printf "http://%s-svc-dfr3:%.f" (include "incore.fullname" .) .Values.svc_dfr3.service.port | b64enc | quote }}
SPACE_SERVICE_URL: {{ printf "http://%s-svc-space:%.f" (include "incore.fullname" .) .Values.svc_space.service.port | b64enc | quote }}
PROJECT_SERVICE_URL: {{ printf "http://%s-svc-project:%.f" (include "incore.fullname" .) .Values.svc_project.service.port | b64enc | quote }}
SEMANTICS_SERVICE_URL: {{ printf "http://%s-svc-sema:%.f" (include "incore.fullname" .) .Values.svc_sema.service.port | b64enc | quote }}
INFLUXDB_V2_TOKEN: {{ .Values.auth.influxdb.token | b64enc | quote }}
{{- if .Values.svc_maestro }}
Expand Down
90 changes: 90 additions & 0 deletions templates/svc-project/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "incore.fullname" . }}-svc-project
labels:
{{- include "incore.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.svc_project.replicas }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "incore.name" . }}-svc-project
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "incore.name" . }}-svc-project
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: incore-project-jetty
image: "{{ .Values.image.project }}/{{ .Values.svc_project.image.repository }}:{{ .Values.svc_project.image.tag }}"
imagePullPolicy: {{ .Values.svc_project.image.pullPolicy | default .Values.image.pullPolicy }}
env:
- name: JETTY_PORT
value: {{ .Values.svc_project.service.port | quote }}
- name: PROJECT_MONGODB_URI
valueFrom:
secretKeyRef:
name: {{ include "incore.fullname" . }}-services
key: PROJECT_MONGODB_URI
- name: SPACE_MONGODB_URI
valueFrom:
secretKeyRef:
name: {{ include "incore.fullname" . }}-services
key: SPACE_MONGODB_URI
- name: COMMON_MONGODB_URI
valueFrom:
secretKeyRef:
name: {{ include "incore.fullname" . }}-services
key: COMMON_MONGODB_URI
- name: SERVICES_ALLOW_ORIGIN
value: {{ join "," .Values.cors.origin | quote }}
- name: SERVICES_ALLOW_METHODS
value: {{ .Values.cors.methods | quote }}
- name: SERVICES_ALLOW_HEADERS
value: {{ .Values.cors.headers | quote }}
- name: DATA_SERVICE_URL
valueFrom:
secretKeyRef:
name: {{ include "incore.fullname" . }}-services
key: DATA_SERVICE_URL
- name: DFR3_SERVICE_URL
valueFrom:
secretKeyRef:
name: {{ include "incore.fullname" . }}-services
key: DFR3_SERVICE_URL
- name: HAZARD_SERVICE_URL
valueFrom:
secretKeyRef:
name: {{ include "incore.fullname" . }}-services
key: HAZARD_SERVICE_URL
ports:
- containerPort: {{ .Values.svc_project.service.port }}
name: svc-project
livenessProbe:
httpGet:
path: /project/
port: {{ .Values.svc_project.service.port }}
readinessProbe:
httpGet:
path: /project/
port: {{ .Values.svc_project.service.port }}
resources:
{{- toYaml .Values.frontend.resources | nindent 12 }}
{{- with .Values.frontend.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.frontend.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.frontend.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
39 changes: 39 additions & 0 deletions templates/svc-project/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "incore.fullname" . -}}
{{- $svcPort := .Values.svc_project.service.port -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}-svc-project
labels:
{{- include "incore.labels" . | nindent 4 }}
annotations:
{{- include "incore.authIngressAnnotation" . | nindent 4 }}
{{- with .Values.svc_project.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
- path: /project/
pathType: ImplementationSpecific
backend:
service:
name: {{ $fullName }}-svc-project
port:
number: {{ $svcPort }}
{{- end }}
{{- end }}
16 changes: 16 additions & 0 deletions templates/svc-project/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "incore.fullname" . }}-svc-project
labels:
{{- include "incore.labels" . | nindent 4 }}
spec:
selector:
app.kubernetes.io/name: {{ include "incore.name" . }}-svc-project
app.kubernetes.io/instance: {{ .Release.Name }}
type: {{ .Values.svc_project.service.type }}
ports:
- port: {{ .Values.svc_project.service.port }}
name: svc-project
targetPort: {{ .Values.svc_project.service.port }}
protocol: TCP
5 changes: 5 additions & 0 deletions templates/svc-space/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ spec:
secretKeyRef:
name: {{ include "incore.fullname" . }}-services
key: SPACE_MONGODB_URI
- name: PROJECT_SERVICE_URL
valueFrom:
secretKeyRef:
name: {{ include "incore.fullname" . }}-services
key: PROJECT_SERVICE_URL
- name: SEMANTICS_MONGODB_URI
valueFrom:
secretKeyRef:
Expand Down
Loading

0 comments on commit a588b87

Please sign in to comment.