Skip to content

Commit

Permalink
Merge pull request #71 from catenax-ng/unification
Browse files Browse the repository at this point in the history
feat: Refactoring the SD-Factory
  • Loading branch information
almadigabor authored Oct 17, 2023
2 parents 9b958a2 + 2f78a29 commit 058cb10
Show file tree
Hide file tree
Showing 31 changed files with 782 additions and 823 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/helm-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ on:
required: false
type: string
upgrade_from:
description: 'portal chart version to upgrade from'
# portal version from 3.1 release
default: '1.3.0'
description: 'SD Factory chart version to upgrade from'
# SD Factory version from 3.2 release
default: '2.1.7'
required: false
type: string

Expand Down Expand Up @@ -90,13 +90,17 @@ jobs:
- name: Run chart-testing (lint)
run: ct lint --charts charts/sdfactory --config charts/chart-testing-config.yaml

# Preparing a kind cluster to install and test charts on
- name: Create kind cluster
uses: helm/[email protected]
if: ${{ env.CHART_CHANGED == 'true' }}

# install the chart to the kind cluster and run helm test
# define charts to test with the --charts parameter
- name: Run chart-testing (install)
run: ct install --charts charts/sdfactory --config charts/chart-testing-config.yaml --helm-extra-set-args "--set=image.tag=testing --set=image.repository=kind-registry:5000/sdfactory"
if: ${{ env.CHART_CHANGED == 'true' }}
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'
# Upgrade the released chart version with the locally available chart
# default value for event_name != workflow_dispatch
- name: Run helm upgrade
run: |
helm repo add tractusx-dev https://eclipse-tractusx.github.io/charts/dev
helm install sdf tractusx-dev/sdfactory
helm upgrade sdf charts/sdfactory
if: github.event_name != 'pull_request' || steps.list-changed.outputs.changed == 'true'
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
## [Unreleased]
- NA

## [2.1.7] - 2023-10-05

### Added
- Unification of SDFactory versions for different contexts and MIW
- Added support for FC schema.
- Added type to the subject
- Added BPN to the ServiceOffering subject as it was before

### Changed
- Updated helm lint

### Removed
- Disable signing VC

## [2.1.6] - 2023-08-21

Expand Down
154 changes: 76 additions & 78 deletions DEPENDENCIES

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ further processing.
## Software Version

```shell
Software version: 2.1.6
Helm Chart version: 2.1.7
Software version: 2.1.7
Helm Chart version: 2.1.8

```

Expand Down
4 changes: 2 additions & 2 deletions charts/sdfactory/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ sources:
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: "2.1.7"
version: "2.1.8"

# 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: "2.1.6"
appVersion: "2.1.7"
2 changes: 1 addition & 1 deletion charts/sdfactory/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sdfactory

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

Helm Charts for SD Factory application. Self-Description Factory component is responsible for the creation of Self Descriptions.

Expand Down
17 changes: 9 additions & 8 deletions charts/sdfactory/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,17 +112,18 @@ spec:
valueFrom:
secretKeyRef:
name: {{ include "sdfactory.applicationSecret.name" . }}
key: clearingHouse-clientSecret
key: clearingHouse-clientSecret

livenessProbe:
httpGet:
path: "/actuator/health/liveness"
port: {{ .Values.service.targetPort }}
# @url: https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-setting-up-health-checks-with-readiness-and-liveness-probes
readinessProbe:
httpGet:
path: "/actuator/health/readiness"
tcpSocket:
port: {{ .Values.service.targetPort }}
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
tcpSocket:
port: {{ .Values.service.targetPort }}
initialDelaySeconds: 10
periodSeconds: 10

resources:
{{- toYaml .Values.resources | nindent 12 }}
109 changes: 33 additions & 76 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.0</version>
<version>3.1.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.tsystems</groupId>
<artifactId>sd-factory</artifactId>
<version>2.1.6</version>
<version>2.1.7</version>
<description>Self-Description Hub Prototype</description>
<packaging>jar</packaging>
<properties>
<java.version>17</java.version>
<resource.delimiter>^</resource.delimiter>
<spring-cloud.version>2022.0.1</spring-cloud.version>
<spring-cloud.version>2022.0.3</spring-cloud.version>
</properties>
<dependencies>
<dependency>
Expand All @@ -32,11 +32,6 @@
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.1.1-jre</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
Expand All @@ -62,6 +57,11 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand All @@ -85,23 +85,23 @@
<dependency>
<groupId>com.danubetech</groupId>
<artifactId>verifiable-credentials-java</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
<version>1.1.0</version>
</dependency>

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<version>4.0.3</version>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.70</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<artifactId>protobuf-javalite</artifactId>
<version>3.22.3</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.5</version>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.1.1-jre</version>
</dependency>
<dependency>
<groupId>com.nimbusds</groupId>
Expand All @@ -128,73 +128,30 @@
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>6.1.2</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>6.1.2</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-resource-server</artifactId>
<version>6.1.2</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-core</artifactId>
<version>6.1.2</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-jose</artifactId>
<version>6.1.2</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
<version>6.1.2</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>6.1.2</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.22.3</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.5</version>
</dependency>

<dependency>
<groupId>org.keycloak</groupId>
<artifactId>keycloak-core</artifactId>
<version>21.1.1</version>
</dependency>
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<version>2.4.10</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

<repositories>
<repository>
<id>danubetech-maven-public</id>
Expand Down Expand Up @@ -248,8 +205,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>17</source>
<target>17</target>
<source>21</source>
<target>21</target>
<debug>true</debug>
<debuglevel>lines,vars,source</debuglevel>
</configuration>
Expand Down Expand Up @@ -311,7 +268,7 @@
<plugin>
<groupId>org.eclipse.dash</groupId>
<artifactId>license-tool-plugin</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.3-SNAPSHOT</version>
<executions>
<execution>
<id>license-check</id>
Expand Down
Loading

0 comments on commit 058cb10

Please sign in to comment.