Skip to content

Commit c822679

Browse files
promote helm3 (#671)
1 parent 93a40ed commit c822679

File tree

3 files changed

+142
-3
lines changed

3 files changed

+142
-3
lines changed

lib/interface/cli/commands/helm/chart/promote-chart.cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const promote = new Command({
8383
},
8484
handler: async (argv) => {
8585
try {
86-
const result = await sdk.helm.charts.promote({
86+
const result = await sdk.helm.charts.promote.new({
8787
selector: argv.sourceCluster,
8888
tillerNamespace: argv.sourceTillerNamespace,
8989
}, {

openapi.json

Lines changed: 140 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2212,7 +2212,7 @@
22122212
},
22132213
"description": "Upper date filter bound"
22142214
}
2215-
2215+
22162216
],
22172217
"responses": {
22182218
"200": {
@@ -5567,6 +5567,145 @@
55675567
"x-sdk-interface": "helm.charts.install"
55685568
}
55695569
},
5570+
"/kubernetes/chart/promote/helm3": {
5571+
"post": {
5572+
"x-entityId": {
5573+
"pathName": "body.releaseName"
5574+
},
5575+
"x-action": "promoteHelm3Release",
5576+
"responses": {
5577+
"200": {
5578+
"description": "Id of running pipeline for promote helm release",
5579+
"content": {
5580+
"application/json": {
5581+
"schema": {
5582+
"type": "object",
5583+
"properties": {
5584+
"id": {
5585+
"type": "string"
5586+
}
5587+
}
5588+
}
5589+
}
5590+
}
5591+
}
5592+
},
5593+
"tags": [
5594+
"helm.charts",
5595+
"kubernetes"
5596+
],
5597+
"operationId": "helm-charts-promote-helm3",
5598+
"parameters": [
5599+
{
5600+
"in": "query",
5601+
"name": "selector",
5602+
"schema": {
5603+
"type": "string"
5604+
},
5605+
"description": "Selector"
5606+
},
5607+
{
5608+
"in": "query",
5609+
"name": "tillerNamespace",
5610+
"schema": {
5611+
"type": "string"
5612+
},
5613+
"required": false,
5614+
"description": "Tiller namespace"
5615+
}
5616+
],
5617+
"requestBody": {
5618+
"content": {
5619+
"application/json": {
5620+
"schema": {
5621+
"type": "object",
5622+
"properties": {
5623+
"targetTillerNamespace": {
5624+
"type": "string"
5625+
},
5626+
"targetNamespace": {
5627+
"type": "string"
5628+
},
5629+
"releaseName": {
5630+
"type": "string"
5631+
},
5632+
"targetReleaseName": {
5633+
"type": "string"
5634+
},
5635+
"set": {
5636+
"type": "array",
5637+
"items": {
5638+
"type": "object",
5639+
"properties": {
5640+
"key": {
5641+
"type": "string"
5642+
},
5643+
"value": {
5644+
"type": "string"
5645+
}
5646+
}
5647+
}
5648+
},
5649+
"values": {
5650+
"type": "array",
5651+
"items": {
5652+
"type": "object",
5653+
"properties": {
5654+
"name": {
5655+
"type": "string"
5656+
}
5657+
}
5658+
}
5659+
},
5660+
"targetSelector": {
5661+
"type": "string"
5662+
},
5663+
"revision": {
5664+
"type": "string"
5665+
},
5666+
"pipelineId": {
5667+
"type": "string"
5668+
}
5669+
}
5670+
}
5671+
}
5672+
}
5673+
},
5674+
"summary": "Promote",
5675+
"x-sdk-interface": "helm.charts.promote.new",
5676+
"x-endpoint": {
5677+
"isEndpoint": false,
5678+
"auth": {
5679+
"middleware": [
5680+
"auth.isAuthenticated",
5681+
"kubernetes.resolveClustersFromBoards",
5682+
"kubernetes.resolveClustersFromQuery"
5683+
],
5684+
"acl": {
5685+
"resource": "cluster",
5686+
"abac": true,
5687+
"abacSource": "kubernetes",
5688+
"action": "update",
5689+
"identifiersLocation": "body.targetSelector"
5690+
}
5691+
},
5692+
"preMiddleware": [
5693+
"kubernetes.extendRequestWithKubeManager",
5694+
"kubernetes.extendRequestWithTillerVersion",
5695+
"kubernetes.extendRequestWithClusterConfig"
5696+
],
5697+
"postMiddleware": [
5698+
"global.iseMiddleware"
5699+
],
5700+
"utility": {
5701+
"bodyParser": {
5702+
"limit": "5mb"
5703+
}
5704+
},
5705+
"handler": "kubernetes.promoteChartHelm3"
5706+
}
5707+
}
5708+
},
55705709
"/kubernetes/chart/promote": {
55715710
"post": {
55725711
"responses": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.75.18",
3+
"version": "0.75.19",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)