Skip to content

Commit 48c4ac6

Browse files
authored
feat: move crds in another chart (#53)
* feat: move crds in another chart * ci: fix placeholder for crd-chart
1 parent 5f477c4 commit 48c4ac6

28 files changed

+48
-10
lines changed

.github/workflows/release-pullrequest.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ jobs:
3939
app_id: ${{ secrets.APP_ID }}
4040
private_key: ${{ secrets.PRIVATE_KEY }}
4141

42-
- name: Extract latest App Version
42+
- name: Extract latest Chart Version
4343
uses: tdemin/find-latest-tag@v1
44-
id: app_version
44+
id: chart_version
4545
with:
4646
repo: https://${{ steps.authenticate.outputs.token }}@github.com/${{ github.repository }}.git
4747

48-
- name: Extract latest Chart Version
48+
- name: Extract latest App Version
4949
uses: tdemin/find-latest-tag@v1
50-
id: chart_version
50+
id: app_version
5151
with:
5252
repo: https://${{ steps.authenticate.outputs.token }}@github.com/${{ env.REPO_APP_NAME }}.git
5353

@@ -59,13 +59,16 @@ jobs:
5959
echo APP_VERSION:${{steps.app_version.outputs.tag}}
6060
echo CHART_VERSION:${{steps.chart_version.outputs.tag}}
6161
62-
- name: Replace Version in Chart.yaml
62+
- name: Replace CHART_VERSION in chart/Chart.yaml
6363
run: sed -i 's/CHART_VERSION/${{ steps.chart_version.outputs.tag }}/g' ./chart/Chart.yaml
6464

65-
- name: Print latest App Version
65+
- name: Replace CHART_VERSION in crd-chart/Chart.yaml
66+
run: sed -i 's/CHART_VERSION/${{ steps.chart_version.outputs.tag }}/g' ./crd-chart/Chart.yaml
67+
68+
- name: Print latest APP_VERSION
6669
run: echo ${{ steps.app_version.outputs.tag }}
6770

68-
- name: Replace App Version in Chart.yaml
71+
- name: Replace APP_VERSION in Chart.yaml
6972
run: sed -i 's/APP_VERSION/${{ steps.app_version.outputs.tag }}/g' ./chart/Chart.yaml
7073

7174
- name: Set up Helm

.github/workflows/release-tag.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,16 @@ jobs:
5858
echo APP_VERSION:${{steps.app_version.outputs.tag}}
5959
echo CHART_VERSION:${{steps.chart_version.outputs.tag}}
6060
61-
- name: Replace Version in Chart.yaml
61+
- name: Replace CHART_VERSION in chart/Chart.yaml
6262
run: sed -i 's/CHART_VERSION/${{ steps.chart_version.outputs.tag }}/g' ./chart/Chart.yaml
6363

64-
- name: Print latest App Version
64+
- name: Replace CHART_VERSION in crd-chart/Chart.yaml
65+
run: sed -i 's/CHART_VERSION/${{ steps.chart_version.outputs.tag }}/g' ./crd-chart/Chart.yaml
66+
67+
- name: Print latest APP_VERSION
6568
run: echo ${{ steps.app_version.outputs.tag }}
6669

67-
- name: Replace App Version in Chart.yaml
70+
- name: Replace APP_VERSION in Chart.yaml
6871
run: sed -i 's/APP_VERSION/${{ steps.app_version.outputs.tag }}/g' ./chart/Chart.yaml
6972

7073
- name: Publish Helm chart

chart/.DS_Store

8 KB
Binary file not shown.

chart/Chart.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ version: CHART_VERSION
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
2424
appVersion: APP_VERSION
25+
26+
dependencies:
27+
- name: frontend-crd
28+
version: 0.0.1
29+
repository: file://../crd-chart

crd-chart/Chart.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: v2
2+
name: frontend-crd
3+
description: Krateo PlatformOps Frontend CRDs
4+
5+
# A chart can be either an 'application' or a 'library' chart.
6+
#
7+
# Application charts are a collection of templates that can be packaged into versioned archives
8+
# to be deployed.
9+
#
10+
# Library charts provide useful utilities or functions for the chart developer. They're included as
11+
# a dependency of application charts to inject those utilities and functions into the rendering
12+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
13+
type: application
14+
15+
# This is the chart version. This version number should be incremented each time you make changes
16+
# to the chart and its templates, including the app version.
17+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18+
version: CHART_VERSION
19+
20+
home: https://krateo.io
21+
icon: "https://github.com/krateoplatformops/krateo/blob/main/docs/media/logo.svg"
22+
23+
sources:
24+
- https://github.com/krateoplatformops/frontend-chart
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)