Skip to content

Commit edc7057

Browse files
committed
Template componnets charts
1 parent 5946854 commit edc7057

File tree

27 files changed

+73
-67
lines changed

27 files changed

+73
-67
lines changed

.gitignore

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
*.build
2+
*.egg-info/
3+
*.python-version
4+
*.venv*
5+
.DS_Store
6+
.coverage
17
.idea
28
.idea/*
3-
.coverage
4-
*.venv*
5-
common_libs/
6-
reports/
79
__pycache__/
8-
*.egg-info/
910
build/
10-
.DS_Store
11-
*.python-version
11+
common_libs/
12+
reports/

Makefile.shared

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ BASE_OTE_V2_IMAGE_TAG ?= 12.8.1.1.30
2727
###
2828
# component
2929
###
30-
CHART_DIR := ./chart
30+
CHART_DIR_TEMPLATE := ./chart
31+
CHART_YAML_TEMPLATE := ${CHART_DIR_TEMPLATE}/Chart.yaml.template
32+
CHART_DIR := ${CHART_DIR_TEMPLATE}/.build
3133
CHART_YAML := ${CHART_DIR}/Chart.yaml
32-
COMPONENT_NAME := $(shell grep '^name:' ${CHART_YAML} | sed 's/^name: //')
34+
COMPONENT_NAME := $(shell grep '^name:' ${CHART_YAML_TEMPLATE} | sed 's/^name: //')
3335
###
3436
# docker configuration
3537
###
@@ -80,14 +82,25 @@ push-image:
8082
# helm charts
8183
###
8284
lint-chart-default:
85+
mkdir -p ${CHART_DIR}
86+
cp ${CHART_YAML_TEMPLATE} ${CHART_YAML}
87+
yq e '.version = "${TAG}"' -i ${CHART_YAML}
88+
yq e '.appVersion = "${TAG}"' -i ${CHART_YAML}
8389
@echo "Running chart linter for component: ${COMPONENT_NAME}"
8490
helm lint --with-subcharts $(dir ${CHART_YAML})
8591

8692
publish-chart:
93+
mkdir -p ${CHART_DIR}
94+
cp ${CHART_YAML_TEMPLATE} ${CHART_YAML}
95+
yq e '.version = "${TAG}"' -i ${CHART_YAML}
96+
yq e '.appVersion = "${TAG}"' -i ${CHART_YAML}
8797
@echo "Publishing chart for component: ${COMPONENT_NAME}"
8898
helm package $(dir ${CHART_YAML}) --version ${TAG}
8999
helm push ${COMPONENT_NAME}-${TAG}.tgz oci://${CHARTS_REGISTRY}
90100

101+
clean-chart:
102+
rm -rf ${CHART_DIR}
103+
91104
# To suppress warnings when overriding Makefile targets, declare the abstract targets as <name>-default
92105
%: %-default
93106
@ true
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
22
name: migration-job
33
description: Chart that will deploy script to migrate data
4-
version: 0.0.1
5-
appVersion: v0.0.1
4+
version: '{{VERSION}}'
5+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: auto-train-controller
3-
version: 0.0.2
3+
version: '{{VERSION}}'
44
apiVersion: v1
55
description: Periodic service that schedules auto-train jobs for the ready tasks
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: dataset-ie
3-
version: 0.0.11
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: dataset import and export
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: director
3-
version: 0.0.8
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: director
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: inference-gateway
3-
version: 0.0.1
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: Inference gateway
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'

interactive_ai/services/jobs/chart/Chart.yaml renamed to interactive_ai/services/jobs/chart/Chart.yaml.template

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ description: platform chart
44
# This is the chart version. This version number should be incremented each time you make changes
55
# to the chart and its templates, including the app version.
66
# Versions are expected to follow Semantic Versioning (https://semver.org/)
7-
version: 0.0.1
8-
7+
version: '{{VERSION}}'
98
# This is the version number of the application being deployed. This version number should be
109
# incremented each time you make changes to the application. Versions are not expected to
1110
# follow Semantic Versioning. They should reflect the version the application is using.
1211
# It is recommended to use it with quotes.
13-
appVersion: v0.0.1
14-
12+
appVersion: '{{VERSION}}'
1513
dependencies:
1614
- name: jobs-ms
1715
version: 0.0.8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: jobs-ms
3-
version: 0.0.8
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: jobs microservice
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: jobs-scheduler
3-
version: 0.0.10
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: jobs-scheduler
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: jobs-scheduling-policy
3-
version: 0.0.3
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: jobs-scheduling-policy
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: media-ms
3-
version: 0.0.8
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: media
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: mlflow-geti-store
3-
version: 0.0.1
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: MLflow geti store
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
apiVersion: v1
33
name: modelregistration
4-
version: 0.0.3
5-
appVersion: v0.0.1
4+
version: '{{VERSION}}'
5+
appVersion: '{{VERSION}}'
66
description: A Helm chart for Model Registration Service
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: project-ie
3-
version: 0.0.10
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: project import and export
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: resource
3-
version: 0.0.12
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: resource
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: visual-prompt
3-
version: 0.0.1
3+
version: '{{VERSION}}'
44
apiVersion: v2
55
description: visual prompt service
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: account-service
3-
version: 0.0.2
4-
appVersion: v0.0.1
3+
version: '{{VERSION}}'
4+
appVersion: '{{VERSION}}'
55
apiVersion: v2
66
description: account service
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: auth-proxy
3-
version: 0.1.0
4-
appVersion: v0.0.1
3+
version: '{{VERSION}}'
4+
appVersion: '{{VERSION}}'
55
apiVersion: v2
66
description: A Helm chart for Kubernetes
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
apiVersion: v2
22
name: credit-system
33
description: A Helm chart for Kubernetes
4-
54
# A chart can be either an 'application' or a 'library' chart.
65
#
76
# Application charts are a collection of templates that can be packaged into versioned archives
@@ -11,14 +10,12 @@ description: A Helm chart for Kubernetes
1110
# a dependency of application charts to inject those utilities and functions into the rendering
1211
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
1312
type: application
14-
1513
# This is the chart version. This version number should be incremented each time you make changes
1614
# to the chart and its templates, including the app version.
1715
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
19-
16+
version: '{{VERSION}}'
2017
# This is the version number of the application being deployed. This version number should be
2118
# incremented each time you make changes to the application. Versions are not expected to
2219
# follow Semantic Versioning. They should reflect the version the application is using.
2320
# It is recommended to use it with quotes.
24-
appVersion: v0.0.1
21+
appVersion: '{{VERSION}}'

platform/services/initial_user/chart/Chart.yaml renamed to platform/services/initial_user/chart/Chart.yaml.template

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
apiVersion: v2
33
name: initial-user
44
description: "Creation of initial user in the account service"
5-
65
# A chart can be either an 'application' or a 'library' chart.
76
#
87
# Application charts are a collection of templates that can be packaged into versioned archives
@@ -12,14 +11,12 @@ description: "Creation of initial user in the account service"
1211
# a dependency of application charts to inject those utilities and functions into the rendering
1312
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
1413
type: application
15-
1614
# This is the chart version. This version number should be incremented each time you make changes
1715
# to the chart and its templates, including the app version.
1816
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19-
version: 0.0.1
20-
17+
version: '{{VERSION}}'
2118
# This is the version number of the application being deployed. This version number should be
2219
# incremented each time you make changes to the application. Versions are not expected to
2320
# follow Semantic Versioning. They should reflect the version the application is using.
2421
# It is recommended to use it with quotes.
25-
appVersion: v0.0.1
22+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
apiVersion: v2
33
name: notifier
4-
version: 0.0.1
5-
appVersion: v0.0.1
4+
version: '{{VERSION}}'
5+
appVersion: '{{VERSION}}'
66
description: A Helm chart for the notifier
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: observability
3-
version: 0.0.1
3+
version: '{{VERSION}}'
44
description: observability chart
55
apiVersion: v2
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
apiVersion: v2
33
name: onboarding-service
4-
version: 0.0.1
5-
appVersion: v0.0.1
4+
version: '{{VERSION}}'
5+
appVersion: '{{VERSION}}'
66
description: A Helm chart for the Onboarding Service

platform/services/platform_cleaner/chart/Chart.yaml renamed to platform/services/platform_cleaner/chart/Chart.yaml.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
apiVersion: v2
33
name: platform-cleaner
44
description: A Helm chart for automated platform cleanup cron job
5-
version: 0.0.4
6-
appVersion: v0.0.1
5+
version: '{{VERSION}}'
6+
appVersion: '{{VERSION}}'
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: user-directory
3-
version: 0.0.1
3+
version: '{{VERSION}}'
44
description: user-directory chart
55
apiVersion: v2
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: web
3-
version: 0.0.5
3+
version: '{{VERSION}}'
44
description: web chart
55
apiVersion: v2
6-
appVersion: v0.0.1
6+
appVersion: '{{VERSION}}'

0 commit comments

Comments
 (0)