File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 7
7
type : string
8
8
required : true
9
9
description : ' The remote kubernetes release branch to fetch openapi spec. .e.g. "release-1.23"'
10
+ genCommit :
11
+ type : string
12
+ required : true
13
+ default : ' 82c3ff5'
14
+ description : ' The commit to use for the kubernetes-client/gen repo'
10
15
11
16
12
17
jobs :
@@ -15,12 +20,15 @@ jobs:
15
20
steps :
16
21
- name : Checkout Javascript
17
22
uses : actions/checkout@v3
18
- - name : Setup Java
23
+ - name : Setup Node
19
24
uses : actions/setup-node@v2
20
25
with :
21
26
node-version : ' 16'
22
27
- name : Checkout Gen
23
- run : git clone https://github.com/kubernetes-client/gen
28
+ run : |
29
+ git clone https://github.com/kubernetes-client/gen
30
+ pushd gen
31
+ git checkout "${{ github.event.inputs.genCommit }}"
24
32
- name : Generate Branch Name
25
33
run : |
26
34
SUFFIX=$(openssl rand -hex 4)
30
38
pushd gen/openapi
31
39
cat <<"EOF"> settings
32
40
# kubernetes-client/gen commit to use for code generation.
33
- export GEN_COMMIT=82c3ff5
41
+ export GEN_COMMIT="${{ github.event.inputs.genCommit }}"
34
42
# GitHub username/organization to clone kubernetes repo from.
35
43
export USERNAME=kubernetes
36
44
# Kubernetes branch/tag to get the OpenAPI spec from.
42
50
export PACKAGE_NAME="@kubernetes/node-client"
43
51
export OPENAPI_GENERATOR_COMMIT=1314e229
44
52
EOF
45
- bash typescript.sh ../../src/gen settings
53
+ bash typescript.sh ../../src/gen/api settings
46
54
popd
47
55
cp settings ../../settings
48
56
rm -rf gen
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @kubernetes/client-node" ,
3
- "version" : " 0.16.3 " ,
3
+ "version" : " 0.16.4 " ,
4
4
"description" : " NodeJS client for kubernetes" ,
5
5
"repository" : {
6
6
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments