Skip to content

Commit

Permalink
promote helm3 (#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-codefresh authored May 17, 2021
1 parent 93a40ed commit c822679
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/interface/cli/commands/helm/chart/promote-chart.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const promote = new Command({
},
handler: async (argv) => {
try {
const result = await sdk.helm.charts.promote({
const result = await sdk.helm.charts.promote.new({
selector: argv.sourceCluster,
tillerNamespace: argv.sourceTillerNamespace,
}, {
Expand Down
141 changes: 140 additions & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2212,7 +2212,7 @@
},
"description": "Upper date filter bound"
}

],
"responses": {
"200": {
Expand Down Expand Up @@ -5567,6 +5567,145 @@
"x-sdk-interface": "helm.charts.install"
}
},
"/kubernetes/chart/promote/helm3": {
"post": {
"x-entityId": {
"pathName": "body.releaseName"
},
"x-action": "promoteHelm3Release",
"responses": {
"200": {
"description": "Id of running pipeline for promote helm release",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string"
}
}
}
}
}
}
},
"tags": [
"helm.charts",
"kubernetes"
],
"operationId": "helm-charts-promote-helm3",
"parameters": [
{
"in": "query",
"name": "selector",
"schema": {
"type": "string"
},
"description": "Selector"
},
{
"in": "query",
"name": "tillerNamespace",
"schema": {
"type": "string"
},
"required": false,
"description": "Tiller namespace"
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"targetTillerNamespace": {
"type": "string"
},
"targetNamespace": {
"type": "string"
},
"releaseName": {
"type": "string"
},
"targetReleaseName": {
"type": "string"
},
"set": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"values": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
},
"targetSelector": {
"type": "string"
},
"revision": {
"type": "string"
},
"pipelineId": {
"type": "string"
}
}
}
}
}
},
"summary": "Promote",
"x-sdk-interface": "helm.charts.promote.new",
"x-endpoint": {
"isEndpoint": false,
"auth": {
"middleware": [
"auth.isAuthenticated",
"kubernetes.resolveClustersFromBoards",
"kubernetes.resolveClustersFromQuery"
],
"acl": {
"resource": "cluster",
"abac": true,
"abacSource": "kubernetes",
"action": "update",
"identifiersLocation": "body.targetSelector"
}
},
"preMiddleware": [
"kubernetes.extendRequestWithKubeManager",
"kubernetes.extendRequestWithTillerVersion",
"kubernetes.extendRequestWithClusterConfig"
],
"postMiddleware": [
"global.iseMiddleware"
],
"utility": {
"bodyParser": {
"limit": "5mb"
}
},
"handler": "kubernetes.promoteChartHelm3"
}
}
},
"/kubernetes/chart/promote": {
"post": {
"responses": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.75.18",
"version": "0.75.19",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit c822679

Please sign in to comment.