Skip to content

Commit 2ecba96

Browse files
committed
refactor subcharts version strategy
Signed-off-by: wrongerror <[email protected]>
1 parent e0c7f1b commit 2ecba96

18 files changed

+41
-36
lines changed

build/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ dependencies:
3737
repository: "file://dapr"
3838
condition: Dapr.enabled
3939
- name: knative-serving
40-
version: 0.6.0
40+
version: 1.0.1
4141
repository: "file://knative-serving"
4242
condition: KnativeServing.enabled
4343
- name: tekton-pipelines
44-
version: 0.6.0
44+
version: 0.30.0
4545
repository: "file://tekton-pipelines"
4646
condition: TektonPipelines.enabled
4747
- name: shipwright-build
48-
version: 0.6.0
48+
version: 0.6.1
4949
repository: "file://shipwright-build"
5050
condition: ShipwrightBuild.enabled
5151
- name: keda

build/build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Build(object):
1414
"tekton-pipelines": "tekton-pipelines",
1515
"shipwright-build": "shipwright-build"
1616
}
17+
local_charts = {"knative-serving", "tekton-pipelines", "shipwright-build"}
1718

1819
def __init__(self, major: int = 0, minor: int = 1, patch: int = 0, region_cn: bool = False):
1920
self.src_dir = os.path.join(self.root_dir, "openfunction")
@@ -32,6 +33,10 @@ def prepare(self):
3233
os.makedirs(self.dis_dir)
3334
# subprocess.check_call(["cp", "-r", self.src_dir, self.dis_dir])
3435
shutil.copytree(self.src_dir, self.dis_dir, dirs_exist_ok=True)
36+
for chart in self.local_charts:
37+
src_dir = os.path.join(self.root_dir, chart)
38+
dis_dir = os.path.join(self.charts_dir, chart)
39+
shutil.copytree(src_dir, dis_dir, dirs_exist_ok=True)
3540
os.chdir(self.dis_dir)
3641

3742
def pull(self):

docs/index.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ entries:
33
knative-serving:
44
- apiVersion: v2
55
appVersion: 1.0.1
6-
created: "2022-06-23T12:51:32.4561742+08:00"
6+
created: "2022-07-22T14:35:28.4868134+08:00"
77
description: A Helm chart for Knative Serving on Kubernetes
8-
digest: 69376f8f949d9e357bfeb388504e8756857922a90c45c8a97d11bbe3a9c456e3
8+
digest: c3c6dd47616c498ffe87d94812c35a6423ef974fa65daddc22d196986e15284a
99
keywords:
1010
- Serverless
1111
- Kubernetes
@@ -17,12 +17,12 @@ entries:
1717
- https://github.com/knative/serving
1818
type: application
1919
urls:
20-
- https://openfunction.github.io/charts/knative-serving-v1.0.1-v0.6.0.tgz
21-
version: 0.6.0
20+
- https://openfunction.github.io/charts/knative-serving-1.0.1.tgz
21+
version: 1.0.1
2222
openfunction:
2323
- apiVersion: v2
2424
appVersion: 0.6.0
25-
created: "2022-06-23T12:51:32.4696619+08:00"
25+
created: "2022-07-22T14:35:28.5018927+08:00"
2626
dependencies:
2727
- condition: Dapr.enabled
2828
name: dapr
@@ -31,15 +31,15 @@ entries:
3131
- condition: KnativeServing.enabled
3232
name: knative-serving
3333
repository: file://knative-serving
34-
version: 0.6.0
34+
version: 1.0.1
3535
- condition: TektonPipelines.enabled
3636
name: tekton-pipelines
3737
repository: file://tekton-pipelines
38-
version: 0.6.0
38+
version: 0.30.0
3939
- condition: ShipwrightBuild.enabled
4040
name: shipwright-build
4141
repository: file://shipwright-build
42-
version: 0.6.0
42+
version: 0.6.1
4343
- condition: Keda.enabled
4444
name: keda
4545
repository: file://keda
@@ -49,7 +49,7 @@ entries:
4949
repository: file://ingress-nginx
5050
version: 4.0.6
5151
description: A Helm chart for OpenFunction on Kubernetes
52-
digest: 0e7d4f4b70537eb50df6b856b5b76a3b3473c92240866ba12d0003035a617c94
52+
digest: bb5316013ec4cdbb0e8460569f38aa5bf02643bdd9ba9f10a4925b71ac3b0a5c
5353
keywords:
5454
- faas
5555
- Serverless
@@ -68,9 +68,9 @@ entries:
6868
shipwright-build:
6969
- apiVersion: v2
7070
appVersion: 0.6.1
71-
created: "2022-06-23T12:51:32.4707885+08:00"
71+
created: "2022-07-22T14:35:28.50289+08:00"
7272
description: A Helm chart for Shipwright Build on Kubernetes
73-
digest: ed5b8a8c7cebda4cc310fbe3807481296d50323c977721ba96c3e88a023308c7
73+
digest: 366ca24ad2651910695ac50e165be4fa7c8c635ec2aec5f53a6baca17f3efed0
7474
keywords:
7575
- Continuous delivery
7676
- Continuous deployment
@@ -84,14 +84,14 @@ entries:
8484
- https://github.com/shipwright-io/build
8585
type: application
8686
urls:
87-
- https://openfunction.github.io/charts/shipwright-build-v0.6.1-v0.6.0.tgz
88-
version: 0.6.0
87+
- https://openfunction.github.io/charts/shipwright-build-0.6.1.tgz
88+
version: 0.6.1
8989
tekton-pipelines:
9090
- apiVersion: v2
9191
appVersion: 0.30.0
92-
created: "2022-06-23T12:51:32.4717899+08:00"
92+
created: "2022-07-22T14:35:28.5038928+08:00"
9393
description: A Helm chart for Tekton Pipelines on Kubernetes
94-
digest: b3b16c8a2910b45dafa631cacef9766b114130699503eeb133d83f1d84566182
94+
digest: 4939ec89841370813aa5c00cea5db82733470fb165326d2b75c3f9324d170bac
9595
keywords:
9696
- Continuous delivery
9797
- Continuous deployment
@@ -105,6 +105,6 @@ entries:
105105
- https://github.com/tektoncd/pipeline
106106
type: application
107107
urls:
108-
- https://openfunction.github.io/charts/tekton-pipelines-v0.30.0-v0.6.0.tgz
109-
version: 0.6.0
110-
generated: "2022-06-23T12:51:32.4540109+08:00"
108+
- https://openfunction.github.io/charts/tekton-pipelines-0.30.0.tgz
109+
version: 0.30.0
110+
generated: "2022-07-22T14:35:28.4846414+08:00"

docs/knative-serving-1.0.1.tgz

51.7 KB
Binary file not shown.
-51.7 KB
Binary file not shown.
205 Bytes
Binary file not shown.

docs/shipwright-build-0.6.1.tgz

24.2 KB
Binary file not shown.
-24.2 KB
Binary file not shown.

docs/tekton-pipelines-0.30.0.tgz

11.4 KB
Binary file not shown.
-11.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)