Skip to content

Commit

Permalink
Merge pull request #41 from eclipse-tractusx/release/0.0.4
Browse files Browse the repository at this point in the history
Release version 0.0.4
  • Loading branch information
paullatzelsperger authored Apr 26, 2024
2 parents 8788f60 + 38639a2 commit ead0d7f
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 15 deletions.
4 changes: 2 additions & 2 deletions charts/bdrs-server-memory/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.3
version: 0.0.4
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.0.3"
appVersion: "0.0.4"
home: https://github.com/eclipse-tractusx/bpn-did-resolution-service/tree/main/charts/bdrs-server
sources:
- https://github.com/eclipse-tractusx/bpn-did-resolution-service/tree/main/charts/bdrs-server
5 changes: 3 additions & 2 deletions charts/bdrs-server-memory/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bdrs-server-memory

![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.3](https://img.shields.io/badge/AppVersion-0.0.3-informational?style=flat-square)
![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.4](https://img.shields.io/badge/AppVersion-0.0.4-informational?style=flat-square)

A Helm chart for the Tractus-X BPN-DID Resolution Service (only in-memory persistence)

Expand All @@ -25,7 +25,7 @@ Simply execute these commands on a shell:

```shell
helm repo add tractusx https://eclipse-tractusx.github.io/charts/dev
helm install my-release tractusx-edc/bdrs-server --version 0.0.3 \
helm install my-release tractusx-edc/bdrs-server --version 0.0.4 \
-f <path-to>/additional-values-file.yaml \
--wait-for-jobs --timeout=120s --dependency-update
```
Expand Down Expand Up @@ -127,6 +127,7 @@ helm install my-release tractusx-edc/bdrs-server --version 0.0.3 \
| server.service.annotations | object | `{}` | |
| server.service.type | string | `"ClusterIP"` | [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service. |
| server.tolerations | list | `[]` | |
| server.trustedIssuers | list | `[]` | Configures the trusted issuers for this runtime. Must not be empty. |
| server.url.protocol | string | `""` | Explicitly declared url for reaching the dsp api (e.g. if ingresses not used) |
| server.url.public | string | `""` | |
| server.url.readiness | string | `""` | |
Expand Down
12 changes: 12 additions & 0 deletions charts/bdrs-server-memory/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,18 @@ spec:
- name: "WEB_HTTP_DIRECTORY_PATH"
value: {{ .Values.server.endpoints.directory.path | quote }}

#############################
## TRUSTED ISSUER CONFIG
#############################
{{- if empty .Values.server.trustedIssuers }}
{{- required "List of trusted issuers cannot be empty!" "" }}
{{- else }}
{{- range $index, $issuer := .Values.server.trustedIssuers }}
- name: "EDC_IAM_TRUSTED-ISSUER_{{$index}}-ISSUER_ID"
value: {{ $issuer | quote }}
{{- end }}
{{- end }}

######################################
## Additional environment variables ##
######################################
Expand Down
5 changes: 0 additions & 5 deletions charts/bdrs-server-memory/templates/tests/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ spec:
image: curlimages/curl
command: [ 'curl', '--fail' ]
args: [ '{{- printf "http://%s:%v%s/check/readiness" (include "bdrs.fullname" $ ) $.Values.server.endpoints.default.port $.Values.server.endpoints.default.path -}}' ]
{{/* Try getting a BPN/DID mapping via the management API */}}
- name: bdrs-management-api
image: curlimages/curl
command: [ 'curl', '-i', '--fail', '-X', 'GET', '-H', '{{- printf "x-api-key: %s" $.Values.server.endpoints.management.authKey }}' ]
args: [ '{{- printf "http://%s:%v%s/bpn-directory" (include "bdrs.fullname" $ ) $.Values.server.endpoints.management.port $.Values.server.endpoints.management.path -}}' ]
restartPolicy: Never
securityContext:
fsGroup: 101 # curl_group
Expand Down
3 changes: 3 additions & 0 deletions charts/bdrs-server-memory/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ server:
path: /api/directory
# -- dsp api, used for inter connector communication and must be internet facing

# -- Configures the trusted issuers for this runtime. Must not be empty.
trustedIssuers: []

service:
# -- [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service.
type: ClusterIP
Expand Down
4 changes: 2 additions & 2 deletions charts/bdrs-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.3
version: 0.0.4
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.0.3"
appVersion: "0.0.4"
home: https://github.com/eclipse-tractusx/bpn-did-resolution-service/tree/main/charts/bdrs-server
sources:
- https://github.com/eclipse-tractusx/bpn-did-resolution-service/tree/main/charts/bdrs-server
Expand Down
5 changes: 3 additions & 2 deletions charts/bdrs-server/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# bdrs-server

![Version: 0.0.3](https://img.shields.io/badge/Version-0.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.3](https://img.shields.io/badge/AppVersion-0.0.3-informational?style=flat-square)
![Version: 0.0.4](https://img.shields.io/badge/Version-0.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.0.4](https://img.shields.io/badge/AppVersion-0.0.4-informational?style=flat-square)

A Helm chart for the Tractus-X BPN-DID Resolution Service

Expand All @@ -22,7 +22,7 @@ Simply execute these commands on a shell:

```shell
helm repo add tractusx https://eclipse-tractusx.github.io/charts/dev
helm install my-release tractusx-edc/bdrs-server --version 0.0.3 \
helm install my-release tractusx-edc/bdrs-server --version 0.0.4 \
-f <path-to>/additional-values-file.yaml \
--wait-for-jobs --timeout=120s --dependency-update
```
Expand Down Expand Up @@ -139,6 +139,7 @@ helm install my-release tractusx-edc/bdrs-server --version 0.0.3 \
| server.service.annotations | object | `{}` | |
| server.service.type | string | `"ClusterIP"` | [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service. |
| server.tolerations | list | `[]` | |
| server.trustedIssuers | list | `[]` | Configures the trusted issuers for this runtime. Must not be empty. |
| server.url.protocol | string | `""` | Explicitly declared url for reaching the dsp api (e.g. if ingresses not used) |
| server.url.public | string | `""` | |
| server.url.readiness | string | `""` | |
Expand Down
14 changes: 13 additions & 1 deletion charts/bdrs-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
{{- if .Values.server.image.repository }}
image: "{{ .Values.server.image.repository }}:{{ .Values.server.image.tag | default .Chart.AppVersion }}"
{{- else }}
image: "tractusx/bdrs-server-memory:{{ .Values.server.image.tag | default .Chart.AppVersion }}"
image: "tractusx/bdrs-server:{{ .Values.server.image.tag | default .Chart.AppVersion }}"
{{- end }}

imagePullPolicy: {{ .Values.server.image.pullPolicy }}
Expand Down Expand Up @@ -192,6 +192,18 @@ spec:
value: {{ .Values.vault.hashicorp.paths.health | quote }}


#############################
## TRUSTED ISSUER CONFIG
#############################
{{- if empty .Values.server.trustedIssuers }}
{{- required "List of trusted issuers cannot be empty!" "" }}
{{- else }}
{{- range $index, $issuer := .Values.server.trustedIssuers }}
- name: "EDC_IAM_TRUSTED-ISSUER_{{$index}}-ISSUER_ID"
value: {{ $issuer | quote }}
{{- end }}
{{- end }}

######################################
## Additional environment variables ##
######################################
Expand Down
3 changes: 3 additions & 0 deletions charts/bdrs-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ server:
path: /api/directory
# -- dsp api, used for inter connector communication and must be internet facing

# -- Configures the trusted issuers for this runtime. Must not be empty.
trustedIssuers: []

service:
# -- [Service type](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to expose the running application on a set of Pods as a network service.
type: ClusterIP
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#
#
group=org.eclipse.tractusx
version=0.0.3
version=0.0.4
# these define the versions of the EDC Build Plugin, the Annotation Processor and the Metamodel.
# generally this should match the version of EDC in gradle/libs.versions.toml
edcGradlePluginsVersion=0.5.1
Expand Down
5 changes: 5 additions & 0 deletions system-tests/helm/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
install:
vault: false
server:
trustedIssuers:
# these must be the DIDs of the dataspace credential issuer
- "did:web:tractusx-issuer1"
- "did:web:tractusx-issuer2"

ingresses:
- enabled: true
hostname: "localhost"
Expand Down

0 comments on commit ead0d7f

Please sign in to comment.