Skip to content

Commit

Permalink
CR-8697 (#107)
Browse files Browse the repository at this point in the history
* feat: get artifact by manifest

Signed-off-by: Noam Gal <[email protected]>
  • Loading branch information
ATGardner authored Feb 8, 2022
1 parent e874ec1 commit fa1c102
Show file tree
Hide file tree
Showing 12 changed files with 1,290 additions and 674 deletions.
11 changes: 11 additions & 0 deletions api/jsonschema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4138,6 +4138,17 @@
],
"type": "object"
},
"io.argoproj.workflow.v1alpha1.ArtifactByManifestRequest": {
"properties": {
"workflow": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Workflow"
}
},
"required": [
"workflow"
],
"type": "object"
},
"io.argoproj.workflow.v1alpha1.ArtifactLocation": {
"description": "ArtifactLocation describes a location for a single or multiple artifacts. It is used as single artifact in the context of inputs/outputs (e.g. outputs.artifacts.artname). It is also used to describe the location of multiple artifacts such as the archive location of a single workflow step, which the executor will use as a default location to store its files.",
"properties": {
Expand Down
95 changes: 95 additions & 0 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3985,6 +3985,48 @@
}
}
},
"/artifacts-by-manifest/{podName}/{artifactName}": {
"post": {
"tags": [
"ArtifactService"
],
"summary": "Get an output artifact by a full workflow manifest.",
"operationId": "ArtifactService_GetOutputArtifactByManifest",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ArtifactByManifestRequest"
}
},
{
"type": "string",
"name": "podName",
"in": "path",
"required": true
},
{
"type": "string",
"name": "artifactName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "An artifact file."
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/grpc.gateway.runtime.Error"
}
}
}
}
},
"/artifacts-by-uid/{uid}/{podName}/{artifactName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -4071,6 +4113,48 @@
}
}
},
"/input-artifacts-by-manifest/{podName}/{artifactName}": {
"post": {
"tags": [
"ArtifactService"
],
"summary": "Get an output artifact by a full workflow manifest.",
"operationId": "ArtifactService_GetInputArtifactByManifest",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ArtifactByManifestRequest"
}
},
{
"type": "string",
"name": "podName",
"in": "path",
"required": true
},
{
"type": "string",
"name": "artifactName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "An artifact file."
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/grpc.gateway.runtime.Error"
}
}
}
}
},
"/input-artifacts-by-uid/{uid}/{podName}/{artifactName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -8301,6 +8385,17 @@
}
}
},
"io.argoproj.workflow.v1alpha1.ArtifactByManifestRequest": {
"type": "object",
"required": [
"workflow"
],
"properties": {
"workflow": {
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Workflow"
}
}
},
"io.argoproj.workflow.v1alpha1.ArtifactLocation": {
"description": "ArtifactLocation describes a location for a single or multiple artifacts. It is used as single artifact in the context of inputs/outputs (e.g. outputs.artifacts.artname). It is also used to describe the location of multiple artifacts such as the archive location of a single workflow step, which the executor will use as a default location to store its files.",
"type": "object",
Expand Down
97 changes: 96 additions & 1 deletion pkg/apiclient/_.primary.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,90 @@
}
},
"paths": {
"/artifacts-by-manifest/{podName}/{artifactName}": {
"post": {
"tags": [
"ArtifactService"
],
"summary": "Get an output artifact by a full workflow manifest.",
"operationId": "ArtifactService_GetOutputArtifactByManifest",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.ArtifactByManifestRequest"
}
},
{
"type": "string",
"name": "podName",
"in": "path",
"required": true
},
{
"type": "string",
"name": "artifactName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "An artifact file."
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/grpc.gateway.runtime.Error"
}
}
}
}
},
"/input-artifacts-by-manifest/{podName}/{artifactName}": {
"post": {
"tags": [
"ArtifactService"
],
"summary": "Get an output artifact by a full workflow manifest.",
"operationId": "ArtifactService_GetInputArtifactByManifest",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.ArtifactByManifestRequest"
}
},
{
"type": "string",
"name": "podName",
"in": "path",
"required": true
},
{
"type": "string",
"name": "artifactName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "An artifact file."
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/grpc.gateway.runtime.Error"
}
}
}
}
},
"/artifacts/{namespace}/{name}/{podName}/{artifactName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -237,6 +321,17 @@
}
},
"definitions": {
"github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.ArtifactByManifestRequest": {
"type": "object",
"required": [
"workflow"
],
"properties": {
"workflow": {
"$ref": "#/definitions/github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.Workflow"
}
}
},
"io.k8s.apimachinery.pkg.runtime.Object": {
"title": "This is a hack do deal with this problem: https://github.com/kubernetes/kube-openapi/issues/174"
},
Expand All @@ -247,4 +342,4 @@
}
}
}
}
}
Loading

0 comments on commit fa1c102

Please sign in to comment.