Skip to content

Commit 5161727

Browse files
kim-codefreshdmaizel
authored andcommitted
feat: support artifact files
1 parent 783f54d commit 5161727

File tree

12 files changed

+55248
-12
lines changed

12 files changed

+55248
-12
lines changed

Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,30 @@ GIT_BRANCH := $(shell git rev-parse --symbolic-full-name --verify --q
2020
RELEASE_TAG := $(shell if [[ "$(GIT_TAG)" =~ ^v[0-9]+\.[0-9]+\.[0-9]+.*$$ ]]; then echo "true"; else echo "false"; fi)
2121
DEV_BRANCH := $(shell [ "$(GIT_BRANCH)" = main ] || [ `echo $(GIT_BRANCH) | cut -c -8` = release- ] || [ `echo $(GIT_BRANCH) | cut -c -4` = dev- ] || [ $(RELEASE_TAG) = true ] && echo false || echo true)
2222
SRC := $(GOPATH)/src/github.com/argoproj/argo-workflows
23+
24+
GREP_LOGS := ""
25+
26+
27+
# docker image publishing options
28+
IMAGE_NAMESPACE ?= quay.io/argoproj
29+
DEV_IMAGE ?= $(shell [ `uname -s` = Darwin ] && echo true || echo false)
30+
31+
# declares which cluster to import to in case it's not the default name
32+
K3D_CLUSTER_NAME ?= k3s-default
33+
34+
# The name of the namespace where Kubernetes resources/RBAC will be installed
35+
KUBE_NAMESPACE ?= argo
36+
MANAGED_NAMESPACE ?= $(KUBE_NAMESPACE)
37+
38+
# Timeout for wait conditions
39+
E2E_WAIT_TIMEOUT ?= 1m
40+
41+
E2E_PARALLEL ?= 20
42+
E2E_SUITE_TIMEOUT ?= 15m
43+
2344
VERSION := latest
45+
DOCKER_PUSH := false
46+
2447
# VERSION is the version to be used for files in manifests and should always be latest unless we are releasing
2548
# we assume HEAD means you are on a tag
2649
ifeq ($(RELEASE_TAG),true)

api/jsonschema/schema.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/openapi-spec/swagger.json

Lines changed: 180 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apiclient/_.primary.swagger.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,90 @@
3030
}
3131
],
3232
"paths": {
33+
"/artifacts-by-manifest/{podName}/{artifactName}": {
34+
"post": {
35+
"tags": [
36+
"ArtifactService"
37+
],
38+
"summary": "Get an output artifact by a full workflow manifest.",
39+
"operationId": "ArtifactService_GetOutputArtifactByManifest",
40+
"parameters": [
41+
{
42+
"name": "body",
43+
"in": "body",
44+
"required": true,
45+
"schema": {
46+
"$ref": "#/definitions/github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.ArtifactByManifestRequest"
47+
}
48+
},
49+
{
50+
"type": "string",
51+
"name": "podName",
52+
"in": "path",
53+
"required": true
54+
},
55+
{
56+
"type": "string",
57+
"name": "artifactName",
58+
"in": "path",
59+
"required": true
60+
}
61+
],
62+
"responses": {
63+
"200": {
64+
"description": "An artifact file."
65+
},
66+
"default": {
67+
"description": "An unexpected error response.",
68+
"schema": {
69+
"$ref": "#/definitions/grpc.gateway.runtime.Error"
70+
}
71+
}
72+
}
73+
}
74+
},
75+
"/input-artifacts-by-manifest/{podName}/{artifactName}": {
76+
"post": {
77+
"tags": [
78+
"ArtifactService"
79+
],
80+
"summary": "Get an output artifact by a full workflow manifest.",
81+
"operationId": "ArtifactService_GetInputArtifactByManifest",
82+
"parameters": [
83+
{
84+
"name": "body",
85+
"in": "body",
86+
"required": true,
87+
"schema": {
88+
"$ref": "#/definitions/github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.ArtifactByManifestRequest"
89+
}
90+
},
91+
{
92+
"type": "string",
93+
"name": "podName",
94+
"in": "path",
95+
"required": true
96+
},
97+
{
98+
"type": "string",
99+
"name": "artifactName",
100+
"in": "path",
101+
"required": true
102+
}
103+
],
104+
"responses": {
105+
"200": {
106+
"description": "An artifact file."
107+
},
108+
"default": {
109+
"description": "An unexpected error response.",
110+
"schema": {
111+
"$ref": "#/definitions/grpc.gateway.runtime.Error"
112+
}
113+
}
114+
}
115+
}
116+
},
33117
"/artifact-files/{namespace}/{idDiscriminator}/{id}/{nodeId}/{artifactDiscriminator}/{artifactName}": {
34118
"get": {
35119
"tags": [
@@ -289,6 +373,17 @@
289373
}
290374
},
291375
"definitions": {
376+
"github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.ArtifactByManifestRequest": {
377+
"type": "object",
378+
"required": [
379+
"workflow"
380+
],
381+
"properties": {
382+
"workflow": {
383+
"$ref": "#/definitions/github.com.argoproj.argo_workflows.v3.pkg.apis.workflow.v1alpha1.Workflow"
384+
}
385+
}
386+
},
292387
"io.k8s.apimachinery.pkg.runtime.Object": {
293388
"title": "This is a hack do deal with this problem: https://github.com/kubernetes/kube-openapi/issues/174"
294389
},

0 commit comments

Comments
 (0)