Skip to content

Commit 5c866a1

Browse files
authored
chore: fix the proto generation (#9844)
* chore: fix the proto generation It was using a very old version of Go which was, in turn, using a very old version of Debian. That version of Debian hasn't been supported for over a year, so trying to do an `apt-get upgrade` fails. Upgrading go to fix that issue required upgrading a whole bunch of other things. Exciting. * chore: regenerate the proto definitions using the new protoc
1 parent 189263c commit 5c866a1

File tree

14 files changed

+1075
-1036
lines changed

14 files changed

+1075
-1036
lines changed

docs-v1/content/en/api-v2/skaffold.swagger.json

Lines changed: 105 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
"version": "version not set",
55
"description": "v2/skaffold.proto"
66
},
7-
"schemes": [
8-
"http",
9-
"https"
10-
],
117
"consumes": [
128
"application/json"
139
],
@@ -18,12 +14,27 @@
1814
"/v2/applicationLogs": {
1915
"get": {
2016
"summary": "Returns all the user application logs of the current Skaffold execution",
21-
"operationId": "ApplicationLogs",
17+
"operationId": "SkaffoldV2Service_ApplicationLogs",
2218
"responses": {
2319
"200": {
2420
"description": "A successful response.(streaming responses)",
2521
"schema": {
26-
"$ref": "#/x-stream-definitions/v2Event"
22+
"type": "object",
23+
"properties": {
24+
"result": {
25+
"$ref": "#/definitions/v2Event"
26+
},
27+
"error": {
28+
"$ref": "#/definitions/runtimeStreamError"
29+
}
30+
},
31+
"description": "Stream result of v2Event"
32+
}
33+
},
34+
"default": {
35+
"description": "An unexpected error response.",
36+
"schema": {
37+
"$ref": "#/definitions/runtimeError"
2738
}
2839
}
2940
},
@@ -35,13 +46,19 @@
3546
"/v2/build/auto_execute": {
3647
"put": {
3748
"summary": "Allows for enabling or disabling automatic build trigger",
38-
"operationId": "AutoBuild",
49+
"operationId": "SkaffoldV2Service_AutoBuild",
3950
"responses": {
4051
"200": {
4152
"description": "A successful response.",
4253
"schema": {
4354
"properties": {}
4455
}
56+
},
57+
"default": {
58+
"description": "An unexpected error response.",
59+
"schema": {
60+
"$ref": "#/definitions/runtimeError"
61+
}
4562
}
4663
},
4764
"parameters": [
@@ -62,13 +79,19 @@
6279
"/v2/deploy/auto_execute": {
6380
"put": {
6481
"summary": "Allows for enabling or disabling automatic deploy trigger",
65-
"operationId": "AutoDeploy",
82+
"operationId": "SkaffoldV2Service_AutoDeploy",
6683
"responses": {
6784
"200": {
6885
"description": "A successful response.",
6986
"schema": {
7087
"properties": {}
7188
}
89+
},
90+
"default": {
91+
"description": "An unexpected error response.",
92+
"schema": {
93+
"$ref": "#/definitions/runtimeError"
94+
}
7295
}
7396
},
7497
"parameters": [
@@ -89,12 +112,27 @@
89112
"/v2/events": {
90113
"get": {
91114
"summary": "Returns all the events of the current Skaffold execution from the start",
92-
"operationId": "Events",
115+
"operationId": "SkaffoldV2Service_Events",
93116
"responses": {
94117
"200": {
95118
"description": "A successful response.(streaming responses)",
96119
"schema": {
97-
"$ref": "#/x-stream-definitions/v2Event"
120+
"type": "object",
121+
"properties": {
122+
"result": {
123+
"$ref": "#/definitions/v2Event"
124+
},
125+
"error": {
126+
"$ref": "#/definitions/runtimeStreamError"
127+
}
128+
},
129+
"description": "Stream result of v2Event"
130+
}
131+
},
132+
"default": {
133+
"description": "An unexpected error response.",
134+
"schema": {
135+
"$ref": "#/definitions/runtimeError"
98136
}
99137
}
100138
},
@@ -106,13 +144,19 @@
106144
"/v2/events/handle": {
107145
"post": {
108146
"summary": "EXPERIMENTAL. It allows for custom events to be implemented in custom builders for example.",
109-
"operationId": "Handle",
147+
"operationId": "SkaffoldV2Service_Handle",
110148
"responses": {
111149
"200": {
112150
"description": "A successful response.",
113151
"schema": {
114152
"properties": {}
115153
}
154+
},
155+
"default": {
156+
"description": "An unexpected error response.",
157+
"schema": {
158+
"$ref": "#/definitions/runtimeError"
159+
}
116160
}
117161
},
118162
"parameters": [
@@ -133,13 +177,19 @@
133177
"/v2/execute": {
134178
"post": {
135179
"summary": "Allows for a single execution of some or all of the phases (build, sync, deploy) in case autoBuild, autoDeploy or autoSync are disabled.",
136-
"operationId": "Execute",
180+
"operationId": "SkaffoldV2Service_Execute",
137181
"responses": {
138182
"200": {
139183
"description": "A successful response.",
140184
"schema": {
141185
"properties": {}
142186
}
187+
},
188+
"default": {
189+
"description": "An unexpected error response.",
190+
"schema": {
191+
"$ref": "#/definitions/runtimeError"
192+
}
143193
}
144194
},
145195
"parameters": [
@@ -160,13 +210,19 @@
160210
"/v2/state": {
161211
"get": {
162212
"summary": "Returns the state of the current Skaffold execution",
163-
"operationId": "GetState",
213+
"operationId": "SkaffoldV2Service_GetState",
164214
"responses": {
165215
"200": {
166216
"description": "A successful response.",
167217
"schema": {
168218
"$ref": "#/definitions/v2State"
169219
}
220+
},
221+
"default": {
222+
"description": "An unexpected error response.",
223+
"schema": {
224+
"$ref": "#/definitions/runtimeError"
225+
}
170226
}
171227
},
172228
"tags": [
@@ -177,13 +233,19 @@
177233
"/v2/sync/auto_execute": {
178234
"put": {
179235
"summary": "Allows for enabling or disabling automatic sync trigger",
180-
"operationId": "AutoSync",
236+
"operationId": "SkaffoldV2Service_AutoSync",
181237
"responses": {
182238
"200": {
183239
"description": "A successful response.",
184240
"schema": {
185241
"properties": {}
186242
}
243+
},
244+
"default": {
245+
"description": "An unexpected error response.",
246+
"schema": {
247+
"$ref": "#/definitions/runtimeError"
248+
}
187249
}
188250
},
189251
"parameters": [
@@ -647,6 +709,27 @@
647709
}
648710
}
649711
},
712+
"runtimeError": {
713+
"type": "object",
714+
"properties": {
715+
"error": {
716+
"type": "string"
717+
},
718+
"code": {
719+
"type": "integer",
720+
"format": "int32"
721+
},
722+
"message": {
723+
"type": "string"
724+
},
725+
"details": {
726+
"type": "array",
727+
"items": {
728+
"$ref": "#/definitions/protobufAny"
729+
}
730+
}
731+
}
732+
},
650733
"runtimeStreamError": {
651734
"type": "object",
652735
"properties": {
@@ -743,8 +826,7 @@
743826
"description": "A map of `artifact name -> build-state`.\nArtifact name is defined in the `skaffold.yaml`.\nThe `build-state` can be: <br>\n- `\"NotStarted\"`: not yet started <br>\n- `\"InProgress\"`: build started <br>\n- `\"Complete\"`: build succeeded <br>\n- `\"Failed\"`: build failed"
744827
},
745828
"autoTrigger": {
746-
"type": "boolean",
747-
"format": "boolean"
829+
"type": "boolean"
748830
},
749831
"statusCode": {
750832
"$ref": "#/definitions/enumsStatusCode"
@@ -864,8 +946,7 @@
864946
"type": "string"
865947
},
866948
"autoTrigger": {
867-
"type": "boolean",
868-
"format": "boolean"
949+
"type": "boolean"
869950
},
870951
"statusCode": {
871952
"$ref": "#/definitions/enumsStatusCode"
@@ -1013,8 +1094,7 @@
10131094
"type": "string"
10141095
},
10151096
"autoTrigger": {
1016-
"type": "boolean",
1017-
"format": "boolean"
1097+
"type": "boolean"
10181098
}
10191099
},
10201100
"description": "`FileSyncState` contains the status of the current file sync"
@@ -1040,20 +1120,16 @@
10401120
"type": "object",
10411121
"properties": {
10421122
"build": {
1043-
"type": "boolean",
1044-
"format": "boolean"
1123+
"type": "boolean"
10451124
},
10461125
"sync": {
1047-
"type": "boolean",
1048-
"format": "boolean"
1126+
"type": "boolean"
10491127
},
10501128
"deploy": {
1051-
"type": "boolean",
1052-
"format": "boolean"
1129+
"type": "boolean"
10531130
},
10541131
"devloop": {
1055-
"type": "boolean",
1056-
"format": "boolean"
1132+
"type": "boolean"
10571133
}
10581134
},
10591135
"description": "Intent represents user intents for a given phase."
@@ -1389,8 +1465,7 @@
13891465
"type": "object",
13901466
"properties": {
13911467
"enabled": {
1392-
"type": "boolean",
1393-
"format": "boolean"
1468+
"type": "boolean"
13941469
}
13951470
},
13961471
"description": "TriggerState represents trigger state for a given phase."
@@ -1427,19 +1502,5 @@
14271502
},
14281503
"description": "`VerifyEvent` represents the status of a render, and is emitted by Skaffold\nanytime a render starts or completes, successfully or not."
14291504
}
1430-
},
1431-
"x-stream-definitions": {
1432-
"v2Event": {
1433-
"type": "object",
1434-
"properties": {
1435-
"result": {
1436-
"$ref": "#/definitions/v2Event"
1437-
},
1438-
"error": {
1439-
"$ref": "#/definitions/runtimeStreamError"
1440-
}
1441-
},
1442-
"description": "Stream result of v2Event"
1443-
}
14441505
}
14451506
}

0 commit comments

Comments
 (0)