Skip to content

Commit

Permalink
feat: support artifact files
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-codefresh authored and dmaizel committed Dec 10, 2024
1 parent 783f54d commit 5161727
Show file tree
Hide file tree
Showing 12 changed files with 55,248 additions and 12 deletions.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,30 @@ GIT_BRANCH := $(shell git rev-parse --symbolic-full-name --verify --q
RELEASE_TAG := $(shell if [[ "$(GIT_TAG)" =~ ^v[0-9]+\.[0-9]+\.[0-9]+.*$$ ]]; then echo "true"; else echo "false"; fi)
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)
SRC := $(GOPATH)/src/github.com/argoproj/argo-workflows

GREP_LOGS := ""


# docker image publishing options
IMAGE_NAMESPACE ?= quay.io/argoproj
DEV_IMAGE ?= $(shell [ `uname -s` = Darwin ] && echo true || echo false)

# declares which cluster to import to in case it's not the default name
K3D_CLUSTER_NAME ?= k3s-default

# The name of the namespace where Kubernetes resources/RBAC will be installed
KUBE_NAMESPACE ?= argo
MANAGED_NAMESPACE ?= $(KUBE_NAMESPACE)

# Timeout for wait conditions
E2E_WAIT_TIMEOUT ?= 1m

E2E_PARALLEL ?= 20
E2E_SUITE_TIMEOUT ?= 15m

VERSION := latest
DOCKER_PUSH := false

# VERSION is the version to be used for files in manifests and should always be latest unless we are releasing
# we assume HEAD means you are on a tag
ifeq ($(RELEASE_TAG),true)
Expand Down
11 changes: 11 additions & 0 deletions api/jsonschema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

181 changes: 180 additions & 1 deletion api/openapi-spec/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

95 changes: 95 additions & 0 deletions pkg/apiclient/_.primary.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,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"
}
}
}
}
},
"/artifact-files/{namespace}/{idDiscriminator}/{id}/{nodeId}/{artifactDiscriminator}/{artifactName}": {
"get": {
"tags": [
Expand Down Expand Up @@ -289,6 +373,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 Down
Loading

0 comments on commit 5161727

Please sign in to comment.