Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add dataprovider charts #53

Merged
merged 38 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
57bf654
chore: add submodelservers chart
ds-jhartmann Feb 28, 2024
9530866
chore: add dataprovider chart with testdata seeding
ds-jhartmann Feb 28, 2024
d76b25a
chore: add tx-data-provider as provider and consumer to umbrella chart
ds-jhartmann Feb 28, 2024
42279c5
chore: fix issues with chart linting
ds-jhartmann Feb 28, 2024
ea0f4a8
chore: update umbrella chart version
ds-jhartmann Feb 28, 2024
0226a09
chore: fix issues with chart linting
ds-jhartmann Feb 28, 2024
7274844
chore: fix issues with chart linting
ds-jhartmann Feb 29, 2024
abb3f05
chore: fix issues with chart linting
ds-jhartmann Feb 29, 2024
ca05949
Merge remote-tracking branch 'origin/main' into chore/add-dataprovide…
ds-jhartmann Feb 29, 2024
dc6e36b
chore: minor config improvements
ds-jhartmann Mar 7, 2024
4ba8cd9
chore: remove submodelservers and switch to simple-data-backend
ds-jhartmann Mar 7, 2024
be81cc3
chore: remove submodelservers and switch to simple-data-backend
ds-jhartmann Mar 7, 2024
af1a901
chore: disable ingresses
ds-jhartmann Mar 19, 2024
c476539
chore: replace dedicated edc postgres with bundled postgres
ds-jhartmann Mar 19, 2024
7f16815
chore: radd templates for internal urls
ds-jhartmann Mar 19, 2024
b0d2d16
chore: add templating for configured urls
ds-jhartmann Mar 20, 2024
6d460ec
chore: cleanup values
ds-jhartmann Mar 20, 2024
943c830
Merge branch 'main' into chore/add-dataprovider-charts
ds-jhartmann Mar 20, 2024
bbf48a4
Merge remote-tracking branch 'origin/main' into chore/add-dataprovide…
ds-jhartmann Apr 4, 2024
3b81cdb
chore: fix linting
ds-jhartmann Apr 4, 2024
2ad3109
chore: add generated edc secrets
ds-jhartmann Apr 4, 2024
af6c95d
chore: fix image name
ds-jhartmann Apr 4, 2024
13be3b0
chore: reduce dtr name length
ds-jhartmann Apr 4, 2024
97d85b0
chore: disable provider component
ds-jhartmann Apr 5, 2024
c865a8b
Merge remote-tracking branch 'refs/remotes/origin/main' into chore/ad…
ds-jhartmann Apr 16, 2024
4939e2b
chore: bump chart version
ds-jhartmann Apr 16, 2024
3d85576
chore: add tx-data-provider to helm checks
evegufy Apr 16, 2024
a9768d7
Merge pull request #64 from eclipse-tractusx/chore/helm-checks-tx-dat…
ds-jhartmann Apr 16, 2024
d97bc35
chore: move vault to data provider chart
ds-jhartmann Apr 18, 2024
fff0739
chore: fix chart linting
ds-jhartmann Apr 18, 2024
08c05e7
chore: fix chart linting
ds-jhartmann Apr 18, 2024
eefb4f7
chore: fix chart linting
ds-jhartmann Apr 18, 2024
c741ae1
chore: fix chart linting
ds-jhartmann Apr 18, 2024
5a22457
chore: fix vault setup
ds-jhartmann Apr 18, 2024
b1d9c9f
chore: bump chart version
ds-jhartmann Apr 18, 2024
cebe057
Merge branch 'refs/heads/main' into chore/add-dataprovider-charts
ds-jhartmann Apr 18, 2024
30b8e2f
chore: enable dataprovider chart
ds-jhartmann Apr 18, 2024
c5fac71
chore: increase install timeout
ds-jhartmann Apr 18, 2024
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
5 changes: 4 additions & 1 deletion .github/workflows/helm-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,12 @@ jobs:
- name: Install chart and run tests (simple-data-backend)
run: ct install --charts charts/simple-data-backend --target-branch ${{ github.event.repository.default_branch }} --helm-extra-set-args "--set image.repository=kind-registry:5000/simple-data-backend --set image.tag=testing"

