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

build(v1.0.0): release version for R24.05 #149

Merged
merged 7 commits into from
May 23, 2024
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
5 changes: 4 additions & 1 deletion .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,11 @@ jobs:
- name: List packages
run: dotnet list src package --include-transitive --interactive | grep ">" | grep -Pv "\s(Org.Eclipse.TractusX|Microsoft|NuGet|System|runtime|docker|Docker|NETStandard)" | sed -E -e "s/\s+> ([a-zA-Z\.\-]+).+\s([0-9]+\.[0-9]+\.[0-9]+)\s*/nuget\/nuget\/\-\/\1\/\2/g" | awk '!seen[$0]++' > PACKAGES

- name: Download Eclipse Dash Tool
run: curl -L --output ./org.eclipse.dash.licenses.jar 'https://repo.eclipse.org/service/local/artifact/maven/redirect?r=dash-licenses&g=org.eclipse.dash&a=org.eclipse.dash.licenses&v=LATEST'

- name: Generate Dependencies file
run: java -jar ./scripts/download/org.eclipse.dash.licenses-1.1.1.jar PACKAGES -project automotive.tractusx -summary DEPENDENCIES || true
run: java -jar ./org.eclipse.dash.licenses.jar PACKAGES -project automotive.tractusx -summary DEPENDENCIES || true

- name: Check if dependencies were changed
id: dependencies-changed
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/quality-gate-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# Copyright (c) 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
#

name: "Quality Checks (Release Guidelines)"

on:
workflow_dispatch:
pull_request:
branches:
- main

jobs:
check-quality:
name: Check quality guidelines
uses: eclipse-tractusx/sig-infra/.github/workflows/reusable-quality-checks.yaml@main
secrets: inherit
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## [1.0.0](https://github.com/eclipse-tractusx/policy-hub/compare/v1.0.0-rc.2...v1.0.0) (2024-05-23)


### Bug Fixes

