Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5.3.0
with:
python-version: 3.x
python-version: '3.13.7'
check-latest: true

- name: Set up chart-testing
Expand Down
6 changes: 5 additions & 1 deletion charts/basyx/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ apiVersion: v2
name: aas-basyx-v2-full
description: Umbrella chart for the AAS Basyx v2 Environment
type: application
version: 2.0.11
version: 2.1.11
appVersion: 2.0.0-milestone-06

dependencies:
Expand All @@ -53,6 +53,10 @@ dependencies:
version: "0.0.1"
repository: file://dependency_charts/aas-web-ui
condition: aas-web-ui.enabled
- name: aas-digitaltwinregistry
version: "0.0.1"
repository: file://dependency_charts/aas-digitaltwinregistry
condition: aas-digitaltwinregistry.enabled
- name: mqtt
version: "0.0.1"
repository: file://dependency_charts/mqtt
Expand Down
32 changes: 32 additions & 0 deletions charts/basyx/dependency_charts/aas-digitaltwinregistry/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#################################################################################
# Copyright (C) 2025 the Eclipse BaSyx Authors
# Copyright (C) 2025 SAP SE
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# SPDX-License-Identifier: MIT
#################################################################################

---
apiVersion: v2
description: A Helm chart for running the Basyx AAS Digital Twin Registry (Basyx v2 - AAS v3)
name: aas-digitaltwinregistry
type: application
version: 0.0.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "aas-digitaltwinregistry.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "aas-digitaltwinregistry.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}

{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "aas-digitaltwinregistry.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "aas-digitaltwinregistry.labels" -}}
helm.sh/chart: {{ include "aas-digitaltwinregistry.chart" . }}
{{ include "aas-digitaltwinregistry.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}

{{/*
Selector labels
*/}}
{{- define "aas-digitaltwinregistry.selectorLabels" -}}
app.kubernetes.io/name: {{ include "aas-digitaltwinregistry.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "aas-digitaltwinregistry.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "aas-digitaltwinregistry.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#################################################################################
# Copyright (C) 2025 SAP SE
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# SPDX-License-Identifier: MIT
#################################################################################

---
{{- if .Values.apirule.enabled }}
apiVersion: gateway.kyma-project.io/v2
kind: APIRule
metadata:
labels:
{{- include "aas-digitaltwinregistry.labels" . | nindent 4 }}
name: {{ include "aas-digitaltwinregistry.fullname" . }}
spec:
gateway: kyma-system/kyma-gateway
{{- if .Values.apirule.corsPolicy }}
corsPolicy:
{{- with .Values.apirule.corsPolicy }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
hosts:
- {{ .Values.apirule.host }}
service:
name: {{ include "aas-digitaltwinregistry.fullname" . }}
port: {{ .Values.service.port }}
timeout: 360
rules:
- path: /*
methods: {{- toYaml .Values.apirule.methods | nindent 6 }}
noAuth: true
{{ end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#################################################################################
# Copyright (C) 2025 SAP SE
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# SPDX-License-Identifier: MIT
#################################################################################

---
{{- if .Values.apirule.enabled }}
apiVersion: security.istio.io/v1
kind: AuthorizationPolicy
metadata:
name: {{ include "aas-digitaltwinregistry.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
action: ALLOW
rules:
- from:
- source:
notPrincipals: ["cluster.local/ns/istio-system/sa/istio-ingressgateway-service-account"]
{{ end -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#################################################################################
# Copyright (C) 2025 SAP SE
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# SPDX-License-Identifier: MIT
#################################################################################

---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "aas-digitaltwinregistry.fullname" . }}-config
labels:
{{- include "aas-digitaltwinregistry.labels" . | nindent 4 }}
data:
application.yml: |-
{{ .Values.application | nindent 4 }}
application-InMemory.yml: |-
{{ index .Values "application-InMemory" | nindent 4 }}
application-MongoDB.yml: |-
{{ index .Values "application-MongoDB" | nindent 4 }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
#################################################################################
# Copyright (C) 2025 the Eclipse BaSyx Authors
# Copyright (C) 2025 SAP SE
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# SPDX-License-Identifier: MIT
#################################################################################

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "aas-digitaltwinregistry.fullname" . }}
labels:
{{- include "aas-digitaltwinregistry.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "aas-digitaltwinregistry.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- if .Values.apirule.enabled }}
sidecar.istio.io/inject: "true"
{{ end -}}
{{- include "aas-digitaltwinregistry.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: {{ .Values.image.name }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: SERVER_PORT
value: {{ .Values.service.port | quote }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 10 }}
volumeMounts:
volumeMounts:
- mountPath: /application/application.yml
name: {{ template "aas-digitaltwinregistry.fullname" $ }}-config
subPath: application.yml
- mountPath: /application/application-MongoDB.yml
name: {{ template "aas-digitaltwinregistry.fullname" $ }}-config
subPath: application-MongoDB.yml
- mountPath: /application/application-InMemory.yml
name: {{ template "aas-digitaltwinregistry.fullname" $ }}-config
subPath: application-InMemory.yml
volumes:
- name: {{ template "aas-digitaltwinregistry.fullname" $ }}-config
configMap:
name: {{ template "aas-digitaltwinregistry.fullname" $ }}-config
- name: {{ template "aas-digitaltwinregistry.fullname" $ }}-rbac-rules
configMap:
name: {{ template "aas-digitaltwinregistry.fullname" $ }}-rbac-rules
Loading