- name: Install chart and run tests (tx-data-provider)
run: ct install --charts charts/tx-data-provider --target-branch ${{ github.event.repository.default_branch }}

- name: Install chart and run tests (umbrella)
run: |
helm install umbrella charts/umbrella -f charts/values-test.yaml --namespace install --create-namespace --debug
helm install umbrella charts/umbrella -f charts/values-test.yaml --namespace install --create-namespace --debug --timeout 10m
helm uninstall umbrella --namespace install

## Skip upgrade for now until a working chart is released
Expand Down
47 changes: 47 additions & 0 deletions charts/tx-data-provider/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# #############################################################################
# Copyright (c) 2022,2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# Copyright (c) 2021,2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
# #############################################################################

# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

# Ignore ENV specific values at release
values?*.yaml
values?*.yml
45 changes: 45 additions & 0 deletions charts/tx-data-provider/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# #############################################################################
# Copyright (c) 2022,2024 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
# Copyright (c) 2021,2024 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
# #############################################################################
---
apiVersion: v2
name: tx-data-provider
description: A Helm chart for Kubernetes

type: application
version: 0.0.1
appVersion: 0.0.1

dependencies:
- name: digital-twin-registry
version: 0.4.5
repository: https://eclipse-tractusx.github.io/charts/dev
condition: digital-twin-registry.enabled
- name: simple-data-backend
repository: https://eclipse-tractusx.github.io/charts/dev
version: 0.1.0
condition: simple-data-backend.enabled
- name: tractusx-connector
repository: https://eclipse-tractusx.github.io/charts/dev
version: 0.5.3
condition: tractusx-connector.enabled
- name: vault
version: 0.20.0
repository: https://helm.releases.hashicorp.com
condition: vault.enabled
46 changes: 46 additions & 0 deletions charts/tx-data-provider/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Dataprovider Helm Chart

This chart includes EDC, Digital Twin Registry and a Submodel Server.
The Submodel Server images is based on an older Catena-X demo (catenax at home) since this is what we were using in our
testing environments.

## Prerequisites

- Running Kubernetes cluster
- Helm is installed

Example for local usage:

- [Minikube](https://minikube.sigs.k8s.io/docs/start/)
- [Minikube ingress addon](https://minikube.sigs.k8s.io/docs/handbook/addons/ingress-dns/)

## Installing

Run the Chart with

```shell
helm dependency update
helm install dataprovider . --timeout 10m0s
```

Remove the chart by running

```shell
helm uninstall dataprovider
```
## Configuration

For Configuration of digital twin registry see [sldt-digital-twin-registry/tree/main/charts/registry](https://github.com/eclipse-tractusx/sldt-digital-twin-registry/tree/main/charts/registry)

Configuration of EDC see [tractusx-edc/tree/main/charts/tractusx-connecto](https://github.com/eclipse-tractusx/tractusx-edc/tree/main/charts/tractusx-connector)

EDC requires connection to HashiCorp Vault and Manage Identity Wallet. These have to be configured for the dataprovider to be operative.

The Chart can be used as dataprovider by setting `simple-data-backend.enabled`, `digital-twin-registry.enabled` and `seedTestdata` to `false`.

## Testdata seeding

After the installation, a Post-Install Helm Hook will be started which initiates the seeding of testdata. The Hook executes a python script which uploads a provided test dataset to the dataprovider. Documentation to the python script can be found here [README](https://github.com/eclipse-tractusx/item-relationship-service/blob/main/local/testing/testdata/README.md)

Test data set and upload script are stored in [resources/](resources) and provided to the hook as config map.
A custom config map can be used to provided e.g. `testdataConfigMap: my-custom-testdata-configmap`.
Loading