Skip to content

Commit cf3f98c

Browse files
committed
fix(deployment):[TRACEFOSS-761] prepare for repos move
1 parent 026467b commit cf3f98c

File tree

14 files changed

+44
-48
lines changed

14 files changed

+44
-48
lines changed

.chglog/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ style: github
22
template: CHANGELOG.tpl.md
33
info:
44
title: CHANGELOG
5-
repository_url: https://github.com/catenax-ng/product-traceability-foss-frontend
5+
repository_url: https://github.com/catenax-ng/tx-traceability-foss-frontend
66
options:
77
commits:
88
filters:

.github/workflows/chart-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Get helm charts current version
3333
id: step2
3434
run: |
35-
chartVersion=helm-charts-$(cat ./charts/product-traceability-foss-frontend/Chart.yaml | grep "version:" | head -1 | cut -d ":" -d " " -f2)
35+
chartVersion=helm-charts-$(cat ./charts/tx-traceability-foss-frontend/Chart.yaml | grep "version:" | head -1 | cut -d ":" -d " " -f2)
3636
echo "::set-output name=current_version::$chartVersion"
3737
echo "Exported $chartVersion helm charts version"
3838

CHANGELOG.generated.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
- added dashboard investigation widget
3737
- added fixes for quality gates and relations
3838
- renamed veracode.yml to .yaml so it complies with checks
39-
- helm chart release ([#76](https://github.com/catenax-ng/product-traceability-foss-frontend/issues/76))
39+
- helm chart release ([1.0.0](https://github.com/eclipse-tractusx/traceability-foss-frontend/releases/tag/helm-charts-1.0.0))
4040
- improve performance throughout appication
4141
- added wip role for notification and role check to table component
4242
- added better test data for local mock

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ The operator can set any environment variable in the container by using one or m
6464
#### `${dockerImage}`
6565

6666
While not strictly a means of identifying a container, you can specify a version of an image you’d like to run the container with by adding `image[:tag]` to the command. For example, `docker run 002b3c518f5852f7fd5e9e46c0ea1ab4d76b697d33d5022af1a69e1a909645ea`.
67-
Images can be pulled [here](https://github.com/catenax-ng/product-traceability-foss-frontend/pkgs/container/product-traceability-foss-frontend).
67+
Images can be pulled [here](https://github.com/eclipse-tractusx/traceability-foss-frontend/pkgs/container/traceability-foss-frontend).

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<h1 style="margin: 10px 0 0 10px">Traceability FOSS Frontend</h1>
44
</div>
55

6-
[![Apache 2 License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/catenax-ng/product-traceability-foss-frontend/LICENSE)
7-
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=catenax-ng_product-traceability-foss-frontend&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=catenax-ng_product-traceability-foss-frontend)
8-
[![Kics](https://github.com/catenax-ng/product-traceability-foss-frontend/actions/workflows/kics.yml/badge.svg)](https://github.com/catenax-ng/product-traceability-foss-frontend/actions/workflows/kics.yml)
9-
[![Trivy](https://github.com/catenax-ng/product-traceability-foss-frontend/actions/workflows/trivy.yml/badge.svg)](https://github.com/catenax-ng/product-traceability-foss-frontend/actions/workflows/trivy.yml)
10-
[![VeraCode](https://github.com/catenax-ng/product-traceability-foss-frontend/actions/workflows/veracode.yaml/badge.svg)](https://github.com/catenax-ng/product-traceability-foss-frontend/actions/workflows/veracode.yaml)
11-
[![Eclipse DASH IP Check](https://github.com/catenax-ng/product-traceability-foss-frontend/actions/workflows/eclipse-dash.yml/badge.svg)](https://github.com/catenax-ng/product-traceability-foss-frontend/actions/workflows/eclipse-dash.yml)
6+
[![Apache 2 License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/eclipse-tractusx/traceability-foss-frontend/LICENSE)
7+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=eclipse-tractusx_traceability-foss-frontend&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=eclipse-tractusx_traceability-foss-frontend)
8+
[![Kics](https://github.com/eclipse-tractusx/traceability-foss-frontend/actions/workflows/kics.yml/badge.svg)](https://github.com/eclipse-tractusx/traceability-foss-frontend/actions/workflows/kics.yml)
9+
[![Trivy](https://github.com/eclipse-tractusx/traceability-foss-frontend/actions/workflows/trivy.yml/badge.svg)](https://github.com/eclipse-tractusx/traceability-foss-frontend/actions/workflows/trivy.yml)
10+
[![VeraCode](https://github.com/eclipse-tractusx/traceability-foss-frontend/actions/workflows/veracode.yaml/badge.svg)](https://github.com/eclipse-tractusx/traceability-foss-frontend/actions/workflows/veracode.yaml)
11+
[![Eclipse DASH IP Check](https://github.com/eclipse-tractusx/traceability-foss-frontend/actions/workflows/eclipse-dash.yml/badge.svg)](https://github.com/eclipse-tractusx/traceability-foss-frontend/actions/workflows/eclipse-dash.yml)
1212

1313
<h2>Trace-X is a system for tracking parts along the supply chain.</h2>
1414
<h4>A high level of transparency across the supplier network enables faster intervention based on a recorded event in the supply chain.
@@ -40,7 +40,7 @@ Clone the source locally:
4040

4141
```sh
4242
$ git clone ${path}
43-
$ cd product-traceability-foss-frontend
43+
$ cd tx-traceability-foss-frontend
4444
```
4545

4646
## Configurations

charts/product-traceability-foss-frontend/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
name: product-traceability-foss-frontend
2+
name: tx-traceability-foss-frontend
33
description: A Helm chart for Traceability frontend application
44

55
# A chart can be either an 'application' or a 'library' chart.

charts/product-traceability-foss-frontend/templates/NOTES.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
1. Get the application URL by running these commands:
22
{{- if contains "NodePort" .Values.service.type }}
3-
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "product-traceability-foss-frontend.fullname" . }})
3+
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "tx-traceability-foss-frontend.fullname" . }})
44
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
55
echo http://$NODE_IP:$NODE_PORT
66
{{- else if contains "LoadBalancer" .Values.service.type }}
77
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
8-
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "product-traceability-foss-frontend.fullname" . }}'
9-
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "product-traceability-foss-frontend.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
8+
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "tx-traceability-foss-frontend.fullname" . }}'
9+
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "tx-traceability-foss-frontend.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
1010
echo http://$SERVICE_IP:{{ .Values.service.port }}
1111
{{- else if contains "ClusterIP" .Values.service.type }}
12-
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "product-traceability-foss-frontend.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
12+
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "tx-traceability-foss-frontend.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
1313
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
1414
echo "Visit http://127.0.0.1:8080 to use your application"
1515
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT

charts/product-traceability-foss-frontend/templates/_helpers.tpl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{/*
22
Expand the name of the chart.
33
*/}}
4-
{{- define "product-traceability-foss-frontend.name" -}}
4+
{{- define "tx-traceability-foss-frontend.name" -}}
55
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
66
{{- end }}
77

@@ -10,7 +10,7 @@ Create a default fully qualified app name.
1010
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
1111
If release name contains chart name it will be used as a full name.
1212
*/}}
13-
{{- define "product-traceability-foss-frontend.fullname" -}}
13+
{{- define "tx-traceability-foss-frontend.fullname" -}}
1414
{{- if .Values.fullnameOverride }}
1515
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
1616
{{- else }}
@@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
2626
{{/*
2727
Create chart name and version as used by the chart label.
2828
*/}}
29-
{{- define "product-traceability-foss-frontend.chart" -}}
29+
{{- define "tx-traceability-foss-frontend.chart" -}}
3030
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
3131
{{- end }}
3232

3333
{{/*
3434
Common labels
3535
*/}}
36-
{{- define "product-traceability-foss-frontend.labels" -}}
37-
helm.sh/chart: {{ include "product-traceability-foss-frontend.chart" . }}
38-
{{ include "product-traceability-foss-frontend.selectorLabels" . }}
36+
{{- define "tx-traceability-foss-frontend.labels" -}}
37+
helm.sh/chart: {{ include "tx-traceability-foss-frontend.chart" . }}
38+
{{ include "tx-traceability-foss-frontend.selectorLabels" . }}
3939
{{- if .Chart.AppVersion }}
4040
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4141
{{- end }}
@@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
4545
{{/*
4646
Selector labels
4747
*/}}
48-
{{- define "product-traceability-foss-frontend.selectorLabels" -}}
49-
app.kubernetes.io/name: {{ include "product-traceability-foss-frontend.name" . }}
48+
{{- define "tx-traceability-foss-frontend.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "tx-traceability-foss-frontend.name" . }}
5050
app.kubernetes.io/instance: {{ .Release.Name }}
5151
{{- end }}
5252

5353
{{/*
5454
Create the name of the service account to use
5555
*/}}
56-
{{- define "product-traceability-foss-frontend.serviceAccountName" -}}
56+
{{- define "tx-traceability-foss-frontend.serviceAccountName" -}}
5757
{{- if .Values.serviceAccount.create }}
58-
{{- default (include "product-traceability-foss-frontend.fullname" .) .Values.serviceAccount.name }}
58+
{{- default (include "tx-traceability-foss-frontend.fullname" .) .Values.serviceAccount.name }}
5959
{{- else }}
6060
{{- default "default" .Values.serviceAccount.name }}
6161
{{- end }}

charts/product-traceability-foss-frontend/templates/deployment.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
namespace: {{ .Values.namespace | default .Release.Namespace }}
5-
name: {{ include "product-traceability-foss-frontend.fullname" . }}
5+
name: {{ include "tx-traceability-foss-frontend.fullname" . }}
66
labels:
7-
{{- include "product-traceability-foss-frontend.labels" . | nindent 4 }}
7+
{{- include "tx-traceability-foss-frontend.labels" . | nindent 4 }}
88
spec:
99
{{- if not .Values.autoscaling.enabled }}
1010
replicas: {{ .Values.replicaCount }}
1111
{{- end }}
1212
selector:
1313
matchLabels:
14-
{{- include "product-traceability-foss-frontend.selectorLabels" . | nindent 6 }}
14+
{{- include "tx-traceability-foss-frontend.selectorLabels" . | nindent 6 }}
1515
revisionHistoryLimit: 2
1616
template:
1717
metadata:
@@ -21,19 +21,19 @@ spec:
2121
{{- toYaml . | nindent 8 }}
2222
{{- end }}
2323
labels:
24-
{{- include "product-traceability-foss-frontend.selectorLabels" . | nindent 8 }}
24+
{{- include "tx-traceability-foss-frontend.selectorLabels" . | nindent 8 }}
2525
spec:
2626
automountServiceAccountToken: false
2727
{{- if .Values.imagePullSecret.dockerconfigjson }}
2828
imagePullSecrets:
29-
- name: {{ include "product-traceability-foss-frontend.fullname" . }}-imagepullsecret
29+
- name: {{ include "tx-traceability-foss-frontend.fullname" . }}-imagepullsecret
3030
{{- else }}
3131
{{- with .Values.imagePullSecrets }}
3232
imagePullSecrets:
3333
{{- toYaml . | nindent 8 }}
3434
{{- end }}
3535
{{- end }}
36-
serviceAccountName: {{ include "product-traceability-foss-frontend.serviceAccountName" . }}
36+
serviceAccountName: {{ include "tx-traceability-foss-frontend.serviceAccountName" . }}
3737
securityContext:
3838
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3939
containers:

charts/product-traceability-foss-frontend/templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{{- if .Values.ingress.enabled -}}
2-
{{- $fullName := include "product-traceability-foss-frontend.fullname" . -}}
2+
{{- $fullName := include "tx-traceability-foss-frontend.fullname" . -}}
33
{{- $svcPort := .Values.service.port -}}
44
apiVersion: networking.k8s.io/v1
55
kind: Ingress
66
metadata:
77
name: {{ $fullName }}
88
labels:
9-
{{- include "product-traceability-foss-frontend.labels" . | nindent 4 }}
9+
{{- include "tx-traceability-foss-frontend.labels" . | nindent 4 }}
1010
{{- with .Values.ingress.annotations }}
1111
annotations:
1212
{{- toYaml . | nindent 4 }}

0 commit comments

Comments
 (0)