* **helm:** change ingress to work without tls enabled ([fd7a634](https://github.com/eclipse-tractusx/policy-hub/commit/fd7a634125d2f3ae9313f541ffec0c352059c535))


### Miscellaneous Chores

* release 1.0.0 ([f289e1d](https://github.com/eclipse-tractusx/policy-hub/commit/f289e1d20ba8adee5e98de3b089188c8eae39e4d))

## [1.0.0-rc.2](https://github.com/eclipse-tractusx/policy-hub/compare/v1.0.0-rc.1...v1.0.0-rc.2) (2024-05-16)


Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

This repository contains the backend code for the Policy-Hub written in C#.

For **information about the policy hub**, please refer to the documentation, especially the context and scope section in the [architecture documentation](./docs/architecture).

For **installation** details, please refer to the [README.md](./charts/policy-hub/README.md) of the provided helm chart.

## How to build and run
Expand Down
4 changes: 2 additions & 2 deletions charts/policy-hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
apiVersion: v2
name: policy-hub
type: application
version: 1.0.0-rc.2
appVersion: 1.0.0-rc.2
version: 1.0.0
appVersion: 1.0.0
description: Helm chart for Policy Hub
home: https://github.com/eclipse-tractusx/policy-hub
dependencies:
Expand Down
11 changes: 8 additions & 3 deletions charts/policy-hub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ For further information please refer to [Technical Documentation](../../docs/tec

The referenced container images are for demonstration purposes only.

## Prerequisites

- [Kubernetes](https://kubernetes.io) 1.25.11+
- [Helm](https://helm.sh) 3.9.3+
- PV provisioner support in the underlying infrastructure

## Installation

To install the chart with the release name `policy-hub`:
Expand All @@ -27,7 +33,7 @@ To use the helm chart as a dependency:
dependencies:
- name: policy-hub
repository: https://eclipse-tractusx.github.io/charts/dev
version: 1.0.0-rc.2
version: 1.0.0
```

## Requirements
Expand Down Expand Up @@ -87,8 +93,7 @@ dependencies:
| centralidp.address | string | `"https://centralidp.example.org"` | Provide centralidp base address (CX IAM), without trailing '/auth'. |
| centralidp.useAuthTrail | bool | `true` | Flag if the api should be used with an leading /auth path |
| ingress.enabled | bool | `false` | Policy Hub ingress parameters, enable ingress record generation for policy-hub. |
| ingress.tls[0] | object | `{"hosts":[""],"secretName":""}` | Provide tls secret. |
| ingress.tls[0].hosts | list | `[""]` | Provide host for tls secret. |
| ingress.tls | list | `[]` | Ingress TLS configuration |
| ingress.hosts[0] | object | `{"host":"","paths":[{"path":"/api/policy-hub","pathType":"Prefix"}]}` | Provide default path for the ingress record. |
| portContainer | int | `8080` | |
| portService | int | `8080` | |
Expand Down
6 changes: 6 additions & 0 deletions charts/policy-hub/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ For further information please refer to [Technical Documentation](../../docs/tec

The referenced container images are for demonstration purposes only.

## Prerequisites

- [Kubernetes](https://kubernetes.io) 1.25.11+
- [Helm](https://helm.sh) 3.9.3+
- PV provisioner support in the underlying infrastructure

## Installation

To install the chart with the release name `{{ template "chart.name" . }}`:
Expand Down
11 changes: 5 additions & 6 deletions charts/policy-hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,11 @@ ingress:
# nginx.ingress.kubernetes.io/proxy-body-size: "8m"
# # -- Provide CORS allowed origin.
# nginx.ingress.kubernetes.io/cors-allow-origin: "https://*.example.org"
tls:
# -- Provide tls secret.
- secretName: ""
# -- Provide host for tls secret.
hosts:
- ""
# -- Ingress TLS configuration
tls: []
# - secretName: ""
# hosts:
# - ""
hosts:
# -- Provide default path for the ingress record.
- host: ""
Expand Down
2 changes: 1 addition & 1 deletion consortia/argocd-app-templates/appsetup-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
source:
path: charts/policy-hub
repoURL: 'https://github.com/eclipse-tractusx/policy-hub.git'
targetRevision: policy-hub-1.0.0-rc.2
targetRevision: policy-hub-1.0.0
plugin:
env:
- name: AVP_SECRET
Expand Down
2 changes: 1 addition & 1 deletion consortia/argocd-app-templates/appsetup-int.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
source:
path: charts/policy-hub
repoURL: 'https://github.com/eclipse-tractusx/policy-hub.git'
targetRevision: policy-hub-1.0.0-rc.2
targetRevision: policy-hub-1.0.0
plugin:
env:
- name: AVP_SECRET
Expand Down
2 changes: 1 addition & 1 deletion consortia/argocd-app-templates/appsetup-pen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
source:
path: charts/policy-hub
repoURL: 'https://github.com/eclipse-tractusx/policy-hub.git'
targetRevision: policy-hub-1.0.0-rc.2
targetRevision: policy-hub-1.0.0
plugin:
env:
- name: AVP_SECRET
Expand Down
2 changes: 1 addition & 1 deletion consortia/argocd-app-templates/appsetup-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
source:
path: ''
repoURL: 'https://eclipse-tractusx.github.io/charts/dev'
targetRevision: policy-hub-1.0.0-rc.2
targetRevision: policy-hub-1.0.0
plugin:
env:
- name: HELM_VALUES
Expand Down
17 changes: 0 additions & 17 deletions scripts/check-dependencies.md

This file was deleted.

Binary file removed scripts/download/org.eclipse.dash.licenses-1.1.1.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>rc.2</VersionSuffix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>
</Project>
19 changes: 19 additions & 0 deletions src/database/PolicyHub.Entities/Entities/IActiveEntity.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/********************************************************************************
* Copyright (c) 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
********************************************************************************/

namespace Org.Eclipse.TractusX.PolicyHub.Entities.Entities;

public interface IActiveEntity
Expand Down
19 changes: 19 additions & 0 deletions src/database/PolicyHub.Migrations/Seeder/BatchUpdateSeeder.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/********************************************************************************
* Copyright (c) 2023 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
********************************************************************************/

using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Org.Eclipse.TractusX.PolicyHub.Entities;
Expand Down
19 changes: 19 additions & 0 deletions tests/database/PolicyHub.DbAccess.Tests/HubRepositoriesTests.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/********************************************************************************
* Copyright (c) 2023 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
********************************************************************************/

using Org.Eclipse.TractusX.PolicyHub.DbAccess.Repositories;
using Org.Eclipse.TractusX.PolicyHub.DbAccess.Tests.Setup;
using Xunit.Extensions.AssemblyFixture;
Expand Down
Loading