From 327fcb242b20107c859142b3dd68745b3440e5eb Mon Sep 17 00:00:00 2001 From: Saravanan Balasubramanian <33908564+sarabala1979@users.noreply.github.com> Date: Fri, 1 Nov 2019 09:25:44 -0700 Subject: [PATCH] Added Protobuf extension (#1601) --- Gopkg.lock | 47 +- Gopkg.toml | 8 +- Makefile | 1 + api/openapi-spec/swagger.json | 86 +- hack/generate-proto.sh | 121 + pkg/apis/api-rules/violation_exceptions.list | 16 + pkg/apis/workflow/v1alpha1/generated.pb.go | 17609 ++++++++++++++++ pkg/apis/workflow/v1alpha1/generated.proto | 959 + pkg/apis/workflow/v1alpha1/item.go | 176 + pkg/apis/workflow/v1alpha1/item_test.go | 38 + .../workflow/v1alpha1/openapi_generated.go | 140 +- .../v1alpha1/workflow_template_types.go | 12 +- pkg/apis/workflow/v1alpha1/workflow_types.go | 504 +- .../v1alpha1/zz_generated.deepcopy.go | 75 +- pkg/client/clientset/versioned/clientset.go | 7 + .../versioned/fake/clientset_generated.go | 7 +- .../workflow/v1alpha1/workflow_client.go | 3 +- .../externalversions/workflow/interface.go | 2 +- workflow/controller/operator.go | 38 +- workflow/controller/operator_test.go | 26 +- workflow/controller/steps.go | 6 +- workflow/util/util.go | 2 +- workflow/validate/validate.go | 14 +- 23 files changed, 19523 insertions(+), 374 deletions(-) create mode 100755 hack/generate-proto.sh create mode 100644 pkg/apis/workflow/v1alpha1/generated.pb.go create mode 100644 pkg/apis/workflow/v1alpha1/generated.proto create mode 100644 pkg/apis/workflow/v1alpha1/item.go create mode 100644 pkg/apis/workflow/v1alpha1/item_test.go diff --git a/Gopkg.lock b/Gopkg.lock index bc492d1be1f3..69198303a559 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -57,7 +57,7 @@ [[projects]] branch = "master" - digest = "1:d04fdd419650d1bc6c84b0988a94a7438cc3143e95a61a63f5c2bf56542156e3" + digest = "1:52905b00a73cda93a2ce8c5fa35185daed673d59e39576e81ad6ab6fb7076b3c" name = "github.com/argoproj/pkg" packages = [ "cli", @@ -75,7 +75,7 @@ "time", ] pruneopts = "" - revision = "5616f48963eebf7cca912632230032b263bb62bc" + revision = "02a6aac40ac4cd23de448afe7a1ec0ba4b6d2b96" [[projects]] digest = "1:d54d0284d0851e6f9df56504d20dca52635a13787efadeaef281a3b6fe8b9b08" @@ -302,6 +302,20 @@ revision = "6c65a5562fc06764971b7c5d05c76c75e84bdbf7" version = "v1.3.2" +[[projects]] + digest = "1:9fcb267c272bc5054564b392e3ff7e65e35400fd9914afb1d169f92b95e7dbc9" + name = "github.com/google/go-cmp" + packages = [ + "cmp", + "cmp/internal/diff", + "cmp/internal/flags", + "cmp/internal/function", + "cmp/internal/value", + ] + pruneopts = "" + revision = "2d0692c2e9617365a95b295612ac0d4415ba4627" + version = "v0.3.1" + [[projects]] digest = "1:8d4a577a9643f713c25a32151c0f26af7228b4b97a219b5ddb7fd38d16f6e673" name = "github.com/google/gofuzz" @@ -1085,8 +1099,8 @@ version = "v2.2.2" [[projects]] - branch = "release-1.14" - digest = "1:e47eecacd1a86a8c68b539f87736f4d3bd081431db029fb77456b16f61d64663" + branch = "release-1.16" + digest = "1:5e5cfbab57ea5444c1eb295a39fdc403f097f5ace592c829db7b3e0e3ea66903" name = "k8s.io/api" packages = [ "admissionregistration/v1beta1", @@ -1127,11 +1141,11 @@ "storage/v1beta1", ] pruneopts = "" - revision = "e3a6b8045b0b303430f6d0c261fd9e35be50800e" + revision = "195af9ec35214c6d98662c5791364285bf2e2cf2" [[projects]] - branch = "release-1.14" - digest = "1:daf5cbf32f8ec58311ade32bbb966aabc40c99c02d7b21176c2ec35e4faf4ad9" + branch = "release-1.16" + digest = "1:36db89a45a8cb3d565f7ebfd67dafd42c9c0bbb80d6bbd4991629b39b02a4c64" name = "k8s.io/apimachinery" packages = [ "pkg/api/errors", @@ -1182,11 +1196,11 @@ "third_party/forked/golang/reflect", ] pruneopts = "" - revision = "8f6ac2502e5143406f4eaedc4ca4262854d877ce" + revision = "72ed19daf4bb788ae595ae4103c404cb0fa09c84" [[projects]] - branch = "release-11.0" - digest = "1:d77899845faaec7b101fdf7c30bcaede6f17dad11818c8ab336fbfb88192e662" + branch = "release-12.0" + digest = "1:7ee113eb8b6b464c3fc143c29468a7dd6929305c962c6e7e6aef7f2c1d244c4c" name = "k8s.io/client-go" packages = [ "discovery", @@ -1304,11 +1318,11 @@ "util/workqueue", ] pruneopts = "" - revision = "6d55c1b1f1ca8ad83d572bbc3ca55ba5526d9d71" + revision = "5f2132fc4383659da452dba21a1c6c9890b0e062" [[projects]] - branch = "release-1.14" - digest = "1:0ca40cba3558ea765d0e7fa91ebd32d661909d5c331c49c2a271af66f0b5604d" + branch = "release-1.16" + digest = "1:254da4cb69b3776686b730a206e081e6f8898bb64760619d1895c25c407e718f" name = "k8s.io/code-generator" packages = [ "cmd/client-gen", @@ -1331,7 +1345,7 @@ "pkg/util", ] pruneopts = "" - revision = "6c2a4329ac290d921e8616cad41635c87dbb1518" + revision = "8e001e5d18949be7e823ccb9cfe9b60026e7bda0" [[projects]] branch = "master" @@ -1430,6 +1444,8 @@ "github.com/evanphx/json-patch", "github.com/ghodss/yaml", "github.com/go-openapi/spec", + "github.com/gogo/protobuf/proto", + "github.com/gogo/protobuf/sortkeys", "github.com/gorilla/websocket", "github.com/mitchellh/go-ps", "github.com/pkg/errors", @@ -1443,6 +1459,8 @@ "github.com/tidwall/gjson", "github.com/valyala/fasttemplate", "golang.org/x/crypto/ssh", + "golang.org/x/net/context", + "google.golang.org/grpc/metadata", "gopkg.in/jcmturner/gokrb5.v5/client", "gopkg.in/jcmturner/gokrb5.v5/config", "gopkg.in/jcmturner/gokrb5.v5/credentials", @@ -1495,6 +1513,7 @@ "k8s.io/kube-openapi/pkg/common", "k8s.io/utils/pointer", "sigs.k8s.io/yaml", + "upper.io/db.v3", "upper.io/db.v3/lib/sqlbuilder", "upper.io/db.v3/mysql", "upper.io/db.v3/postgresql", diff --git a/Gopkg.toml b/Gopkg.toml index b897fb1c5ab2..bd3036bf94d2 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -7,15 +7,15 @@ required = [ [[constraint]] name = "k8s.io/api" - branch = "release-1.14" + branch = "release-1.16" [[constraint]] name = "k8s.io/apimachinery" - branch = "release-1.14" + branch = "release-1.16" [[constraint]] name = "k8s.io/code-generator" - branch = "release-1.14" + branch = "release-1.16" [[constraint]] name = "k8s.io/kube-openapi" @@ -23,7 +23,7 @@ required = [ [[constraint]] name = "k8s.io/client-go" - branch = "release-11.0" + branch = "release-12.0" [[constraint]] name = "github.com/stretchr/testify" diff --git a/Makefile b/Makefile index c238fce4bd2c..86a91482ce55 100644 --- a/Makefile +++ b/Makefile @@ -146,6 +146,7 @@ cover: .PHONY: codegen codegen: + ./hack/generate-proto.sh ./hack/update-codegen.sh ./hack/update-openapigen.sh go run ./hack/gen-openapi-spec/main.go ${VERSION} > ${CURRENT_DIR}/api/openapi-spec/swagger.json diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index e7771dc641aa..631a266a49cf 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -302,7 +302,7 @@ "depth": { "description": "Depth specifies clones/fetches should be shallow and include the given number of commits from the branch tip", "type": "integer", - "format": "int32" + "format": "int64" }, "fetch": { "description": "Fetch specifies a number of refs that should be fetched before checkout", @@ -506,6 +506,45 @@ "type": "string", "format": "item" }, + "io.argoproj.workflow.v1alpha1.ItemValue": { + "type": "object", + "required": [ + "Type", + "NumVal", + "BoolVal", + "StrVal", + "MapVal", + "ListVal" + ], + "properties": { + "BoolVal": { + "type": "boolean" + }, + "ListVal": { + "type": "array", + "items": { + "type": "string", + "format": "byte" + } + }, + "MapVal": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "NumVal": { + "type": "string" + }, + "StrVal": { + "type": "string" + }, + "Type": { + "type": "integer", + "format": "int32" + } + } + }, "io.argoproj.workflow.v1alpha1.Metadata": { "description": "Pod metdata", "type": "object", @@ -650,6 +689,20 @@ } } }, + "io.argoproj.workflow.v1alpha1.ParallelSteps": { + "type": "object", + "required": [ + "Steps" + ], + "properties": { + "Steps": { + "type": "array", + "items": { + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowStep" + } + } + } + }, "io.argoproj.workflow.v1alpha1.Parameter": { "description": "Parameter indicate a passed string parameter to a service template with an optional default value", "type": "object", @@ -919,6 +972,10 @@ "description": "Source contains the source code of the script to execute", "type": "string" }, + "startupProbe": { + "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is an alpha feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "$ref": "#/definitions/io.k8s.api.core.v1.Probe" + }, "stdin": { "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", "type": "boolean" @@ -1113,7 +1170,6 @@ "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ScriptTemplate" }, "securityContext": { - "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", "$ref": "#/definitions/io.k8s.api.core.v1.PodSecurityContext" }, "serviceAccountName": { @@ -1133,10 +1189,7 @@ "description": "Steps define a series of sequential/parallel workflow steps", "type": "array", "items": { - "type": "array", - "items": { - "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.WorkflowStep" - } + "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ParallelSteps" } }, "suspend": { @@ -1276,6 +1329,10 @@ "description": "Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", "$ref": "#/definitions/io.k8s.api.core.v1.SecurityContext" }, + "startupProbe": { + "description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is an alpha feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + "$ref": "#/definitions/io.k8s.api.core.v1.Probe" + }, "stdin": { "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.", "type": "boolean" @@ -1352,11 +1409,11 @@ ], "properties": { "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { @@ -1379,7 +1436,7 @@ ], "properties": { "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { @@ -1389,7 +1446,7 @@ } }, "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { @@ -1443,7 +1500,6 @@ "$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ExecutorConfig" }, "hostAliases": { - "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod spec", "type": "array", "items": { "$ref": "#/definitions/io.k8s.api.core.v1.HostAlias" @@ -1665,11 +1721,11 @@ ], "properties": { "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { @@ -1689,7 +1745,7 @@ ], "properties": { "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", "type": "string" }, "items": { @@ -1699,7 +1755,7 @@ } }, "kind": { - "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, "metadata": { diff --git a/hack/generate-proto.sh b/hack/generate-proto.sh new file mode 100755 index 000000000000..b645ecc94bbb --- /dev/null +++ b/hack/generate-proto.sh @@ -0,0 +1,121 @@ +#!/bin/bash + +# This script auto-generates protobuf related files. It is intended to be run manually when either +# API types are added/modified, or server gRPC calls are added. The generated files should then +# be checked into source control. + +set -x +set -o errexit +set -o nounset +set -o pipefail + +PROJECT_ROOT=$(cd $(dirname ${BASH_SOURCE})/..; pwd) +CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${PROJECT_ROOT}; ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator)} +PATH="${PROJECT_ROOT}/dist:${PATH}" + +# protbuf tooling required to build .proto files from go annotations from k8s-like api types +go build -i -o dist/go-to-protobuf ./vendor/k8s.io/code-generator/cmd/go-to-protobuf +go build -i -o dist/protoc-gen-gogo ./vendor/k8s.io/code-generator/cmd/go-to-protobuf/protoc-gen-gogo + +cp dist/protoc-gen-gogo $GOPATH/bin + +# Generate pkg/apis///(generated.proto,generated.pb.go) +# NOTE: any dependencies of our types to the k8s.io apimachinery types should be added to the +# --apimachinery-packages= option so that go-to-protobuf can locate the types, but prefixed with a +# '-' so that go-to-protobuf will not generate .proto files for it. +PACKAGES=( + github.com/argoproj/argo/pkg/apis/workflow/v1alpha1 +) + +APIMACHINERY_PKGS=( + +k8s.io/apimachinery/pkg/util/intstr + +k8s.io/apimachinery/pkg/api/resource + +k8s.io/apimachinery/pkg/runtime/schema + +k8s.io/apimachinery/pkg/runtime + k8s.io/apimachinery/pkg/apis/meta/v1 + k8s.io/api/core/v1 +) +go-to-protobuf \ + --go-header-file=${PROJECT_ROOT}/hack/custom-boilerplate.go.txt \ + --packages=$(IFS=, ; echo "${PACKAGES[*]}") \ + --apimachinery-packages=$(IFS=, ; echo "${APIMACHINERY_PKGS[*]}") \ + --proto-import=./vendor + +# Either protoc-gen-go, protoc-gen-gofast, or protoc-gen-gogofast can be used to build +# server/*/.pb.go from .proto files. golang/protobuf and gogo/protobuf can be used +# interchangeably. The difference in the options are: +# 1. protoc-gen-go - official golang/protobuf +#go build -i -o dist/protoc-gen-go ./vendor/github.com/golang/protobuf/protoc-gen-go +#GOPROTOBINARY=go +# 2. protoc-gen-gofast - fork of golang golang/protobuf. Faster code generation +#go build -i -o dist/protoc-gen-gofast ./vendor/github.com/gogo/protobuf/protoc-gen-gofast +#GOPROTOBINARY=gofast +# 3. protoc-gen-gogofas'export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "t - faster code generation and gogo extensions and flexibility in controlling +# the generated go code (e.g. customizing field names, nullable fields) +#go build -i -o dist/protoc-gen-gogofast ./vendor/github.com/gogo/protobuf/protoc-gen-gogofast +#GOPROTOBINARY=gogofast +# +## protoc-gen-grpc-gateway is used to build .pb.gw.go files from from .proto files +#go build -i -o dist/protoc-gen-grpc-gateway ./vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway +## protoc-gen-swagger is used to build swagger.json +#go build -i -o dist/protoc-gen-swagger ./vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger +# +## Generate server//(.pb.go|.pb.gw.go) +#PROTO_FILES=$(find $PROJECT_ROOT \( -name "*.proto" -and -path '*/server/*' -or -path '*/reposerver/*' -and -name "*.proto" \)) +#for i in ${PROTO_FILES}; do +# # Path to the google API gateway annotations.proto will be different depending if we are +# # building natively (e.g. from workspace) vs. part of a docker build. +# if [ -f /.dockerenv ]; then +# GOOGLE_PROTO_API_PATH=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis +# GOGO_PROTOBUF_PATH=$GOPATH/src/github.com/gogo/protobuf +# else +# GOOGLE_PROTO_API_PATH=${PROJECT_ROOT}/vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis +# GOGO_PROTOBUF_PATH=${PROJECT_ROOT}/vendor/github.com/gogo/protobuf +# fi +# protoc \ +# -I${PROJECT_ROOT} \ +# -I/usr/local/include \ +# -I./vendor \ +# -I$GOPATH/src \ +# -I${GOOGLE_PROTO_API_PATH} \ +# -I${GOGO_PROTOBUF_PATH} \ +# --${GOPROTOBINARY}_out=plugins=grpc:$GOPATH/src \ +# --grpc-gateway_out=logtostderr=true:$GOPATH/src \ +# --swagger_out=logtostderr=true:. \ +# $i +#done +# +## collect_swagger gathers swagger files into a subdirectory +#collect_swagger() { +# SWAGGER_ROOT="$1" +# EXPECTED_COLLISIONS="$2" +# SWAGGER_OUT="${PROJECT_ROOT}/assets/swagger.json" +# PRIMARY_SWAGGER=`mktemp` +# COMBINED_SWAGGER=`mktemp` +# +# cat < "${PRIMARY_SWAGGER}" +#{ +# "swagger": "2.0", +# "info": { +# "title": "Consolidate Services", +# "description": "Description of all APIs", +# "version": "version not set" +# }, +# "paths": {} +#} +#EOF +# +# /bin/rm -f "${SWAGGER_OUT}" +# +# /usr/bin/find "${SWAGGER_ROOT}" -name '*.swagger.json' -exec /usr/local/bin/swagger mixin -c "${EXPECTED_COLLISIONS}" "${PRIMARY_SWAGGER}" '{}' \+ > "${COMBINED_SWAGGER}" +# /usr/local/bin/jq -r 'del(.definitions[].properties[]? | select(."$ref"!=null and .description!=null).description) | del(.definitions[].properties[]? | select(."$ref"!=null and .title!=null).title)' "${COMBINED_SWAGGER}" > "${SWAGGER_OUT}" +# +# /bin/rm "${PRIMARY_SWAGGER}" "${COMBINED_SWAGGER}" +#} +# +## clean up generated swagger files (should come after collect_swagger) +#clean_swagger() { +# SWAGGER_ROOT="$1" +# /usr/bin/find "${SWAGGER_ROOT}" -name '*.swagger.json' -delete +#} +# diff --git a/pkg/apis/api-rules/violation_exceptions.list b/pkg/apis/api-rules/violation_exceptions.list index 7fc33149b091..9e38e9306af6 100644 --- a/pkg/apis/api-rules/violation_exceptions.list +++ b/pkg/apis/api-rules/violation_exceptions.list @@ -7,10 +7,13 @@ API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,HDFSConfig,Addresses API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Inputs,Artifacts API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Inputs,Parameters +API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Item,ListVal +API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,ItemValue,ListVal API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,NodeStatus,Children API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,NodeStatus,OutboundNodes API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Outputs,Artifacts API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Outputs,Parameters +API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,ParallelSteps,Steps API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Template,HostAliases API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Template,InitContainers API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Template,Sidecars @@ -28,3 +31,16 @@ API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,WorkflowStep,WithItems API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,WorkflowTemplateList,Items API rule violation: list_type_missing,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,WorkflowTemplateSpec,Templates +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Item,BoolVal +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Item,ListVal +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Item,MapVal +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Item,NumVal +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Item,StrVal +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,Item,Type +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,ItemValue,BoolVal +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,ItemValue,ListVal +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,ItemValue,MapVal +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,ItemValue,NumVal +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,ItemValue,StrVal +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,ItemValue,Type +API rule violation: names_match,github.com/argoproj/argo/pkg/apis/workflow/v1alpha1,ParallelSteps,Steps diff --git a/pkg/apis/workflow/v1alpha1/generated.pb.go b/pkg/apis/workflow/v1alpha1/generated.pb.go new file mode 100644 index 000000000000..4fe0707b4ec6 --- /dev/null +++ b/pkg/apis/workflow/v1alpha1/generated.pb.go @@ -0,0 +1,17609 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: github.com/argoproj/argo/pkg/apis/workflow/v1alpha1/generated.proto + +package v1alpha1 + +import ( + encoding_json "encoding/json" + fmt "fmt" + + io "io" + + proto "github.com/gogo/protobuf/proto" + github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + k8s_io_api_core_v1 "k8s.io/api/core/v1" + v1 "k8s.io/api/core/v1" + + math "math" + math_bits "math/bits" + reflect "reflect" + strings "strings" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package + +func (m *ArchiveStrategy) Reset() { *m = ArchiveStrategy{} } +func (*ArchiveStrategy) ProtoMessage() {} +func (*ArchiveStrategy) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{0} +} +func (m *ArchiveStrategy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArchiveStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ArchiveStrategy) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArchiveStrategy.Merge(m, src) +} +func (m *ArchiveStrategy) XXX_Size() int { + return m.Size() +} +func (m *ArchiveStrategy) XXX_DiscardUnknown() { + xxx_messageInfo_ArchiveStrategy.DiscardUnknown(m) +} + +var xxx_messageInfo_ArchiveStrategy proto.InternalMessageInfo + +func (m *Arguments) Reset() { *m = Arguments{} } +func (*Arguments) ProtoMessage() {} +func (*Arguments) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{1} +} +func (m *Arguments) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Arguments) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Arguments) XXX_Merge(src proto.Message) { + xxx_messageInfo_Arguments.Merge(m, src) +} +func (m *Arguments) XXX_Size() int { + return m.Size() +} +func (m *Arguments) XXX_DiscardUnknown() { + xxx_messageInfo_Arguments.DiscardUnknown(m) +} + +var xxx_messageInfo_Arguments proto.InternalMessageInfo + +func (m *Artifact) Reset() { *m = Artifact{} } +func (*Artifact) ProtoMessage() {} +func (*Artifact) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{2} +} +func (m *Artifact) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Artifact) XXX_Merge(src proto.Message) { + xxx_messageInfo_Artifact.Merge(m, src) +} +func (m *Artifact) XXX_Size() int { + return m.Size() +} +func (m *Artifact) XXX_DiscardUnknown() { + xxx_messageInfo_Artifact.DiscardUnknown(m) +} + +var xxx_messageInfo_Artifact proto.InternalMessageInfo + +func (m *ArtifactLocation) Reset() { *m = ArtifactLocation{} } +func (*ArtifactLocation) ProtoMessage() {} +func (*ArtifactLocation) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{3} +} +func (m *ArtifactLocation) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArtifactLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ArtifactLocation) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArtifactLocation.Merge(m, src) +} +func (m *ArtifactLocation) XXX_Size() int { + return m.Size() +} +func (m *ArtifactLocation) XXX_DiscardUnknown() { + xxx_messageInfo_ArtifactLocation.DiscardUnknown(m) +} + +var xxx_messageInfo_ArtifactLocation proto.InternalMessageInfo + +func (m *ArtifactRepositoryRef) Reset() { *m = ArtifactRepositoryRef{} } +func (*ArtifactRepositoryRef) ProtoMessage() {} +func (*ArtifactRepositoryRef) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{4} +} +func (m *ArtifactRepositoryRef) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArtifactRepositoryRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ArtifactRepositoryRef) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArtifactRepositoryRef.Merge(m, src) +} +func (m *ArtifactRepositoryRef) XXX_Size() int { + return m.Size() +} +func (m *ArtifactRepositoryRef) XXX_DiscardUnknown() { + xxx_messageInfo_ArtifactRepositoryRef.DiscardUnknown(m) +} + +var xxx_messageInfo_ArtifactRepositoryRef proto.InternalMessageInfo + +func (m *ArtifactoryArtifact) Reset() { *m = ArtifactoryArtifact{} } +func (*ArtifactoryArtifact) ProtoMessage() {} +func (*ArtifactoryArtifact) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{5} +} +func (m *ArtifactoryArtifact) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArtifactoryArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ArtifactoryArtifact) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArtifactoryArtifact.Merge(m, src) +} +func (m *ArtifactoryArtifact) XXX_Size() int { + return m.Size() +} +func (m *ArtifactoryArtifact) XXX_DiscardUnknown() { + xxx_messageInfo_ArtifactoryArtifact.DiscardUnknown(m) +} + +var xxx_messageInfo_ArtifactoryArtifact proto.InternalMessageInfo + +func (m *ArtifactoryAuth) Reset() { *m = ArtifactoryAuth{} } +func (*ArtifactoryAuth) ProtoMessage() {} +func (*ArtifactoryAuth) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{6} +} +func (m *ArtifactoryAuth) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ArtifactoryAuth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ArtifactoryAuth) XXX_Merge(src proto.Message) { + xxx_messageInfo_ArtifactoryAuth.Merge(m, src) +} +func (m *ArtifactoryAuth) XXX_Size() int { + return m.Size() +} +func (m *ArtifactoryAuth) XXX_DiscardUnknown() { + xxx_messageInfo_ArtifactoryAuth.DiscardUnknown(m) +} + +var xxx_messageInfo_ArtifactoryAuth proto.InternalMessageInfo + +func (m *ContinueOn) Reset() { *m = ContinueOn{} } +func (*ContinueOn) ProtoMessage() {} +func (*ContinueOn) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{7} +} +func (m *ContinueOn) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ContinueOn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ContinueOn) XXX_Merge(src proto.Message) { + xxx_messageInfo_ContinueOn.Merge(m, src) +} +func (m *ContinueOn) XXX_Size() int { + return m.Size() +} +func (m *ContinueOn) XXX_DiscardUnknown() { + xxx_messageInfo_ContinueOn.DiscardUnknown(m) +} + +var xxx_messageInfo_ContinueOn proto.InternalMessageInfo + +func (m *DAGTask) Reset() { *m = DAGTask{} } +func (*DAGTask) ProtoMessage() {} +func (*DAGTask) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{8} +} +func (m *DAGTask) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DAGTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DAGTask) XXX_Merge(src proto.Message) { + xxx_messageInfo_DAGTask.Merge(m, src) +} +func (m *DAGTask) XXX_Size() int { + return m.Size() +} +func (m *DAGTask) XXX_DiscardUnknown() { + xxx_messageInfo_DAGTask.DiscardUnknown(m) +} + +var xxx_messageInfo_DAGTask proto.InternalMessageInfo + +func (m *DAGTemplate) Reset() { *m = DAGTemplate{} } +func (*DAGTemplate) ProtoMessage() {} +func (*DAGTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{9} +} +func (m *DAGTemplate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DAGTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *DAGTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_DAGTemplate.Merge(m, src) +} +func (m *DAGTemplate) XXX_Size() int { + return m.Size() +} +func (m *DAGTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_DAGTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_DAGTemplate proto.InternalMessageInfo + +func (m *ExecutorConfig) Reset() { *m = ExecutorConfig{} } +func (*ExecutorConfig) ProtoMessage() {} +func (*ExecutorConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{10} +} +func (m *ExecutorConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ExecutorConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ExecutorConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecutorConfig.Merge(m, src) +} +func (m *ExecutorConfig) XXX_Size() int { + return m.Size() +} +func (m *ExecutorConfig) XXX_DiscardUnknown() { + xxx_messageInfo_ExecutorConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_ExecutorConfig proto.InternalMessageInfo + +func (m *GitArtifact) Reset() { *m = GitArtifact{} } +func (*GitArtifact) ProtoMessage() {} +func (*GitArtifact) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{11} +} +func (m *GitArtifact) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *GitArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *GitArtifact) XXX_Merge(src proto.Message) { + xxx_messageInfo_GitArtifact.Merge(m, src) +} +func (m *GitArtifact) XXX_Size() int { + return m.Size() +} +func (m *GitArtifact) XXX_DiscardUnknown() { + xxx_messageInfo_GitArtifact.DiscardUnknown(m) +} + +var xxx_messageInfo_GitArtifact proto.InternalMessageInfo + +func (m *HDFSArtifact) Reset() { *m = HDFSArtifact{} } +func (*HDFSArtifact) ProtoMessage() {} +func (*HDFSArtifact) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{12} +} +func (m *HDFSArtifact) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HDFSArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HDFSArtifact) XXX_Merge(src proto.Message) { + xxx_messageInfo_HDFSArtifact.Merge(m, src) +} +func (m *HDFSArtifact) XXX_Size() int { + return m.Size() +} +func (m *HDFSArtifact) XXX_DiscardUnknown() { + xxx_messageInfo_HDFSArtifact.DiscardUnknown(m) +} + +var xxx_messageInfo_HDFSArtifact proto.InternalMessageInfo + +func (m *HDFSConfig) Reset() { *m = HDFSConfig{} } +func (*HDFSConfig) ProtoMessage() {} +func (*HDFSConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{13} +} +func (m *HDFSConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HDFSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HDFSConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_HDFSConfig.Merge(m, src) +} +func (m *HDFSConfig) XXX_Size() int { + return m.Size() +} +func (m *HDFSConfig) XXX_DiscardUnknown() { + xxx_messageInfo_HDFSConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_HDFSConfig proto.InternalMessageInfo + +func (m *HDFSKrbConfig) Reset() { *m = HDFSKrbConfig{} } +func (*HDFSKrbConfig) ProtoMessage() {} +func (*HDFSKrbConfig) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{14} +} +func (m *HDFSKrbConfig) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HDFSKrbConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HDFSKrbConfig) XXX_Merge(src proto.Message) { + xxx_messageInfo_HDFSKrbConfig.Merge(m, src) +} +func (m *HDFSKrbConfig) XXX_Size() int { + return m.Size() +} +func (m *HDFSKrbConfig) XXX_DiscardUnknown() { + xxx_messageInfo_HDFSKrbConfig.DiscardUnknown(m) +} + +var xxx_messageInfo_HDFSKrbConfig proto.InternalMessageInfo + +func (m *HTTPArtifact) Reset() { *m = HTTPArtifact{} } +func (*HTTPArtifact) ProtoMessage() {} +func (*HTTPArtifact) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{15} +} +func (m *HTTPArtifact) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *HTTPArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *HTTPArtifact) XXX_Merge(src proto.Message) { + xxx_messageInfo_HTTPArtifact.Merge(m, src) +} +func (m *HTTPArtifact) XXX_Size() int { + return m.Size() +} +func (m *HTTPArtifact) XXX_DiscardUnknown() { + xxx_messageInfo_HTTPArtifact.DiscardUnknown(m) +} + +var xxx_messageInfo_HTTPArtifact proto.InternalMessageInfo + +func (m *Inputs) Reset() { *m = Inputs{} } +func (*Inputs) ProtoMessage() {} +func (*Inputs) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{16} +} +func (m *Inputs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Inputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Inputs) XXX_Merge(src proto.Message) { + xxx_messageInfo_Inputs.Merge(m, src) +} +func (m *Inputs) XXX_Size() int { + return m.Size() +} +func (m *Inputs) XXX_DiscardUnknown() { + xxx_messageInfo_Inputs.DiscardUnknown(m) +} + +var xxx_messageInfo_Inputs proto.InternalMessageInfo + +func (m *Item) Reset() { *m = Item{} } +func (*Item) ProtoMessage() {} +func (*Item) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{17} +} +func (m *Item) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Item) XXX_Merge(src proto.Message) { + xxx_messageInfo_Item.Merge(m, src) +} +func (m *Item) XXX_Size() int { + return m.Size() +} +func (m *Item) XXX_DiscardUnknown() { + xxx_messageInfo_Item.DiscardUnknown(m) +} + +var xxx_messageInfo_Item proto.InternalMessageInfo + +func (m *ItemValue) Reset() { *m = ItemValue{} } +func (*ItemValue) ProtoMessage() {} +func (*ItemValue) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{18} +} +func (m *ItemValue) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ItemValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ItemValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_ItemValue.Merge(m, src) +} +func (m *ItemValue) XXX_Size() int { + return m.Size() +} +func (m *ItemValue) XXX_DiscardUnknown() { + xxx_messageInfo_ItemValue.DiscardUnknown(m) +} + +var xxx_messageInfo_ItemValue proto.InternalMessageInfo + +func (m *Metadata) Reset() { *m = Metadata{} } +func (*Metadata) ProtoMessage() {} +func (*Metadata) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{19} +} +func (m *Metadata) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Metadata) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metadata.Merge(m, src) +} +func (m *Metadata) XXX_Size() int { + return m.Size() +} +func (m *Metadata) XXX_DiscardUnknown() { + xxx_messageInfo_Metadata.DiscardUnknown(m) +} + +var xxx_messageInfo_Metadata proto.InternalMessageInfo + +func (m *NodeStatus) Reset() { *m = NodeStatus{} } +func (*NodeStatus) ProtoMessage() {} +func (*NodeStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{20} +} +func (m *NodeStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NodeStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NodeStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_NodeStatus.Merge(m, src) +} +func (m *NodeStatus) XXX_Size() int { + return m.Size() +} +func (m *NodeStatus) XXX_DiscardUnknown() { + xxx_messageInfo_NodeStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_NodeStatus proto.InternalMessageInfo + +func (m *NoneStrategy) Reset() { *m = NoneStrategy{} } +func (*NoneStrategy) ProtoMessage() {} +func (*NoneStrategy) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{21} +} +func (m *NoneStrategy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *NoneStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *NoneStrategy) XXX_Merge(src proto.Message) { + xxx_messageInfo_NoneStrategy.Merge(m, src) +} +func (m *NoneStrategy) XXX_Size() int { + return m.Size() +} +func (m *NoneStrategy) XXX_DiscardUnknown() { + xxx_messageInfo_NoneStrategy.DiscardUnknown(m) +} + +var xxx_messageInfo_NoneStrategy proto.InternalMessageInfo + +func (m *Outputs) Reset() { *m = Outputs{} } +func (*Outputs) ProtoMessage() {} +func (*Outputs) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{22} +} +func (m *Outputs) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Outputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Outputs) XXX_Merge(src proto.Message) { + xxx_messageInfo_Outputs.Merge(m, src) +} +func (m *Outputs) XXX_Size() int { + return m.Size() +} +func (m *Outputs) XXX_DiscardUnknown() { + xxx_messageInfo_Outputs.DiscardUnknown(m) +} + +var xxx_messageInfo_Outputs proto.InternalMessageInfo + +func (m *ParallelSteps) Reset() { *m = ParallelSteps{} } +func (*ParallelSteps) ProtoMessage() {} +func (*ParallelSteps) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{23} +} +func (m *ParallelSteps) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ParallelSteps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ParallelSteps) XXX_Merge(src proto.Message) { + xxx_messageInfo_ParallelSteps.Merge(m, src) +} +func (m *ParallelSteps) XXX_Size() int { + return m.Size() +} +func (m *ParallelSteps) XXX_DiscardUnknown() { + xxx_messageInfo_ParallelSteps.DiscardUnknown(m) +} + +var xxx_messageInfo_ParallelSteps proto.InternalMessageInfo + +func (m *Parameter) Reset() { *m = Parameter{} } +func (*Parameter) ProtoMessage() {} +func (*Parameter) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{24} +} +func (m *Parameter) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Parameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Parameter) XXX_Merge(src proto.Message) { + xxx_messageInfo_Parameter.Merge(m, src) +} +func (m *Parameter) XXX_Size() int { + return m.Size() +} +func (m *Parameter) XXX_DiscardUnknown() { + xxx_messageInfo_Parameter.DiscardUnknown(m) +} + +var xxx_messageInfo_Parameter proto.InternalMessageInfo + +func (m *PodGC) Reset() { *m = PodGC{} } +func (*PodGC) ProtoMessage() {} +func (*PodGC) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{25} +} +func (m *PodGC) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *PodGC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *PodGC) XXX_Merge(src proto.Message) { + xxx_messageInfo_PodGC.Merge(m, src) +} +func (m *PodGC) XXX_Size() int { + return m.Size() +} +func (m *PodGC) XXX_DiscardUnknown() { + xxx_messageInfo_PodGC.DiscardUnknown(m) +} + +var xxx_messageInfo_PodGC proto.InternalMessageInfo + +func (m *RawArtifact) Reset() { *m = RawArtifact{} } +func (*RawArtifact) ProtoMessage() {} +func (*RawArtifact) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{26} +} +func (m *RawArtifact) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RawArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *RawArtifact) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawArtifact.Merge(m, src) +} +func (m *RawArtifact) XXX_Size() int { + return m.Size() +} +func (m *RawArtifact) XXX_DiscardUnknown() { + xxx_messageInfo_RawArtifact.DiscardUnknown(m) +} + +var xxx_messageInfo_RawArtifact proto.InternalMessageInfo + +func (m *ResourceTemplate) Reset() { *m = ResourceTemplate{} } +func (*ResourceTemplate) ProtoMessage() {} +func (*ResourceTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{27} +} +func (m *ResourceTemplate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ResourceTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ResourceTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ResourceTemplate.Merge(m, src) +} +func (m *ResourceTemplate) XXX_Size() int { + return m.Size() +} +func (m *ResourceTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_ResourceTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_ResourceTemplate proto.InternalMessageInfo + +func (m *RetryStrategy) Reset() { *m = RetryStrategy{} } +func (*RetryStrategy) ProtoMessage() {} +func (*RetryStrategy) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{28} +} +func (m *RetryStrategy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RetryStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *RetryStrategy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetryStrategy.Merge(m, src) +} +func (m *RetryStrategy) XXX_Size() int { + return m.Size() +} +func (m *RetryStrategy) XXX_DiscardUnknown() { + xxx_messageInfo_RetryStrategy.DiscardUnknown(m) +} + +var xxx_messageInfo_RetryStrategy proto.InternalMessageInfo + +func (m *S3Artifact) Reset() { *m = S3Artifact{} } +func (*S3Artifact) ProtoMessage() {} +func (*S3Artifact) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{29} +} +func (m *S3Artifact) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *S3Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *S3Artifact) XXX_Merge(src proto.Message) { + xxx_messageInfo_S3Artifact.Merge(m, src) +} +func (m *S3Artifact) XXX_Size() int { + return m.Size() +} +func (m *S3Artifact) XXX_DiscardUnknown() { + xxx_messageInfo_S3Artifact.DiscardUnknown(m) +} + +var xxx_messageInfo_S3Artifact proto.InternalMessageInfo + +func (m *S3Bucket) Reset() { *m = S3Bucket{} } +func (*S3Bucket) ProtoMessage() {} +func (*S3Bucket) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{30} +} +func (m *S3Bucket) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *S3Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *S3Bucket) XXX_Merge(src proto.Message) { + xxx_messageInfo_S3Bucket.Merge(m, src) +} +func (m *S3Bucket) XXX_Size() int { + return m.Size() +} +func (m *S3Bucket) XXX_DiscardUnknown() { + xxx_messageInfo_S3Bucket.DiscardUnknown(m) +} + +var xxx_messageInfo_S3Bucket proto.InternalMessageInfo + +func (m *ScriptTemplate) Reset() { *m = ScriptTemplate{} } +func (*ScriptTemplate) ProtoMessage() {} +func (*ScriptTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{31} +} +func (m *ScriptTemplate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ScriptTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ScriptTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_ScriptTemplate.Merge(m, src) +} +func (m *ScriptTemplate) XXX_Size() int { + return m.Size() +} +func (m *ScriptTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_ScriptTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_ScriptTemplate proto.InternalMessageInfo + +func (m *Sequence) Reset() { *m = Sequence{} } +func (*Sequence) ProtoMessage() {} +func (*Sequence) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{32} +} +func (m *Sequence) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Sequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Sequence) XXX_Merge(src proto.Message) { + xxx_messageInfo_Sequence.Merge(m, src) +} +func (m *Sequence) XXX_Size() int { + return m.Size() +} +func (m *Sequence) XXX_DiscardUnknown() { + xxx_messageInfo_Sequence.DiscardUnknown(m) +} + +var xxx_messageInfo_Sequence proto.InternalMessageInfo + +func (m *SuspendTemplate) Reset() { *m = SuspendTemplate{} } +func (*SuspendTemplate) ProtoMessage() {} +func (*SuspendTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{33} +} +func (m *SuspendTemplate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *SuspendTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *SuspendTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_SuspendTemplate.Merge(m, src) +} +func (m *SuspendTemplate) XXX_Size() int { + return m.Size() +} +func (m *SuspendTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_SuspendTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_SuspendTemplate proto.InternalMessageInfo + +func (m *TarStrategy) Reset() { *m = TarStrategy{} } +func (*TarStrategy) ProtoMessage() {} +func (*TarStrategy) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{34} +} +func (m *TarStrategy) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TarStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TarStrategy) XXX_Merge(src proto.Message) { + xxx_messageInfo_TarStrategy.Merge(m, src) +} +func (m *TarStrategy) XXX_Size() int { + return m.Size() +} +func (m *TarStrategy) XXX_DiscardUnknown() { + xxx_messageInfo_TarStrategy.DiscardUnknown(m) +} + +var xxx_messageInfo_TarStrategy proto.InternalMessageInfo + +func (m *Template) Reset() { *m = Template{} } +func (*Template) ProtoMessage() {} +func (*Template) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{35} +} +func (m *Template) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Template) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Template) XXX_Merge(src proto.Message) { + xxx_messageInfo_Template.Merge(m, src) +} +func (m *Template) XXX_Size() int { + return m.Size() +} +func (m *Template) XXX_DiscardUnknown() { + xxx_messageInfo_Template.DiscardUnknown(m) +} + +var xxx_messageInfo_Template proto.InternalMessageInfo + +func (m *TemplateRef) Reset() { *m = TemplateRef{} } +func (*TemplateRef) ProtoMessage() {} +func (*TemplateRef) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{36} +} +func (m *TemplateRef) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *TemplateRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *TemplateRef) XXX_Merge(src proto.Message) { + xxx_messageInfo_TemplateRef.Merge(m, src) +} +func (m *TemplateRef) XXX_Size() int { + return m.Size() +} +func (m *TemplateRef) XXX_DiscardUnknown() { + xxx_messageInfo_TemplateRef.DiscardUnknown(m) +} + +var xxx_messageInfo_TemplateRef proto.InternalMessageInfo + +func (m *UserContainer) Reset() { *m = UserContainer{} } +func (*UserContainer) ProtoMessage() {} +func (*UserContainer) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{37} +} +func (m *UserContainer) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *UserContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *UserContainer) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserContainer.Merge(m, src) +} +func (m *UserContainer) XXX_Size() int { + return m.Size() +} +func (m *UserContainer) XXX_DiscardUnknown() { + xxx_messageInfo_UserContainer.DiscardUnknown(m) +} + +var xxx_messageInfo_UserContainer proto.InternalMessageInfo + +func (m *ValueFrom) Reset() { *m = ValueFrom{} } +func (*ValueFrom) ProtoMessage() {} +func (*ValueFrom) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{38} +} +func (m *ValueFrom) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ValueFrom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *ValueFrom) XXX_Merge(src proto.Message) { + xxx_messageInfo_ValueFrom.Merge(m, src) +} +func (m *ValueFrom) XXX_Size() int { + return m.Size() +} +func (m *ValueFrom) XXX_DiscardUnknown() { + xxx_messageInfo_ValueFrom.DiscardUnknown(m) +} + +var xxx_messageInfo_ValueFrom proto.InternalMessageInfo + +func (m *Workflow) Reset() { *m = Workflow{} } +func (*Workflow) ProtoMessage() {} +func (*Workflow) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{39} +} +func (m *Workflow) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *Workflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *Workflow) XXX_Merge(src proto.Message) { + xxx_messageInfo_Workflow.Merge(m, src) +} +func (m *Workflow) XXX_Size() int { + return m.Size() +} +func (m *Workflow) XXX_DiscardUnknown() { + xxx_messageInfo_Workflow.DiscardUnknown(m) +} + +var xxx_messageInfo_Workflow proto.InternalMessageInfo + +func (m *WorkflowList) Reset() { *m = WorkflowList{} } +func (*WorkflowList) ProtoMessage() {} +func (*WorkflowList) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{40} +} +func (m *WorkflowList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkflowList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkflowList) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowList.Merge(m, src) +} +func (m *WorkflowList) XXX_Size() int { + return m.Size() +} +func (m *WorkflowList) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowList.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowList proto.InternalMessageInfo + +func (m *WorkflowSpec) Reset() { *m = WorkflowSpec{} } +func (*WorkflowSpec) ProtoMessage() {} +func (*WorkflowSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{41} +} +func (m *WorkflowSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkflowSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkflowSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowSpec.Merge(m, src) +} +func (m *WorkflowSpec) XXX_Size() int { + return m.Size() +} +func (m *WorkflowSpec) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowSpec proto.InternalMessageInfo + +func (m *WorkflowStatus) Reset() { *m = WorkflowStatus{} } +func (*WorkflowStatus) ProtoMessage() {} +func (*WorkflowStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{42} +} +func (m *WorkflowStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkflowStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkflowStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowStatus.Merge(m, src) +} +func (m *WorkflowStatus) XXX_Size() int { + return m.Size() +} +func (m *WorkflowStatus) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowStatus proto.InternalMessageInfo + +func (m *WorkflowStep) Reset() { *m = WorkflowStep{} } +func (*WorkflowStep) ProtoMessage() {} +func (*WorkflowStep) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{43} +} +func (m *WorkflowStep) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkflowStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkflowStep) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowStep.Merge(m, src) +} +func (m *WorkflowStep) XXX_Size() int { + return m.Size() +} +func (m *WorkflowStep) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowStep.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowStep proto.InternalMessageInfo + +func (m *WorkflowTemplate) Reset() { *m = WorkflowTemplate{} } +func (*WorkflowTemplate) ProtoMessage() {} +func (*WorkflowTemplate) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{44} +} +func (m *WorkflowTemplate) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkflowTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkflowTemplate) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowTemplate.Merge(m, src) +} +func (m *WorkflowTemplate) XXX_Size() int { + return m.Size() +} +func (m *WorkflowTemplate) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowTemplate.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowTemplate proto.InternalMessageInfo + +func (m *WorkflowTemplateList) Reset() { *m = WorkflowTemplateList{} } +func (*WorkflowTemplateList) ProtoMessage() {} +func (*WorkflowTemplateList) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{45} +} +func (m *WorkflowTemplateList) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkflowTemplateList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkflowTemplateList) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowTemplateList.Merge(m, src) +} +func (m *WorkflowTemplateList) XXX_Size() int { + return m.Size() +} +func (m *WorkflowTemplateList) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowTemplateList.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowTemplateList proto.InternalMessageInfo + +func (m *WorkflowTemplateSpec) Reset() { *m = WorkflowTemplateSpec{} } +func (*WorkflowTemplateSpec) ProtoMessage() {} +func (*WorkflowTemplateSpec) Descriptor() ([]byte, []int) { + return fileDescriptor_c23edafa7e7ea072, []int{46} +} +func (m *WorkflowTemplateSpec) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *WorkflowTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *WorkflowTemplateSpec) XXX_Merge(src proto.Message) { + xxx_messageInfo_WorkflowTemplateSpec.Merge(m, src) +} +func (m *WorkflowTemplateSpec) XXX_Size() int { + return m.Size() +} +func (m *WorkflowTemplateSpec) XXX_DiscardUnknown() { + xxx_messageInfo_WorkflowTemplateSpec.DiscardUnknown(m) +} + +var xxx_messageInfo_WorkflowTemplateSpec proto.InternalMessageInfo + +func init() { + proto.RegisterType((*ArchiveStrategy)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ArchiveStrategy") + proto.RegisterType((*Arguments)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Arguments") + proto.RegisterType((*Artifact)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Artifact") + proto.RegisterType((*ArtifactLocation)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ArtifactLocation") + proto.RegisterType((*ArtifactRepositoryRef)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ArtifactRepositoryRef") + proto.RegisterType((*ArtifactoryArtifact)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ArtifactoryArtifact") + proto.RegisterType((*ArtifactoryAuth)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ArtifactoryAuth") + proto.RegisterType((*ContinueOn)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ContinueOn") + proto.RegisterType((*DAGTask)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.DAGTask") + proto.RegisterType((*DAGTemplate)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.DAGTemplate") + proto.RegisterType((*ExecutorConfig)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ExecutorConfig") + proto.RegisterType((*GitArtifact)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.GitArtifact") + proto.RegisterType((*HDFSArtifact)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.HDFSArtifact") + proto.RegisterType((*HDFSConfig)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.HDFSConfig") + proto.RegisterType((*HDFSKrbConfig)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.HDFSKrbConfig") + proto.RegisterType((*HTTPArtifact)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.HTTPArtifact") + proto.RegisterType((*Inputs)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Inputs") + proto.RegisterType((*Item)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Item") + proto.RegisterMapType((map[string]ItemValue)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Item.MapValEntry") + proto.RegisterType((*ItemValue)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ItemValue") + proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ItemValue.MapValEntry") + proto.RegisterType((*Metadata)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Metadata") + proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Metadata.AnnotationsEntry") + proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Metadata.LabelsEntry") + proto.RegisterType((*NodeStatus)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.NodeStatus") + proto.RegisterType((*NoneStrategy)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.NoneStrategy") + proto.RegisterType((*Outputs)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Outputs") + proto.RegisterType((*ParallelSteps)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ParallelSteps") + proto.RegisterType((*Parameter)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Parameter") + proto.RegisterType((*PodGC)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.PodGC") + proto.RegisterType((*RawArtifact)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.RawArtifact") + proto.RegisterType((*ResourceTemplate)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ResourceTemplate") + proto.RegisterType((*RetryStrategy)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.RetryStrategy") + proto.RegisterType((*S3Artifact)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.S3Artifact") + proto.RegisterType((*S3Bucket)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.S3Bucket") + proto.RegisterType((*ScriptTemplate)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ScriptTemplate") + proto.RegisterType((*Sequence)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Sequence") + proto.RegisterType((*SuspendTemplate)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.SuspendTemplate") + proto.RegisterType((*TarStrategy)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.TarStrategy") + proto.RegisterType((*Template)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Template") + proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Template.NodeSelectorEntry") + proto.RegisterType((*TemplateRef)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.TemplateRef") + proto.RegisterType((*UserContainer)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.UserContainer") + proto.RegisterType((*ValueFrom)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.ValueFrom") + proto.RegisterType((*Workflow)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.Workflow") + proto.RegisterType((*WorkflowList)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowList") + proto.RegisterType((*WorkflowSpec)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowSpec") + proto.RegisterMapType((map[string]string)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowSpec.NodeSelectorEntry") + proto.RegisterType((*WorkflowStatus)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowStatus") + proto.RegisterMapType((map[string]NodeStatus)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowStatus.NodesEntry") + proto.RegisterMapType((map[string]Template)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowStatus.StoredTemplatesEntry") + proto.RegisterType((*WorkflowStep)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowStep") + proto.RegisterType((*WorkflowTemplate)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowTemplate") + proto.RegisterType((*WorkflowTemplateList)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowTemplateList") + proto.RegisterType((*WorkflowTemplateSpec)(nil), "github.com.argoproj.argo.pkg.apis.workflow.v1alpha1.WorkflowTemplateSpec") +} + +func init() { + proto.RegisterFile("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1/generated.proto", fileDescriptor_c23edafa7e7ea072) +} + +var fileDescriptor_c23edafa7e7ea072 = []byte{ + // 4659 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x7c, 0x4d, 0x6c, 0x1c, 0x47, + 0x76, 0xbf, 0x86, 0xe4, 0x0c, 0x67, 0xde, 0xf0, 0x4b, 0x25, 0xc9, 0x6a, 0xd3, 0x32, 0x47, 0xdb, + 0x86, 0xfd, 0xd7, 0xfe, 0x63, 0x0f, 0x6d, 0x69, 0x37, 0xf1, 0x7a, 0x63, 0x7b, 0x39, 0xfc, 0x90, + 0xa8, 0x0f, 0x8a, 0x79, 0x43, 0xc9, 0xd9, 0x78, 0x91, 0x4d, 0xb3, 0xa7, 0x38, 0xd3, 0x9a, 0x99, + 0xee, 0x76, 0x57, 0x0f, 0x69, 0xc2, 0x87, 0x38, 0x41, 0x82, 0x24, 0x08, 0x16, 0x48, 0x2e, 0xc9, + 0x22, 0x7b, 0x09, 0x72, 0x48, 0x2e, 0xb9, 0xe4, 0x1a, 0x04, 0x1b, 0x20, 0xc8, 0xc1, 0xc8, 0x25, + 0xbe, 0xc5, 0x87, 0x80, 0x58, 0x33, 0x97, 0x04, 0x09, 0x10, 0x20, 0x97, 0x00, 0x3a, 0x05, 0xf5, + 0xd1, 0xd5, 0x1f, 0xd3, 0xb4, 0xa8, 0x19, 0x4a, 0x41, 0xb0, 0x7b, 0x12, 0xfb, 0xbd, 0x57, 0xbf, + 0x57, 0x1f, 0xaf, 0x5e, 0xbd, 0xf7, 0xaa, 0x46, 0xb0, 0xda, 0x76, 0xc2, 0xce, 0x60, 0xb7, 0x6e, + 0x7b, 0xfd, 0x65, 0x2b, 0x68, 0x7b, 0x7e, 0xe0, 0x3d, 0x12, 0x7f, 0x2c, 0xfb, 0xdd, 0xf6, 0xb2, + 0xe5, 0x3b, 0x6c, 0xf9, 0xc0, 0x0b, 0xba, 0x7b, 0x3d, 0xef, 0x60, 0x79, 0xff, 0x2d, 0xab, 0xe7, + 0x77, 0xac, 0xb7, 0x96, 0xdb, 0xd4, 0xa5, 0x81, 0x15, 0xd2, 0x56, 0xdd, 0x0f, 0xbc, 0xd0, 0x23, + 0x37, 0x62, 0x90, 0x7a, 0x04, 0x22, 0xfe, 0xa8, 0xfb, 0xdd, 0x76, 0x9d, 0x83, 0xd4, 0x23, 0x90, + 0x7a, 0x04, 0xb2, 0xf8, 0x46, 0x42, 0x73, 0xdb, 0xe3, 0x0a, 0x39, 0xd6, 0xee, 0x60, 0x4f, 0x7c, + 0x89, 0x0f, 0xf1, 0x97, 0xd4, 0xb1, 0x68, 0x76, 0xdf, 0x66, 0x75, 0xc7, 0xe3, 0x5d, 0x5a, 0xb6, + 0xbd, 0x80, 0x2e, 0xef, 0x0f, 0xf5, 0x63, 0xf1, 0x1b, 0xb1, 0x4c, 0xdf, 0xb2, 0x3b, 0x8e, 0x4b, + 0x83, 0xc3, 0x78, 0x1c, 0x7d, 0x1a, 0x5a, 0x79, 0xad, 0x96, 0x4f, 0x6a, 0x15, 0x0c, 0xdc, 0xd0, + 0xe9, 0xd3, 0xa1, 0x06, 0x3f, 0xff, 0xa4, 0x06, 0xcc, 0xee, 0xd0, 0xbe, 0x95, 0x6d, 0x67, 0xfe, + 0x63, 0x01, 0xe6, 0x57, 0x02, 0xbb, 0xe3, 0xec, 0xd3, 0x66, 0xc8, 0x19, 0xed, 0x43, 0xf2, 0x21, + 0x4c, 0x86, 0x56, 0x60, 0x14, 0xae, 0x16, 0xae, 0x55, 0xaf, 0x7f, 0xa7, 0x3e, 0xc2, 0x44, 0xd6, + 0x77, 0xac, 0x20, 0x82, 0x6b, 0x4c, 0x1f, 0x1f, 0xd5, 0x26, 0x77, 0xac, 0x00, 0x39, 0x2a, 0xf9, + 0x3e, 0x4c, 0xb9, 0x9e, 0x4b, 0x8d, 0x09, 0x81, 0xbe, 0x32, 0x12, 0xfa, 0x96, 0xe7, 0xea, 0xde, + 0x36, 0xca, 0xc7, 0x47, 0xb5, 0x29, 0x4e, 0x41, 0x01, 0x6c, 0xfe, 0x67, 0x01, 0x2a, 0x2b, 0x41, + 0x7b, 0xd0, 0xa7, 0x6e, 0xc8, 0x48, 0x00, 0xe0, 0x5b, 0x81, 0xd5, 0xa7, 0x21, 0x0d, 0x98, 0x51, + 0xb8, 0x3a, 0x79, 0xad, 0x7a, 0xfd, 0xbd, 0x91, 0x94, 0x6e, 0x47, 0x30, 0x0d, 0xf2, 0xd9, 0x51, + 0xed, 0xdc, 0xf1, 0x51, 0x0d, 0x34, 0x89, 0x61, 0x42, 0x0b, 0x71, 0xa1, 0x62, 0x05, 0xa1, 0xb3, + 0x67, 0xd9, 0x21, 0x33, 0x26, 0x84, 0xca, 0x77, 0x47, 0x52, 0xb9, 0xa2, 0x50, 0x1a, 0xe7, 0x95, + 0xc6, 0x4a, 0x44, 0x61, 0x18, 0xab, 0x30, 0xff, 0x7d, 0x12, 0xca, 0x11, 0x83, 0x5c, 0x85, 0x29, + 0xd7, 0xea, 0x53, 0xb1, 0x7a, 0x95, 0xc6, 0x8c, 0x6a, 0x38, 0xb5, 0x65, 0xf5, 0xf9, 0x04, 0x59, + 0x7d, 0xca, 0x25, 0x7c, 0x2b, 0xec, 0x88, 0x15, 0x48, 0x48, 0x6c, 0x5b, 0x61, 0x07, 0x05, 0x87, + 0x5c, 0x81, 0xa9, 0xbe, 0xd7, 0xa2, 0xc6, 0xe4, 0xd5, 0xc2, 0xb5, 0xa2, 0x9c, 0xe0, 0x7b, 0x5e, + 0x8b, 0xa2, 0xa0, 0xf2, 0xf6, 0x7b, 0x81, 0xd7, 0x37, 0xa6, 0xd2, 0xed, 0x37, 0x02, 0xaf, 0x8f, + 0x82, 0x43, 0x7e, 0xbf, 0x00, 0x0b, 0x51, 0xf7, 0xee, 0x7a, 0xb6, 0x15, 0x3a, 0x9e, 0x6b, 0x14, + 0xc5, 0x82, 0xaf, 0x8f, 0x35, 0x11, 0x11, 0x58, 0xc3, 0x50, 0x5a, 0x17, 0xb2, 0x1c, 0x1c, 0x52, + 0x4c, 0xae, 0x03, 0xb4, 0x7b, 0xde, 0xae, 0xd5, 0xe3, 0x73, 0x60, 0x94, 0x44, 0xaf, 0xf5, 0x12, + 0xde, 0xd4, 0x1c, 0x4c, 0x48, 0x91, 0x2e, 0x4c, 0x5b, 0x72, 0x57, 0x18, 0xd3, 0xa2, 0xdf, 0x6b, + 0x23, 0xf6, 0x3b, 0xb5, 0xb3, 0x1a, 0xd5, 0xe3, 0xa3, 0xda, 0xb4, 0x22, 0x62, 0xa4, 0x81, 0xbc, + 0x0e, 0x65, 0xcf, 0xe7, 0x5d, 0xb5, 0x7a, 0x46, 0xf9, 0x6a, 0xe1, 0x5a, 0xb9, 0xb1, 0xa0, 0xba, + 0x57, 0xbe, 0xaf, 0xe8, 0xa8, 0x25, 0xcc, 0x3f, 0x2e, 0xc2, 0xd0, 0xa8, 0xc9, 0x5b, 0x50, 0x55, + 0x68, 0x77, 0xbd, 0x36, 0x13, 0x8b, 0x5f, 0x6e, 0xcc, 0x1f, 0x1f, 0xd5, 0xaa, 0x2b, 0x31, 0x19, + 0x93, 0x32, 0xe4, 0x03, 0x98, 0x60, 0x37, 0xd4, 0x36, 0x7c, 0x7f, 0xa4, 0xd1, 0x35, 0x6f, 0x68, + 0x03, 0x2d, 0x1d, 0x1f, 0xd5, 0x26, 0x9a, 0x37, 0x70, 0x82, 0xdd, 0xe0, 0xee, 0xa3, 0xed, 0x84, + 0xc2, 0x78, 0x46, 0x75, 0x1f, 0x37, 0x9d, 0x50, 0x43, 0x0b, 0xf7, 0x71, 0xd3, 0x09, 0x91, 0xa3, + 0x72, 0xf7, 0xd1, 0x09, 0x43, 0x5f, 0x18, 0xdf, 0xa8, 0xee, 0xe3, 0xd6, 0xce, 0xce, 0xb6, 0x86, + 0x17, 0xd6, 0xcd, 0x29, 0x28, 0x80, 0xc9, 0x27, 0x7c, 0x26, 0x25, 0xcf, 0x0b, 0x0e, 0x95, 0xd5, + 0xde, 0x1a, 0xcb, 0x6a, 0xbd, 0xe0, 0x50, 0xab, 0x53, 0x6b, 0xa2, 0x19, 0x98, 0xd4, 0x26, 0x46, + 0xd7, 0xda, 0x63, 0xc2, 0x48, 0x47, 0x1e, 0xdd, 0xda, 0x46, 0x33, 0x33, 0xba, 0xb5, 0x8d, 0x26, + 0x0a, 0x60, 0xbe, 0x36, 0x81, 0x75, 0xa0, 0x6c, 0x7a, 0xb4, 0xb5, 0x41, 0xeb, 0x20, 0xbd, 0x36, + 0x68, 0x1d, 0x20, 0x47, 0x35, 0xdb, 0x70, 0x29, 0xe2, 0x20, 0xf5, 0x3d, 0xe6, 0x88, 0x01, 0xd2, + 0x3d, 0xb2, 0x0c, 0x15, 0xdb, 0x73, 0xf7, 0x9c, 0xf6, 0x3d, 0xcb, 0x57, 0x8e, 0x49, 0x7b, 0xb4, + 0xd5, 0x88, 0x81, 0xb1, 0x0c, 0x79, 0x19, 0x26, 0xbb, 0xf4, 0x50, 0x79, 0xa8, 0xaa, 0x12, 0x9d, + 0xbc, 0x43, 0x0f, 0x91, 0xd3, 0xcd, 0x1f, 0x17, 0xe0, 0x42, 0xce, 0xe4, 0xf2, 0x66, 0x83, 0xa0, + 0xa7, 0x34, 0xe8, 0x66, 0x0f, 0xf0, 0x2e, 0x72, 0x3a, 0xf9, 0x9d, 0x02, 0xcc, 0x27, 0x66, 0x7b, + 0x65, 0xa0, 0x9c, 0xe0, 0xe8, 0xbb, 0x3b, 0x85, 0xd5, 0xb8, 0xac, 0x34, 0xce, 0x67, 0x18, 0x98, + 0xd5, 0x6a, 0xfe, 0x93, 0x38, 0x75, 0x53, 0x34, 0x62, 0xc1, 0xdc, 0x80, 0xd1, 0x80, 0xbb, 0xe8, + 0x26, 0xb5, 0x03, 0x1a, 0xaa, 0x03, 0xf8, 0xd5, 0xba, 0x3c, 0xda, 0x79, 0x2f, 0xea, 0x3c, 0xca, + 0xa8, 0xef, 0xbf, 0x55, 0x97, 0x12, 0x77, 0xe8, 0x61, 0x93, 0xf6, 0x28, 0xc7, 0x68, 0x90, 0xe3, + 0xa3, 0xda, 0xdc, 0x83, 0x14, 0x00, 0x66, 0x00, 0xb9, 0x0a, 0xdf, 0x62, 0xec, 0xc0, 0x0b, 0x5a, + 0x4a, 0xc5, 0xc4, 0x53, 0xab, 0xd8, 0x4e, 0x01, 0x60, 0x06, 0xd0, 0xfc, 0x2e, 0xc0, 0xaa, 0xe7, + 0x86, 0x8e, 0x3b, 0xa0, 0xf7, 0x5d, 0xf2, 0x0a, 0x14, 0x69, 0x10, 0x78, 0x81, 0x72, 0x48, 0xb3, + 0x6a, 0x82, 0x8a, 0xeb, 0x9c, 0x88, 0x92, 0x47, 0x5e, 0x83, 0xd2, 0x9e, 0xe5, 0xf4, 0x68, 0x4b, + 0xf4, 0xa6, 0xdc, 0x98, 0x53, 0x52, 0xa5, 0x0d, 0x41, 0x45, 0xc5, 0x35, 0xff, 0xa4, 0x04, 0xd3, + 0x6b, 0x2b, 0x37, 0x77, 0x2c, 0xd6, 0x3d, 0xc5, 0x29, 0xf7, 0x3a, 0x94, 0x43, 0xda, 0xf7, 0x7b, + 0x56, 0x48, 0x95, 0x1d, 0x69, 0xa7, 0xba, 0xa3, 0xe8, 0xa8, 0x25, 0x88, 0xc7, 0x8f, 0x6c, 0x15, + 0x33, 0x28, 0xcf, 0xf5, 0xde, 0x88, 0x36, 0xa1, 0x50, 0x92, 0x67, 0xb6, 0x22, 0x61, 0xac, 0x83, + 0x30, 0xa8, 0x46, 0xca, 0x91, 0xee, 0x29, 0x77, 0x36, 0x62, 0xac, 0x15, 0xe3, 0x48, 0xf7, 0x92, + 0x20, 0x60, 0x52, 0x0b, 0xf9, 0x06, 0xcc, 0xb4, 0xa8, 0x4f, 0xdd, 0x16, 0x75, 0x6d, 0x87, 0x32, + 0xa3, 0x78, 0x75, 0x92, 0xcf, 0xcb, 0xf1, 0x51, 0x6d, 0x66, 0x2d, 0x41, 0xc7, 0x94, 0x14, 0x79, + 0x04, 0x95, 0x03, 0x27, 0xec, 0x6c, 0x86, 0xb4, 0xcf, 0x3d, 0x13, 0x0f, 0x67, 0xbe, 0x35, 0x52, + 0x47, 0x39, 0x42, 0x3c, 0x2d, 0x1f, 0x44, 0x98, 0x18, 0xc3, 0x73, 0x4f, 0xc1, 0x3f, 0x44, 0x60, + 0x25, 0xbc, 0x54, 0x25, 0xdd, 0x40, 0x30, 0x30, 0x96, 0x21, 0x0c, 0x66, 0xf8, 0x47, 0x93, 0x7e, + 0x34, 0xa0, 0xae, 0x4d, 0xc5, 0xf9, 0x39, 0x6a, 0xb8, 0x15, 0x81, 0xc8, 0x19, 0xf9, 0x20, 0x01, + 0x8b, 0x29, 0x25, 0xdc, 0xfa, 0x0e, 0x3a, 0xd4, 0x35, 0x2a, 0x69, 0xeb, 0xfb, 0xa0, 0x43, 0x5d, + 0x14, 0x1c, 0xe2, 0x01, 0xd8, 0x7a, 0x1b, 0x18, 0x30, 0xc6, 0x21, 0x1b, 0xef, 0xa6, 0xc6, 0x1c, + 0x0f, 0x58, 0xe2, 0x6f, 0x4c, 0xa8, 0x30, 0xff, 0xae, 0x00, 0x55, 0xbe, 0x39, 0x22, 0x83, 0x7e, + 0x0d, 0x4a, 0xa1, 0x15, 0xb4, 0x95, 0x17, 0xa9, 0xc4, 0x9b, 0x6a, 0x47, 0x50, 0x51, 0x71, 0x89, + 0x05, 0xc5, 0xd0, 0x62, 0xdd, 0x28, 0x4e, 0xfd, 0xc5, 0x91, 0xfa, 0xa8, 0x76, 0x65, 0xbc, 0xbf, + 0xf9, 0x17, 0x43, 0x89, 0x4c, 0xae, 0x41, 0x99, 0xef, 0xe0, 0x0d, 0x8b, 0xc9, 0xa0, 0xa0, 0xdc, + 0x98, 0xe1, 0xbb, 0x70, 0x43, 0xd1, 0x50, 0x73, 0xcd, 0xef, 0xc1, 0xdc, 0xfa, 0xc7, 0xd4, 0x1e, + 0x84, 0x5e, 0x20, 0x8f, 0x05, 0x72, 0x1b, 0x08, 0xa3, 0xc1, 0xbe, 0x63, 0xd3, 0x15, 0xdb, 0xf6, + 0x06, 0x6e, 0xb8, 0x15, 0xef, 0xfa, 0x45, 0xa5, 0x8d, 0x34, 0x87, 0x24, 0x30, 0xa7, 0x95, 0xf9, + 0x97, 0x53, 0x50, 0x4d, 0x04, 0x16, 0x7c, 0x15, 0x03, 0xea, 0x7b, 0x59, 0x1f, 0xc2, 0x8f, 0x2e, + 0x14, 0x1c, 0xee, 0x43, 0x02, 0xba, 0xef, 0x30, 0x1e, 0xbe, 0x66, 0x7c, 0x08, 0x2a, 0x3a, 0x6a, + 0x09, 0x52, 0x83, 0x62, 0x8b, 0xfa, 0x61, 0x47, 0x0c, 0x72, 0xaa, 0x51, 0xe1, 0x13, 0xb1, 0xc6, + 0x09, 0x28, 0xe9, 0x5c, 0x60, 0x8f, 0x86, 0x76, 0xc7, 0x98, 0x12, 0xfb, 0x4e, 0x08, 0x6c, 0x70, + 0x02, 0x4a, 0x7a, 0xce, 0x11, 0x50, 0x7c, 0xf6, 0x47, 0x40, 0xe9, 0x8c, 0x8f, 0x00, 0xe2, 0xc3, + 0x05, 0xc6, 0x3a, 0xdb, 0x81, 0xb3, 0x6f, 0x85, 0x54, 0x34, 0x16, 0x7a, 0xa6, 0x9f, 0x46, 0xcf, + 0xe5, 0xe3, 0xa3, 0xda, 0x85, 0x66, 0xf3, 0x56, 0x16, 0x05, 0xf3, 0xa0, 0x49, 0x13, 0x2e, 0x39, + 0x2e, 0xa3, 0xf6, 0x20, 0xa0, 0x9b, 0x6d, 0xd7, 0x0b, 0xe8, 0x2d, 0x8f, 0x71, 0x38, 0x15, 0x4d, + 0xbf, 0xac, 0x16, 0xed, 0xd2, 0x66, 0x9e, 0x10, 0xe6, 0xb7, 0x35, 0xff, 0xa1, 0x00, 0x33, 0xc9, + 0x58, 0x8a, 0x30, 0x80, 0xce, 0xda, 0x46, 0x53, 0x5a, 0xa6, 0x3a, 0x9c, 0xdf, 0x1f, 0x39, 0x44, + 0x93, 0x30, 0x71, 0x22, 0x12, 0xd3, 0x30, 0xa1, 0xe6, 0x14, 0xc9, 0xda, 0x2b, 0x50, 0xdc, 0xf3, + 0x02, 0x9b, 0xaa, 0xbd, 0xa5, 0xf7, 0xe0, 0x06, 0x27, 0xa2, 0xe4, 0x99, 0xff, 0x5a, 0x80, 0x84, + 0x06, 0xf2, 0xeb, 0x30, 0xcb, 0x75, 0xdc, 0x09, 0x76, 0x53, 0xa3, 0x69, 0x8c, 0x3c, 0x1a, 0x8d, + 0xd4, 0xb8, 0xa4, 0xf4, 0xcf, 0xa6, 0xc8, 0x98, 0xd6, 0x47, 0x7e, 0x0e, 0x2a, 0x56, 0xab, 0x15, + 0x50, 0xc6, 0xa8, 0x74, 0x3d, 0x95, 0xc6, 0xac, 0x38, 0x2b, 0x23, 0x22, 0xc6, 0x7c, 0xbe, 0x0d, + 0x79, 0xf0, 0xca, 0x2d, 0x5b, 0x0c, 0x32, 0xb1, 0x0d, 0xb9, 0x12, 0x4e, 0x47, 0x2d, 0x61, 0xfe, + 0x60, 0x0a, 0xd2, 0xba, 0x49, 0x0b, 0xe6, 0xbb, 0xc1, 0xee, 0xea, 0xaa, 0x65, 0x77, 0x46, 0x0a, + 0xad, 0x2e, 0xf0, 0x98, 0xee, 0x4e, 0x1a, 0x01, 0xb3, 0x90, 0x4a, 0xcb, 0x1d, 0x7a, 0x18, 0x5a, + 0xbb, 0xa3, 0x44, 0x57, 0x91, 0x96, 0x24, 0x02, 0x66, 0x21, 0xc9, 0x37, 0xa1, 0xda, 0x0d, 0x76, + 0xa3, 0x4d, 0xae, 0xa6, 0xe3, 0x82, 0x9a, 0x8e, 0xea, 0x9d, 0x98, 0x85, 0x49, 0x39, 0x3e, 0x85, + 0xdd, 0x60, 0x17, 0xa9, 0xd5, 0x8b, 0xf2, 0x76, 0x3d, 0x85, 0x77, 0x14, 0x1d, 0xb5, 0x04, 0xf1, + 0x81, 0x74, 0xa3, 0xd9, 0xd3, 0xf1, 0xb9, 0xf2, 0x45, 0xd7, 0xf2, 0x46, 0xa3, 0x85, 0x92, 0x03, + 0x7a, 0x81, 0xfb, 0xe6, 0x3b, 0x43, 0x38, 0x98, 0x83, 0x4d, 0xbe, 0x0b, 0x97, 0xbb, 0xc1, 0xae, + 0x72, 0xe4, 0xdb, 0x81, 0xe3, 0xda, 0x8e, 0x9f, 0x4a, 0xd8, 0x6b, 0xaa, 0xbb, 0x97, 0xef, 0xe4, + 0x8b, 0xe1, 0x49, 0xed, 0xcd, 0x37, 0x60, 0x26, 0x99, 0xf0, 0x3d, 0x21, 0x49, 0x30, 0xff, 0xa3, + 0x00, 0xa5, 0x4d, 0xd7, 0x1f, 0xfc, 0x94, 0xd4, 0x8e, 0xfe, 0x6c, 0x0a, 0xa6, 0x78, 0xe8, 0x45, + 0xae, 0xc1, 0x54, 0x78, 0xe8, 0xcb, 0xb3, 0x75, 0xb2, 0x71, 0x31, 0x72, 0x34, 0x3b, 0x87, 0x3e, + 0x7d, 0xac, 0xfe, 0x45, 0x21, 0x41, 0xde, 0x83, 0x92, 0x3b, 0xe8, 0x3f, 0xb4, 0x7a, 0xca, 0x29, + 0xbd, 0x16, 0x85, 0x16, 0x5b, 0x82, 0xfa, 0xf8, 0xa8, 0x76, 0x91, 0xba, 0xb6, 0xd7, 0x72, 0xdc, + 0xf6, 0xf2, 0x23, 0xe6, 0xb9, 0xf5, 0xad, 0x41, 0x7f, 0x97, 0x06, 0xa8, 0x5a, 0x91, 0xaf, 0xc3, + 0xf4, 0xae, 0xe7, 0xf5, 0x38, 0x80, 0x74, 0x59, 0xf3, 0x0a, 0x60, 0xba, 0x21, 0xc9, 0x18, 0xf1, + 0x79, 0x14, 0xc3, 0xc2, 0x80, 0x4b, 0x4e, 0xa5, 0xa3, 0x98, 0xa6, 0xa0, 0xa2, 0xe2, 0x92, 0x3e, + 0x94, 0xfa, 0x96, 0xcf, 0xe5, 0x8a, 0x62, 0xca, 0xd6, 0x47, 0x8e, 0x4f, 0xeb, 0xf7, 0x04, 0xce, + 0xba, 0x1b, 0x06, 0x87, 0xb1, 0x3a, 0x49, 0x44, 0xa5, 0x84, 0x38, 0x30, 0xdd, 0x73, 0x58, 0xc8, + 0xf5, 0x95, 0xc6, 0xb0, 0x0a, 0xae, 0xef, 0xa1, 0xd5, 0x1b, 0xd0, 0x78, 0x06, 0xee, 0x4a, 0x58, + 0x8c, 0xf0, 0x17, 0x0f, 0xa1, 0x9a, 0xe8, 0x11, 0x59, 0x90, 0x89, 0xb1, 0x30, 0x5e, 0x91, 0x0b, + 0x93, 0x1d, 0x28, 0xee, 0x73, 0x0c, 0xe5, 0x6c, 0xc6, 0xec, 0x09, 0x4a, 0xb0, 0x77, 0x26, 0xde, + 0x2e, 0xbc, 0x53, 0xfe, 0xe1, 0x9f, 0xd6, 0xce, 0x7d, 0xfa, 0xcf, 0x57, 0xcf, 0x99, 0x7f, 0x3f, + 0x09, 0x15, 0x2d, 0xf2, 0x7f, 0xdb, 0x52, 0x82, 0x8c, 0xa5, 0xdc, 0x1e, 0x6f, 0xbe, 0x4e, 0x65, + 0x2e, 0x2b, 0x69, 0x73, 0x99, 0x69, 0xfc, 0xbf, 0xc4, 0x52, 0x3f, 0x3e, 0xaa, 0x19, 0xe9, 0x49, + 0x40, 0xeb, 0xe0, 0x1e, 0x65, 0xcc, 0x6a, 0xd3, 0xd8, 0x0c, 0xbe, 0xf5, 0x24, 0x33, 0xb8, 0x98, + 0x34, 0x83, 0x4a, 0xfe, 0x32, 0x7e, 0x3a, 0x09, 0xe5, 0x7b, 0x34, 0xb4, 0x5a, 0x56, 0x68, 0x91, + 0xdf, 0x2e, 0x40, 0xd5, 0x72, 0x5d, 0x2f, 0x14, 0x05, 0xc4, 0xc8, 0xbd, 0x6d, 0x8d, 0x34, 0x1d, + 0x11, 0x68, 0x7d, 0x25, 0x06, 0x94, 0x53, 0xa2, 0x4f, 0xa6, 0x04, 0x07, 0x93, 0x7a, 0xc9, 0x47, + 0x50, 0xea, 0x59, 0xbb, 0xb4, 0x17, 0x79, 0xbb, 0xcd, 0xf1, 0x7a, 0x70, 0x57, 0x60, 0x65, 0xd6, + 0x43, 0x12, 0x51, 0x29, 0x5a, 0x7c, 0x0f, 0x16, 0xb2, 0x1d, 0x7d, 0x9a, 0x19, 0xe5, 0x8b, 0x91, + 0x50, 0xf3, 0x34, 0x4d, 0xcd, 0xbf, 0xa9, 0x00, 0x6c, 0x79, 0x2d, 0xda, 0x0c, 0xad, 0x70, 0xc0, + 0xc8, 0x22, 0x4c, 0x38, 0x2d, 0x75, 0x14, 0x81, 0xea, 0xed, 0xc4, 0xe6, 0x1a, 0x4e, 0x38, 0x2d, + 0x5d, 0xe2, 0x98, 0x38, 0xb1, 0xc4, 0xf1, 0x4d, 0xa8, 0xb6, 0x1c, 0xe6, 0xf7, 0xac, 0xc3, 0xad, + 0x9c, 0x58, 0x60, 0x2d, 0x66, 0x61, 0x52, 0x8e, 0xbc, 0xae, 0xf6, 0xaf, 0xdc, 0x28, 0x46, 0x66, + 0xff, 0x96, 0x79, 0xf7, 0x12, 0x7b, 0xf8, 0x6d, 0x98, 0x89, 0x4a, 0x08, 0x42, 0x4b, 0x51, 0xb4, + 0x8a, 0x76, 0xfd, 0xcc, 0x4e, 0x82, 0x87, 0x29, 0xc9, 0x6c, 0x89, 0xa3, 0xf4, 0x5c, 0x4a, 0x1c, + 0x6b, 0xb0, 0xc0, 0x42, 0x2f, 0xa0, 0xad, 0x48, 0x62, 0x73, 0xcd, 0x20, 0xa9, 0x81, 0x2e, 0x34, + 0x33, 0x7c, 0x1c, 0x6a, 0x41, 0xb6, 0xe1, 0x62, 0xd4, 0x89, 0xe4, 0x00, 0x8d, 0x0b, 0x02, 0xe9, + 0x8a, 0x42, 0xba, 0xf8, 0x41, 0x8e, 0x0c, 0xe6, 0xb6, 0x24, 0x6f, 0x42, 0xd1, 0xef, 0x58, 0x8c, + 0xaa, 0xa2, 0x46, 0x94, 0xbb, 0x16, 0xb7, 0x39, 0xf1, 0xf1, 0x51, 0xad, 0xc2, 0xa7, 0x5d, 0x7c, + 0xa0, 0x14, 0x24, 0xd7, 0x01, 0x76, 0xbd, 0x81, 0xdb, 0xb2, 0x82, 0xc3, 0xcd, 0x35, 0x91, 0xc9, + 0x24, 0xae, 0x2d, 0x1a, 0x9a, 0x83, 0x09, 0x29, 0xee, 0x30, 0xfb, 0xd2, 0x75, 0xa8, 0xda, 0x84, + 0x76, 0x98, 0xda, 0xa3, 0x28, 0x3e, 0xf9, 0x10, 0x2a, 0x2c, 0xb4, 0x82, 0x90, 0xb6, 0x56, 0x42, + 0x55, 0xa0, 0xf8, 0xff, 0x89, 0xd0, 0x4e, 0x5f, 0x22, 0xc6, 0xcb, 0xd2, 0xa7, 0xa1, 0xc5, 0x83, + 0xbd, 0x1d, 0xa7, 0x4f, 0xe3, 0xa8, 0xa2, 0x19, 0x81, 0x60, 0x8c, 0x47, 0x7e, 0x15, 0x60, 0xcf, + 0x71, 0x1d, 0xd6, 0x11, 0xe8, 0xd5, 0xa7, 0x46, 0xd7, 0xe3, 0xdc, 0xd0, 0x28, 0x98, 0x40, 0xe4, + 0x39, 0x8f, 0xef, 0xb5, 0x36, 0xb7, 0x8d, 0x19, 0x31, 0x4a, 0x9d, 0xf3, 0x6c, 0x73, 0x22, 0x4a, + 0x1e, 0xb9, 0x06, 0xe5, 0x96, 0x45, 0xfb, 0x9e, 0x4b, 0x5b, 0xc6, 0x6c, 0x5c, 0x77, 0x58, 0x53, + 0x34, 0xd4, 0x5c, 0xf2, 0x7d, 0x28, 0x39, 0x22, 0xe4, 0x33, 0xe6, 0x44, 0x57, 0xbf, 0x3d, 0xda, + 0xa1, 0x20, 0x20, 0x1a, 0xc0, 0x3d, 0x8e, 0xfc, 0x1b, 0x15, 0x2c, 0xb1, 0x61, 0xda, 0x1b, 0x84, + 0x42, 0xc3, 0xbc, 0xd0, 0x30, 0x5a, 0x9d, 0xe5, 0xbe, 0xc4, 0x90, 0xd7, 0x48, 0xea, 0x03, 0x23, + 0x64, 0x3e, 0x5e, 0xbb, 0xe3, 0xf4, 0x5a, 0x01, 0x75, 0x8d, 0x05, 0x91, 0x52, 0x89, 0xf1, 0xae, + 0x2a, 0x1a, 0x6a, 0x2e, 0xf9, 0x05, 0x98, 0xf5, 0x06, 0xa1, 0xb0, 0x1b, 0x6e, 0x76, 0xcc, 0x38, + 0x2f, 0xc4, 0xcf, 0xf3, 0xb4, 0xed, 0x7e, 0x92, 0x81, 0x69, 0x39, 0x73, 0x0e, 0x66, 0x92, 0x77, + 0xaf, 0xe6, 0x1f, 0x4e, 0x40, 0xd4, 0x8f, 0x9f, 0x86, 0x68, 0x99, 0x98, 0x50, 0x0a, 0x28, 0x1b, + 0xf4, 0x42, 0xe5, 0x6c, 0xc5, 0x5a, 0xa3, 0xa0, 0xa0, 0xe2, 0x98, 0x07, 0x30, 0xcb, 0x7b, 0xdb, + 0xeb, 0xd1, 0x5e, 0x33, 0xa4, 0x3e, 0x23, 0x7b, 0x50, 0x64, 0xfc, 0x0f, 0x35, 0x27, 0xa3, 0xdd, + 0xea, 0x44, 0xae, 0x86, 0x43, 0xc6, 0xf6, 0x2e, 0x14, 0xa0, 0x84, 0x37, 0xff, 0x68, 0x02, 0x2a, + 0x7a, 0x9e, 0x4e, 0x51, 0x21, 0x7f, 0x15, 0xa6, 0x5b, 0x74, 0xcf, 0xe2, 0xa3, 0x51, 0x17, 0x2d, + 0xdc, 0xac, 0xd6, 0x24, 0x09, 0x23, 0x1e, 0xa9, 0x45, 0x87, 0x99, 0x1c, 0xb2, 0xa8, 0x5a, 0x25, + 0x63, 0x45, 0xd2, 0x85, 0x8a, 0xf8, 0x63, 0x23, 0xba, 0x14, 0x1e, 0x75, 0xdd, 0x1f, 0x46, 0x28, + 0xb2, 0x16, 0xa0, 0x3f, 0x31, 0xc6, 0xcf, 0x5c, 0xe6, 0x16, 0x4f, 0x73, 0x99, 0x6b, 0x6e, 0x00, + 0x77, 0x0c, 0x37, 0x57, 0xc9, 0xbb, 0x50, 0x66, 0xca, 0x74, 0xd5, 0xbc, 0x7c, 0x2d, 0xca, 0x82, + 0x23, 0x93, 0x7e, 0x7c, 0x54, 0x9b, 0x15, 0xc2, 0x11, 0x01, 0x75, 0x13, 0x73, 0x19, 0xaa, 0x89, + 0xcb, 0x2f, 0x3e, 0xc3, 0x3c, 0xe4, 0xc8, 0xce, 0xf0, 0x9a, 0x15, 0x5a, 0x28, 0x38, 0xe6, 0xe3, + 0x09, 0x58, 0x40, 0xca, 0xbc, 0x41, 0x60, 0xd3, 0x64, 0x65, 0xd6, 0xb2, 0xc5, 0x8d, 0x78, 0xa6, + 0x32, 0xbb, 0x22, 0xa8, 0xa8, 0xb8, 0xe4, 0xdb, 0x30, 0xdb, 0xa7, 0x41, 0x5b, 0x6f, 0x36, 0xb5, + 0x48, 0xba, 0xbe, 0x72, 0x2f, 0xc9, 0xc4, 0xb4, 0x2c, 0xcf, 0xf7, 0xfb, 0x96, 0xeb, 0xec, 0x51, + 0x16, 0x66, 0x4b, 0x26, 0xf7, 0x14, 0x1d, 0xb5, 0x04, 0xb9, 0x09, 0xe7, 0x19, 0x0d, 0xef, 0x1f, + 0xb8, 0x34, 0x40, 0xba, 0x47, 0x03, 0x51, 0x49, 0x9f, 0x12, 0x2e, 0xf3, 0x45, 0xd5, 0xec, 0x7c, + 0x33, 0x2b, 0x80, 0xc3, 0x6d, 0xc4, 0xe9, 0x3b, 0xb0, 0x6d, 0xca, 0xd8, 0xaa, 0xe7, 0xb6, 0x1c, + 0x7d, 0xef, 0x9f, 0x3c, 0x7d, 0x33, 0x7c, 0x1c, 0x6a, 0xc1, 0x51, 0xf6, 0x2c, 0xa7, 0x37, 0x08, + 0x68, 0x8c, 0x52, 0x4a, 0xa3, 0x6c, 0x64, 0xf8, 0x38, 0xd4, 0xc2, 0x7c, 0x13, 0x66, 0x91, 0x86, + 0xc1, 0xa1, 0x9e, 0x93, 0x1a, 0x14, 0x7b, 0x4e, 0xdf, 0x91, 0xc5, 0x9f, 0xa2, 0x34, 0xe4, 0xbb, + 0x9c, 0x80, 0x92, 0x6e, 0xfe, 0xb0, 0x00, 0x10, 0xdf, 0x69, 0x93, 0x2e, 0x94, 0xd9, 0x8d, 0xc6, + 0xc0, 0xee, 0xea, 0x7a, 0xd1, 0x88, 0xd7, 0x0a, 0x0a, 0x24, 0x5e, 0x82, 0x88, 0x82, 0x5a, 0xc1, + 0x93, 0x6e, 0x3c, 0xff, 0x6a, 0x12, 0x74, 0x2b, 0xbe, 0xb8, 0xd4, 0x6d, 0xf9, 0x9e, 0xe3, 0x46, + 0xd5, 0x7d, 0x8d, 0xbc, 0xae, 0xe8, 0xa8, 0x25, 0xb8, 0xbd, 0xed, 0xca, 0x41, 0x4c, 0xa4, 0xed, + 0x4d, 0xf5, 0x41, 0x71, 0xb9, 0x5c, 0x40, 0xdb, 0x7c, 0xae, 0x27, 0xd3, 0x72, 0x28, 0xa8, 0xa8, + 0xb8, 0xfc, 0x98, 0x89, 0x0a, 0xa6, 0xca, 0x46, 0xc4, 0x31, 0x13, 0xd5, 0x56, 0x51, 0x73, 0x49, + 0x07, 0xe6, 0x2d, 0xb1, 0xb4, 0x71, 0x11, 0xf8, 0xa9, 0xea, 0xd9, 0xf1, 0x7d, 0x6a, 0x1a, 0x05, + 0xb3, 0xb0, 0x5c, 0x13, 0x8b, 0x9b, 0x3f, 0x7d, 0x59, 0x5b, 0x6b, 0x6a, 0xa6, 0x51, 0x30, 0x0b, + 0xcb, 0x23, 0xac, 0xc0, 0xeb, 0xd1, 0x15, 0xdc, 0x52, 0x91, 0x9c, 0x8e, 0xb0, 0x50, 0x92, 0x31, + 0xe2, 0x9b, 0xbf, 0x5b, 0x80, 0xb9, 0xa6, 0x1d, 0x38, 0x7e, 0xa8, 0xf7, 0xfe, 0x96, 0xb8, 0x08, + 0x0f, 0x2d, 0x1e, 0xfb, 0x28, 0x9b, 0x7a, 0xf9, 0x84, 0x7a, 0x9a, 0x14, 0x4a, 0xdd, 0x93, 0x4b, + 0x12, 0xc6, 0x10, 0x22, 0xeb, 0x15, 0xde, 0x25, 0xbb, 0xb6, 0x4d, 0x41, 0x45, 0xc5, 0x35, 0x7f, + 0x54, 0x80, 0xb2, 0xbe, 0xbd, 0x7a, 0x05, 0x8a, 0xe2, 0x52, 0x44, 0xd9, 0x8e, 0x3e, 0x4c, 0x56, + 0x39, 0x11, 0x25, 0x8f, 0x0b, 0x89, 0x70, 0x4e, 0x01, 0x27, 0x4e, 0x1c, 0x2b, 0x08, 0x51, 0xf2, + 0xb8, 0xd1, 0x52, 0xb7, 0xa5, 0xec, 0x45, 0x1b, 0xed, 0xba, 0xdb, 0x42, 0x4e, 0x17, 0x17, 0xbb, + 0x5e, 0xd0, 0xb7, 0xc2, 0x6c, 0x4e, 0xbe, 0x21, 0xa8, 0xa8, 0xb8, 0xe6, 0x79, 0x98, 0x6f, 0x0e, + 0x98, 0x4f, 0x5d, 0x1d, 0x82, 0x9b, 0xb3, 0x50, 0x4d, 0x3c, 0x21, 0x33, 0xff, 0xeb, 0x32, 0xe8, + 0x5b, 0xdb, 0x9f, 0xdd, 0xfd, 0x8e, 0x94, 0x18, 0xd9, 0x3a, 0xc6, 0x2d, 0x8e, 0x1f, 0xe3, 0xea, + 0x95, 0xcc, 0xc4, 0xb9, 0xed, 0x38, 0xce, 0x2d, 0x9d, 0x41, 0x9c, 0xab, 0xf7, 0xd6, 0x50, 0xac, + 0xfb, 0x7b, 0x05, 0x98, 0x71, 0x79, 0x1e, 0xad, 0x76, 0xb0, 0x31, 0x2d, 0x62, 0xab, 0xfb, 0x63, + 0x4d, 0x62, 0x7d, 0x2b, 0x81, 0x28, 0x4b, 0x08, 0x3a, 0xcf, 0x4d, 0xb2, 0x30, 0xa5, 0x9a, 0x6c, + 0x40, 0xd9, 0xda, 0xe3, 0xc9, 0x49, 0x78, 0xa8, 0xae, 0x9f, 0xaf, 0xe4, 0xed, 0xe9, 0x15, 0x25, + 0x23, 0xdd, 0x65, 0xf4, 0x85, 0xba, 0x2d, 0x3f, 0x6f, 0xfa, 0xaa, 0x8c, 0x21, 0xb2, 0xb7, 0x51, + 0xcf, 0x9b, 0xa8, 0x16, 0x92, 0x38, 0xf2, 0x15, 0x05, 0xb5, 0x02, 0x1e, 0xc9, 0xca, 0xf4, 0x47, + 0xe4, 0x7e, 0x65, 0x19, 0xc9, 0xca, 0xd4, 0x08, 0x15, 0x87, 0xb4, 0xa3, 0xc0, 0xb5, 0x2a, 0x26, + 0xb7, 0x31, 0x72, 0x30, 0xaf, 0x63, 0xe1, 0xfc, 0xc8, 0x95, 0xdc, 0x4e, 0xba, 0xc5, 0x99, 0xd3, + 0xb8, 0xc5, 0xd9, 0x13, 0x5d, 0x62, 0x1b, 0x4a, 0x4c, 0x38, 0x5d, 0x91, 0xf3, 0x55, 0xaf, 0xaf, + 0x8e, 0x76, 0x66, 0xa7, 0xfc, 0xb6, 0x9c, 0x1d, 0x49, 0x43, 0x05, 0x4f, 0x3c, 0x28, 0x07, 0x2a, + 0xb6, 0x53, 0x69, 0xe3, 0x68, 0x55, 0xe7, 0x6c, 0x80, 0x28, 0xed, 0x23, 0xa2, 0xa2, 0x56, 0x42, + 0x3e, 0x84, 0xc9, 0x96, 0xd5, 0x56, 0x09, 0xe4, 0x77, 0x46, 0xbe, 0xa8, 0x8f, 0xd4, 0x88, 0xb7, + 0x5b, 0x6b, 0x2b, 0x37, 0x91, 0xa3, 0x92, 0x2e, 0x4c, 0x33, 0xe9, 0x83, 0x8d, 0x85, 0x31, 0x9e, + 0x44, 0x65, 0xfc, 0xb8, 0x4c, 0x29, 0x14, 0x11, 0x23, 0x0d, 0x64, 0x1d, 0xa6, 0xf7, 0xbd, 0xde, + 0xa0, 0xaf, 0x32, 0xcf, 0xea, 0xf5, 0xc5, 0xbc, 0xd5, 0x7e, 0x28, 0x44, 0x62, 0x27, 0x20, 0xbf, + 0x19, 0x46, 0x6d, 0xc9, 0x6f, 0x16, 0x60, 0x8e, 0x6f, 0x1d, 0x6d, 0x07, 0xcc, 0x20, 0x63, 0x58, + 0xea, 0x03, 0x46, 0x83, 0xd8, 0xc2, 0x5e, 0x50, 0x6a, 0xe7, 0x36, 0x53, 0x1a, 0x30, 0xa3, 0x91, + 0xf8, 0x50, 0x66, 0x4e, 0x8b, 0xda, 0x56, 0xc0, 0x8c, 0x0b, 0x67, 0xa6, 0x3d, 0x0e, 0x15, 0x15, + 0x36, 0x6a, 0x2d, 0xe4, 0xb7, 0xc4, 0x33, 0x36, 0xf5, 0x90, 0x53, 0x3d, 0xae, 0xbd, 0x78, 0x96, + 0x8f, 0x6b, 0x2f, 0xc8, 0x37, 0x6c, 0x29, 0x0d, 0x98, 0x55, 0x49, 0xee, 0xc3, 0x25, 0x9e, 0xa9, + 0xec, 0xd3, 0x35, 0x6a, 0xb5, 0x7a, 0x8e, 0x4b, 0x9b, 0xd4, 0xf6, 0xdc, 0x16, 0x33, 0x2e, 0x89, + 0x7b, 0x81, 0x17, 0x8f, 0x8f, 0x6a, 0x97, 0x56, 0xf2, 0x04, 0x30, 0xbf, 0x1d, 0xf9, 0x04, 0x66, + 0x83, 0x64, 0xc0, 0x6e, 0xbc, 0x30, 0xc6, 0xa5, 0x74, 0x2a, 0xf4, 0x97, 0x95, 0x8d, 0x14, 0x09, + 0xd3, 0xba, 0xc8, 0x5b, 0x50, 0xf5, 0x95, 0xa7, 0x72, 0x58, 0xdf, 0xb8, 0x2c, 0xc6, 0x20, 0x4e, + 0xd4, 0xed, 0x98, 0x8c, 0x49, 0x19, 0xf2, 0x00, 0xaa, 0xa1, 0xd7, 0xa3, 0x81, 0x2a, 0xa0, 0x1b, + 0x62, 0xf1, 0x97, 0xf2, 0x2c, 0x79, 0x47, 0x8b, 0xc5, 0xe5, 0xd9, 0x98, 0xc6, 0x30, 0x89, 0xc3, + 0xf3, 0x3e, 0x66, 0x77, 0x68, 0x6b, 0xd0, 0xa3, 0x81, 0x48, 0x72, 0x5f, 0x4c, 0xe7, 0x7d, 0xcd, + 0x24, 0x13, 0xd3, 0xb2, 0x3c, 0x93, 0xf3, 0x03, 0xc7, 0x0b, 0x9c, 0xf0, 0x70, 0xb5, 0x67, 0x31, + 0x26, 0x00, 0x16, 0x05, 0x80, 0xce, 0xe4, 0xb6, 0xb3, 0x02, 0x38, 0xdc, 0x86, 0x47, 0xf9, 0x11, + 0xd1, 0x78, 0x49, 0xe4, 0x4b, 0xc2, 0x2d, 0x45, 0x6d, 0x51, 0x73, 0x4f, 0x78, 0xa2, 0x73, 0x65, + 0x94, 0x27, 0x3a, 0xa4, 0x05, 0x57, 0xac, 0x41, 0xe8, 0xf5, 0x39, 0x21, 0xdd, 0x64, 0xc7, 0xeb, + 0x52, 0xd7, 0xb8, 0x2a, 0xce, 0xaa, 0xab, 0xc7, 0x47, 0xb5, 0x2b, 0x2b, 0x5f, 0x21, 0x87, 0x5f, + 0x89, 0x42, 0xfa, 0x50, 0xa6, 0xea, 0x99, 0x91, 0xf1, 0xb5, 0x31, 0x0e, 0x89, 0xf4, 0x5b, 0x25, + 0x39, 0x41, 0x11, 0x0d, 0xb5, 0x0a, 0xb2, 0x03, 0xd5, 0x8e, 0xc7, 0xc2, 0x95, 0x9e, 0x63, 0x31, + 0xca, 0x8c, 0x97, 0x85, 0x9d, 0xe4, 0x9e, 0x6f, 0xb7, 0x22, 0xb1, 0xd8, 0x4c, 0x6e, 0xc5, 0x2d, + 0x31, 0x09, 0x43, 0xa8, 0x48, 0x79, 0x06, 0x62, 0xd5, 0x3c, 0x37, 0xa4, 0x1f, 0x87, 0xc6, 0x92, + 0x18, 0xcb, 0x6b, 0x79, 0xc8, 0xdb, 0x5e, 0xab, 0x99, 0x96, 0x96, 0xbb, 0x3c, 0x43, 0xc4, 0x2c, + 0x26, 0x79, 0x1b, 0x66, 0x7c, 0xaf, 0xd5, 0xf4, 0xa9, 0xbd, 0x6d, 0x85, 0x76, 0xc7, 0xa8, 0xa5, + 0xcb, 0xff, 0xdb, 0x09, 0x1e, 0xa6, 0x24, 0x17, 0xdf, 0x87, 0xf3, 0x43, 0xf1, 0xd4, 0x53, 0xdd, + 0x95, 0xfc, 0x79, 0x01, 0x92, 0xe1, 0xec, 0x99, 0xc7, 0xfd, 0x37, 0xe1, 0xbc, 0xfa, 0x71, 0x0c, + 0x3f, 0x6c, 0x7b, 0x83, 0x30, 0xca, 0x7d, 0x13, 0x55, 0x0f, 0xcc, 0x0a, 0xe0, 0x70, 0x1b, 0xf3, + 0x2f, 0x0a, 0x30, 0x9b, 0x72, 0xdf, 0x67, 0x9e, 0xe7, 0x6d, 0x00, 0xe9, 0x3b, 0x41, 0xe0, 0x05, + 0xf2, 0x0c, 0xbc, 0xc7, 0x6d, 0x99, 0xa9, 0xe7, 0xb2, 0xe2, 0x99, 0xc5, 0xbd, 0x21, 0x2e, 0xe6, + 0xb4, 0x30, 0xff, 0xba, 0x00, 0x71, 0x59, 0x4d, 0xbf, 0x2d, 0x2a, 0x9c, 0xf8, 0xb6, 0xe8, 0x75, + 0x28, 0x3f, 0x62, 0x9e, 0xbb, 0x1d, 0xbf, 0x40, 0xd2, 0x13, 0x7a, 0xbb, 0x79, 0x7f, 0x4b, 0x48, + 0x6a, 0x09, 0x21, 0xfd, 0xd1, 0x86, 0xd3, 0x0b, 0x87, 0xdf, 0xe9, 0xdc, 0xfe, 0x25, 0x49, 0x47, + 0x2d, 0x41, 0x96, 0xa1, 0xa2, 0x2b, 0xb9, 0x2a, 0x41, 0xd4, 0x93, 0xa0, 0xcb, 0x98, 0x18, 0xcb, + 0x98, 0x3f, 0x9e, 0x80, 0x72, 0x54, 0x06, 0x25, 0xbf, 0x96, 0x08, 0x96, 0xe5, 0x04, 0xbf, 0x79, + 0xba, 0xfb, 0x85, 0xfb, 0xbb, 0x8f, 0xa8, 0x1d, 0xf2, 0x88, 0x38, 0xae, 0x1b, 0xc6, 0xb4, 0x44, + 0x84, 0x6c, 0xc3, 0x14, 0xf3, 0xa9, 0x3d, 0xd6, 0x0f, 0x95, 0x74, 0xd5, 0xd6, 0xa7, 0x76, 0x3c, + 0xc1, 0xfc, 0x0b, 0x05, 0x38, 0xe9, 0x42, 0x89, 0x89, 0xab, 0x40, 0x95, 0x78, 0xae, 0x8e, 0x59, + 0x1c, 0xe6, 0x50, 0xc9, 0xbb, 0x6f, 0xfe, 0x8d, 0x4a, 0x85, 0xf9, 0x79, 0x01, 0x66, 0x22, 0xd1, + 0xbb, 0x0e, 0x0b, 0xc9, 0xf7, 0x86, 0x26, 0xb1, 0x7e, 0xba, 0x49, 0xe4, 0xad, 0xc5, 0x14, 0xea, + 0x05, 0x8e, 0x28, 0x89, 0x09, 0xdc, 0x85, 0xa2, 0x23, 0xde, 0x0c, 0x8f, 0x53, 0x98, 0x8f, 0xfa, + 0x1b, 0x67, 0x0e, 0xf2, 0xcd, 0xb0, 0x84, 0x36, 0xff, 0xf6, 0x42, 0x3c, 0x24, 0x3e, 0xad, 0xc4, + 0x85, 0x4a, 0xb4, 0xc1, 0xa3, 0x82, 0xfb, 0xbb, 0x63, 0x25, 0x85, 0xb1, 0x51, 0x46, 0x14, 0x86, + 0xb1, 0x0a, 0x72, 0x1d, 0x80, 0x72, 0xcf, 0x26, 0xab, 0x71, 0x13, 0xe9, 0x7a, 0xf4, 0xba, 0xe6, + 0x60, 0x42, 0xea, 0xf9, 0x17, 0x1c, 0xf2, 0x8f, 0xe8, 0xa9, 0x67, 0x72, 0x44, 0x5f, 0x39, 0xf3, + 0x23, 0xfa, 0xe5, 0x67, 0x7f, 0x44, 0x27, 0x12, 0x92, 0xe2, 0x18, 0x09, 0xc9, 0x27, 0x70, 0x51, + 0xfe, 0xb9, 0xda, 0xb3, 0x9c, 0xbe, 0xb6, 0x17, 0xf5, 0x48, 0xe8, 0xeb, 0xb9, 0x07, 0x33, 0x0d, + 0x98, 0xc3, 0x42, 0xea, 0x86, 0x0f, 0xe3, 0x96, 0xf1, 0x0d, 0xf3, 0xc3, 0x1c, 0x38, 0xcc, 0x55, + 0x92, 0x8d, 0x60, 0xa7, 0x4f, 0x11, 0xc1, 0xfe, 0xa8, 0x00, 0x97, 0xac, 0xbc, 0x5f, 0xec, 0xa8, + 0x3a, 0xc6, 0xed, 0xb1, 0xf2, 0x89, 0x14, 0xa2, 0xca, 0x07, 0xf2, 0x58, 0x98, 0xdf, 0x07, 0xf2, + 0x6a, 0x9c, 0x92, 0x56, 0x84, 0x51, 0xe5, 0x27, 0x93, 0x3f, 0xc8, 0x96, 0x82, 0x40, 0xcc, 0x76, + 0x73, 0x6c, 0x87, 0x7d, 0x06, 0xe5, 0xa0, 0xea, 0x18, 0xe5, 0xa0, 0x4c, 0x7a, 0x31, 0x73, 0x46, + 0xe9, 0x85, 0x0b, 0x0b, 0x4e, 0xdf, 0x6a, 0xd3, 0xed, 0x41, 0xaf, 0x27, 0x6b, 0xda, 0xcc, 0x98, + 0x15, 0xd8, 0xb9, 0x2f, 0x3b, 0x79, 0xba, 0xd7, 0x93, 0xe7, 0xa3, 0xbe, 0xe6, 0x89, 0xaf, 0x61, + 0x36, 0x33, 0x48, 0x38, 0x84, 0xcd, 0xcd, 0x92, 0x87, 0xad, 0x5b, 0x34, 0xe4, 0xb3, 0x2d, 0x2a, + 0x25, 0xea, 0x97, 0x89, 0xb7, 0x62, 0x32, 0x26, 0x65, 0xc8, 0x1d, 0xa8, 0xb4, 0x5c, 0xb6, 0xed, + 0xf5, 0x1c, 0xfb, 0x50, 0x94, 0x3b, 0x2a, 0x8d, 0x37, 0xb8, 0x6f, 0x5b, 0xdb, 0x6a, 0x4a, 0xe2, + 0xe3, 0xa3, 0xda, 0x95, 0xe1, 0x9f, 0x5e, 0xd7, 0x35, 0x1f, 0xe3, 0xf6, 0xe4, 0x9e, 0x00, 0x53, + 0xcf, 0x9c, 0x65, 0x69, 0xe3, 0xea, 0x09, 0x11, 0xf2, 0xda, 0x56, 0xf4, 0x2a, 0x7b, 0x56, 0xa9, + 0x53, 0x8f, 0x97, 0x63, 0x04, 0xf2, 0x1a, 0x94, 0x3c, 0x77, 0xfd, 0x63, 0x27, 0x34, 0xce, 0xa7, + 0x6b, 0xda, 0xf7, 0x05, 0x15, 0x15, 0x97, 0x3c, 0x80, 0xcb, 0x61, 0xd8, 0x53, 0xa9, 0xed, 0xca, + 0x5e, 0x48, 0x83, 0xe8, 0x29, 0x83, 0x78, 0x8e, 0x52, 0x6c, 0xbc, 0x74, 0x7c, 0x54, 0xbb, 0xbc, + 0xb3, 0x73, 0x37, 0x4f, 0x04, 0x4f, 0x6a, 0x7b, 0x72, 0xd2, 0x7d, 0x61, 0xc4, 0xa4, 0x3b, 0x99, + 0xe7, 0x5d, 0xfc, 0xca, 0x3c, 0x6f, 0x28, 0x2f, 0xbd, 0xf4, 0x14, 0x79, 0xe9, 0x87, 0xe2, 0xc1, + 0xc6, 0xcd, 0x55, 0x95, 0xd3, 0xbf, 0x33, 0x5a, 0x29, 0x91, 0x23, 0xc8, 0x7b, 0x3b, 0xf1, 0x27, + 0x4a, 0x4c, 0xb2, 0x0d, 0x17, 0x7d, 0xaf, 0x35, 0x94, 0xd6, 0x8a, 0x24, 0x3e, 0xf1, 0x5a, 0x67, + 0x3b, 0x47, 0x06, 0x73, 0x5b, 0x0a, 0x5f, 0x1a, 0xd3, 0x0d, 0x43, 0x4c, 0x8c, 0xf4, 0xa5, 0x31, + 0x19, 0x93, 0x32, 0xd9, 0x2c, 0xef, 0xc5, 0x67, 0x96, 0xe5, 0x2d, 0x3e, 0x87, 0x2c, 0xef, 0xa5, + 0xe7, 0x97, 0xe5, 0x7d, 0x51, 0x86, 0xb9, 0x74, 0xfc, 0x1a, 0xbf, 0x95, 0x2a, 0x9c, 0xf6, 0xad, + 0x54, 0xea, 0x31, 0xd3, 0xc4, 0x33, 0x7d, 0xcc, 0x34, 0x79, 0xe6, 0x8f, 0x99, 0x12, 0x8f, 0xb6, + 0xa6, 0x9e, 0xf0, 0x68, 0x6b, 0x05, 0xe6, 0x6d, 0xaf, 0xef, 0x8b, 0xdf, 0x45, 0xa8, 0xa7, 0x3b, + 0xf2, 0x7a, 0x5d, 0x5f, 0x60, 0xae, 0xa6, 0xd9, 0x98, 0x95, 0x27, 0x0c, 0x8a, 0xae, 0x68, 0x58, + 0x1a, 0xe3, 0xc1, 0x67, 0x7a, 0xc1, 0xc4, 0x41, 0xa9, 0xde, 0x5c, 0xea, 0x30, 0x5d, 0xaa, 0x97, + 0xba, 0x78, 0xa0, 0x31, 0x9f, 0x7e, 0x64, 0xc7, 0x8c, 0x8a, 0xd0, 0xff, 0xcb, 0x67, 0xa1, 0x3f, + 0xfd, 0xa2, 0x4f, 0xf5, 0x24, 0xbe, 0xd3, 0x4d, 0x73, 0x31, 0xdb, 0x13, 0x12, 0xc0, 0x0b, 0x7e, + 0x5e, 0x18, 0xc6, 0xd4, 0xad, 0xd2, 0x57, 0x05, 0x83, 0x4b, 0x4a, 0xcb, 0x0b, 0xb9, 0x81, 0x1c, + 0xc3, 0x13, 0x90, 0x93, 0x2f, 0xc2, 0xca, 0xcf, 0xea, 0x45, 0xd8, 0xe2, 0xa1, 0x7c, 0x6c, 0x7a, + 0xe2, 0x3b, 0xd5, 0x07, 0xe9, 0xb7, 0xe3, 0xef, 0x8f, 0xf8, 0x9f, 0x71, 0x44, 0xcf, 0x59, 0x93, + 0x6f, 0x64, 0x7f, 0xa3, 0x00, 0x17, 0xf3, 0x96, 0x25, 0xa7, 0x17, 0xcd, 0x74, 0x2f, 0xc6, 0x4b, + 0xd7, 0x92, 0xae, 0xe5, 0xdf, 0x8a, 0x89, 0xe4, 0x30, 0xa4, 0xfe, 0xcf, 0x6e, 0x8e, 0x47, 0xba, + 0x39, 0x4e, 0xfd, 0xfe, 0xb7, 0xf8, 0x1c, 0x7f, 0xff, 0x5b, 0x1a, 0xe1, 0xf7, 0xbf, 0xd3, 0xcf, + 0xf3, 0xf7, 0xbf, 0xe5, 0x53, 0xfe, 0xfe, 0xb7, 0xf2, 0xec, 0x7f, 0xff, 0xfb, 0x65, 0x01, 0x16, + 0xb2, 0xcf, 0x91, 0x9f, 0x43, 0x91, 0xac, 0x9b, 0x2a, 0x92, 0x6d, 0x8e, 0xe5, 0xcc, 0xa3, 0x6e, + 0x9f, 0x54, 0x2c, 0x33, 0x7f, 0x52, 0x80, 0xa1, 0x27, 0xd7, 0xcf, 0xa1, 0x8e, 0xf5, 0x28, 0x5d, + 0xc7, 0x5a, 0x3f, 0x93, 0x41, 0x9e, 0x50, 0xcf, 0xfa, 0xef, 0x9c, 0x21, 0xfe, 0xaf, 0xd4, 0xb5, + 0x52, 0xae, 0x6d, 0xe2, 0xd9, 0xbb, 0xb6, 0x46, 0xfd, 0xb3, 0x2f, 0x97, 0xce, 0x7d, 0xfe, 0xe5, + 0xd2, 0xb9, 0x2f, 0xbe, 0x5c, 0x3a, 0xf7, 0xe9, 0xf1, 0x52, 0xe1, 0xb3, 0xe3, 0xa5, 0xc2, 0xe7, + 0xc7, 0x4b, 0x85, 0x2f, 0x8e, 0x97, 0x0a, 0x3f, 0x39, 0x5e, 0x2a, 0xfc, 0xc1, 0xbf, 0x2c, 0x9d, + 0xfb, 0x95, 0x72, 0x84, 0xfb, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x11, 0xce, 0xba, 0xc9, 0x25, + 0x4c, 0x00, 0x00, +} + +func (m *ArchiveStrategy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArchiveStrategy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArchiveStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.None != nil { + { + size, err := m.None.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Tar != nil { + { + size, err := m.Tar.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *Arguments) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Arguments) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Arguments) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Artifacts) > 0 { + for iNdEx := len(m.Artifacts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Artifacts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Parameters) > 0 { + for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Artifact) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Artifact) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Artifact) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i-- + if m.Optional { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + if m.Archive != nil { + { + size, err := m.Archive.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + i -= len(m.GlobalName) + copy(dAtA[i:], m.GlobalName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.GlobalName))) + i-- + dAtA[i] = 0x32 + { + size, err := m.ArtifactLocation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + i -= len(m.From) + copy(dAtA[i:], m.From) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.From))) + i-- + dAtA[i] = 0x22 + if m.Mode != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Mode)) + i-- + dAtA[i] = 0x18 + } + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ArtifactLocation) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArtifactLocation) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArtifactLocation) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Raw != nil { + { + size, err := m.Raw.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.HDFS != nil { + { + size, err := m.HDFS.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.Artifactory != nil { + { + size, err := m.Artifactory.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if m.HTTP != nil { + { + size, err := m.HTTP.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Git != nil { + { + size, err := m.Git.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + } + if m.S3 != nil { + { + size, err := m.S3.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.ArchiveLogs != nil { + i-- + if *m.ArchiveLogs { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *ArtifactRepositoryRef) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArtifactRepositoryRef) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArtifactRepositoryRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + i -= len(m.ConfigMap) + copy(dAtA[i:], m.ConfigMap) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ConfigMap))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ArtifactoryArtifact) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArtifactoryArtifact) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArtifactoryArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.ArtifactoryAuth.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.URL) + copy(dAtA[i:], m.URL) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ArtifactoryAuth) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ArtifactoryAuth) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ArtifactoryAuth) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.PasswordSecret != nil { + { + size, err := m.PasswordSecret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.UsernameSecret != nil { + { + size, err := m.UsernameSecret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *ContinueOn) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ContinueOn) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ContinueOn) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i-- + if m.Failed { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + i-- + if m.Error { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *DAGTask) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DAGTask) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DAGTask) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ContinueOn != nil { + { + size, err := m.ContinueOn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + } + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x4a + if m.WithSequence != nil { + { + size, err := m.WithSequence.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + i -= len(m.WithParam) + copy(dAtA[i:], m.WithParam) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.WithParam))) + i-- + dAtA[i] = 0x3a + if len(m.WithItems) > 0 { + for iNdEx := len(m.WithItems) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WithItems[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Dependencies) > 0 { + for iNdEx := len(m.Dependencies) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Dependencies[iNdEx]) + copy(dAtA[i:], m.Dependencies[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Dependencies[iNdEx]))) + i-- + dAtA[i] = 0x2a + } + } + if m.TemplateRef != nil { + { + size, err := m.TemplateRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + { + size, err := m.Arguments.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + i -= len(m.Template) + copy(dAtA[i:], m.Template) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Template))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *DAGTemplate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DAGTemplate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DAGTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.FailFast != nil { + i-- + if *m.FailFast { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } + if len(m.Tasks) > 0 { + for iNdEx := len(m.Tasks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tasks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + i -= len(m.Target) + copy(dAtA[i:], m.Target) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Target))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ExecutorConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ExecutorConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecutorConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.ServiceAccountName) + copy(dAtA[i:], m.ServiceAccountName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountName))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *GitArtifact) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *GitArtifact) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GitArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i-- + if m.InsecureIgnoreHostKey { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x40 + if m.SSHPrivateKeySecret != nil { + { + size, err := m.SSHPrivateKeySecret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + if m.PasswordSecret != nil { + { + size, err := m.PasswordSecret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + if m.UsernameSecret != nil { + { + size, err := m.UsernameSecret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + if len(m.Fetch) > 0 { + for iNdEx := len(m.Fetch) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Fetch[iNdEx]) + copy(dAtA[i:], m.Fetch[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Fetch[iNdEx]))) + i-- + dAtA[i] = 0x22 + } + } + if m.Depth != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Depth)) + i-- + dAtA[i] = 0x18 + } + i -= len(m.Revision) + copy(dAtA[i:], m.Revision) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Revision))) + i-- + dAtA[i] = 0x12 + i -= len(m.Repo) + copy(dAtA[i:], m.Repo) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Repo))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *HDFSArtifact) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HDFSArtifact) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HDFSArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i-- + if m.Force { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0x12 + { + size, err := m.HDFSConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *HDFSConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HDFSConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HDFSConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.HDFSUser) + copy(dAtA[i:], m.HDFSUser) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.HDFSUser))) + i-- + dAtA[i] = 0x1a + if len(m.Addresses) > 0 { + for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Addresses[iNdEx]) + copy(dAtA[i:], m.Addresses[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Addresses[iNdEx]))) + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.HDFSKrbConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *HDFSKrbConfig) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HDFSKrbConfig) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HDFSKrbConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.KrbServicePrincipalName) + copy(dAtA[i:], m.KrbServicePrincipalName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.KrbServicePrincipalName))) + i-- + dAtA[i] = 0x32 + if m.KrbConfigConfigMap != nil { + { + size, err := m.KrbConfigConfigMap.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + i -= len(m.KrbRealm) + copy(dAtA[i:], m.KrbRealm) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.KrbRealm))) + i-- + dAtA[i] = 0x22 + i -= len(m.KrbUsername) + copy(dAtA[i:], m.KrbUsername) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.KrbUsername))) + i-- + dAtA[i] = 0x1a + if m.KrbKeytabSecret != nil { + { + size, err := m.KrbKeytabSecret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.KrbCCacheSecret != nil { + { + size, err := m.KrbCCacheSecret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil +} + +func (m *HTTPArtifact) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *HTTPArtifact) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HTTPArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.URL) + copy(dAtA[i:], m.URL) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.URL))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Inputs) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Inputs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Inputs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Artifacts) > 0 { + for iNdEx := len(m.Artifacts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Artifacts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Parameters) > 0 { + for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Item) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Item) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Item) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ListVal) > 0 { + for iNdEx := len(m.ListVal) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ListVal[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.MapVal) > 0 { + keysForMapVal := make([]string, 0, len(m.MapVal)) + for k := range m.MapVal { + keysForMapVal = append(keysForMapVal, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMapVal) + for iNdEx := len(keysForMapVal) - 1; iNdEx >= 0; iNdEx-- { + v := m.MapVal[string(keysForMapVal[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForMapVal[iNdEx]) + copy(dAtA[i:], keysForMapVal[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForMapVal[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a + } + } + i -= len(m.StrVal) + copy(dAtA[i:], m.StrVal) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.StrVal))) + i-- + dAtA[i] = 0x22 + i-- + if m.BoolVal { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + i -= len(m.NumVal) + copy(dAtA[i:], m.NumVal) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.NumVal))) + i-- + dAtA[i] = 0x12 + i = encodeVarintGenerated(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *ItemValue) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ItemValue) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ItemValue) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.ListVal) > 0 { + for iNdEx := len(m.ListVal) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.ListVal[iNdEx]) + copy(dAtA[i:], m.ListVal[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ListVal[iNdEx]))) + i-- + dAtA[i] = 0x32 + } + } + if len(m.MapVal) > 0 { + keysForMapVal := make([]string, 0, len(m.MapVal)) + for k := range m.MapVal { + keysForMapVal = append(keysForMapVal, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForMapVal) + for iNdEx := len(keysForMapVal) - 1; iNdEx >= 0; iNdEx-- { + v := m.MapVal[string(keysForMapVal[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForMapVal[iNdEx]) + copy(dAtA[i:], keysForMapVal[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForMapVal[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x2a + } + } + i -= len(m.StrVal) + copy(dAtA[i:], m.StrVal) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.StrVal))) + i-- + dAtA[i] = 0x22 + i-- + if m.BoolVal { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + i -= len(m.NumVal) + copy(dAtA[i:], m.NumVal) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.NumVal))) + i-- + dAtA[i] = 0x12 + i = encodeVarintGenerated(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 + return len(dAtA) - i, nil +} + +func (m *Metadata) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Metadata) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Labels) > 0 { + keysForLabels := make([]string, 0, len(m.Labels)) + for k := range m.Labels { + keysForLabels = append(keysForLabels, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) + for iNdEx := len(keysForLabels) - 1; iNdEx >= 0; iNdEx-- { + v := m.Labels[string(keysForLabels[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForLabels[iNdEx]) + copy(dAtA[i:], keysForLabels[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForLabels[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x12 + } + } + if len(m.Annotations) > 0 { + keysForAnnotations := make([]string, 0, len(m.Annotations)) + for k := range m.Annotations { + keysForAnnotations = append(keysForAnnotations, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) + for iNdEx := len(keysForAnnotations) - 1; iNdEx >= 0; iNdEx-- { + v := m.Annotations[string(keysForAnnotations[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForAnnotations[iNdEx]) + copy(dAtA[i:], keysForAnnotations[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForAnnotations[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *NodeStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NodeStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NodeStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.WorkflowTemplateName) + copy(dAtA[i:], m.WorkflowTemplateName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.WorkflowTemplateName))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + i -= len(m.StoredTemplateID) + copy(dAtA[i:], m.StoredTemplateID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.StoredTemplateID))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + if len(m.OutboundNodes) > 0 { + for iNdEx := len(m.OutboundNodes) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.OutboundNodes[iNdEx]) + copy(dAtA[i:], m.OutboundNodes[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.OutboundNodes[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + } + if len(m.Children) > 0 { + for iNdEx := len(m.Children) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Children[iNdEx]) + copy(dAtA[i:], m.Children[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Children[iNdEx]))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + } + if m.Outputs != nil { + { + size, err := m.Outputs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + if m.Inputs != nil { + { + size, err := m.Inputs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + if m.Daemoned != nil { + i-- + if *m.Daemoned { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x68 + } + i -= len(m.PodIP) + copy(dAtA[i:], m.PodIP) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodIP))) + i-- + dAtA[i] = 0x62 + { + size, err := m.FinishedAt.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + { + size, err := m.StartedAt.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x52 + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x4a + i -= len(m.BoundaryID) + copy(dAtA[i:], m.BoundaryID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.BoundaryID))) + i-- + dAtA[i] = 0x42 + i -= len(m.Phase) + copy(dAtA[i:], m.Phase) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) + i-- + dAtA[i] = 0x3a + if m.TemplateRef != nil { + { + size, err := m.TemplateRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + i -= len(m.TemplateName) + copy(dAtA[i:], m.TemplateName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.TemplateName))) + i-- + dAtA[i] = 0x2a + i -= len(m.Type) + copy(dAtA[i:], m.Type) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) + i-- + dAtA[i] = 0x22 + i -= len(m.DisplayName) + copy(dAtA[i:], m.DisplayName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DisplayName))) + i-- + dAtA[i] = 0x1a + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0x12 + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *NoneStrategy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *NoneStrategy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *NoneStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Outputs) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Outputs) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Outputs) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Result != nil { + i -= len(*m.Result) + copy(dAtA[i:], *m.Result) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Result))) + i-- + dAtA[i] = 0x1a + } + if len(m.Artifacts) > 0 { + for iNdEx := len(m.Artifacts) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Artifacts[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + if len(m.Parameters) > 0 { + for iNdEx := len(m.Parameters) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Parameters[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *ParallelSteps) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ParallelSteps) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ParallelSteps) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Steps) > 0 { + for iNdEx := len(m.Steps) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Steps[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *Parameter) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Parameter) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Parameter) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.GlobalName) + copy(dAtA[i:], m.GlobalName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.GlobalName))) + i-- + dAtA[i] = 0x2a + if m.ValueFrom != nil { + { + size, err := m.ValueFrom.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + if m.Value != nil { + i -= len(*m.Value) + copy(dAtA[i:], *m.Value) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Value))) + i-- + dAtA[i] = 0x1a + } + if m.Default != nil { + i -= len(*m.Default) + copy(dAtA[i:], *m.Default) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Default))) + i-- + dAtA[i] = 0x12 + } + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *PodGC) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *PodGC) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PodGC) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Strategy) + copy(dAtA[i:], m.Strategy) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Strategy))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *RawArtifact) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RawArtifact) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RawArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Data) + copy(dAtA[i:], m.Data) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Data))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ResourceTemplate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ResourceTemplate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ResourceTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.FailureCondition) + copy(dAtA[i:], m.FailureCondition) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.FailureCondition))) + i-- + dAtA[i] = 0x32 + i -= len(m.SuccessCondition) + copy(dAtA[i:], m.SuccessCondition) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SuccessCondition))) + i-- + dAtA[i] = 0x2a + i-- + if m.SetOwnerReference { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + i -= len(m.Manifest) + copy(dAtA[i:], m.Manifest) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Manifest))) + i-- + dAtA[i] = 0x1a + i -= len(m.MergeStrategy) + copy(dAtA[i:], m.MergeStrategy) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.MergeStrategy))) + i-- + dAtA[i] = 0x12 + i -= len(m.Action) + copy(dAtA[i:], m.Action) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Action))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *RetryStrategy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RetryStrategy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RetryStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Limit != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Limit)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil +} + +func (m *S3Artifact) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *S3Artifact) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *S3Artifact) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Key) + copy(dAtA[i:], m.Key) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Key))) + i-- + dAtA[i] = 0x12 + { + size, err := m.S3Bucket.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *S3Bucket) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *S3Bucket) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *S3Bucket) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.RoleARN) + copy(dAtA[i:], m.RoleARN) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.RoleARN))) + i-- + dAtA[i] = 0x3a + { + size, err := m.SecretKeySecret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size, err := m.AccessKeySecret.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if m.Insecure != nil { + i-- + if *m.Insecure { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x20 + } + i -= len(m.Region) + copy(dAtA[i:], m.Region) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Region))) + i-- + dAtA[i] = 0x1a + i -= len(m.Bucket) + copy(dAtA[i:], m.Bucket) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Bucket))) + i-- + dAtA[i] = 0x12 + i -= len(m.Endpoint) + copy(dAtA[i:], m.Endpoint) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Endpoint))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ScriptTemplate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ScriptTemplate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ScriptTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Source) + copy(dAtA[i:], m.Source) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Source))) + i-- + dAtA[i] = 0x12 + { + size, err := m.Container.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Sequence) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Sequence) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Sequence) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Format) + copy(dAtA[i:], m.Format) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Format))) + i-- + dAtA[i] = 0x22 + i -= len(m.End) + copy(dAtA[i:], m.End) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.End))) + i-- + dAtA[i] = 0x1a + i -= len(m.Start) + copy(dAtA[i:], m.Start) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Start))) + i-- + dAtA[i] = 0x12 + i -= len(m.Count) + copy(dAtA[i:], m.Count) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Count))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *SuspendTemplate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *SuspendTemplate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SuspendTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *TarStrategy) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TarStrategy) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TarStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + return len(dAtA) - i, nil +} + +func (m *Template) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Template) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Template) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Executor != nil { + { + size, err := m.Executor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x8a + } + if m.AutomountServiceAccountToken != nil { + i-- + if *m.AutomountServiceAccountToken { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x2 + i-- + dAtA[i] = 0x80 + } + i -= len(m.PodSpecPatch) + copy(dAtA[i:], m.PodSpecPatch) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodSpecPatch))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xfa + if m.SecurityContext != nil { + { + size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xf2 + } + if len(m.HostAliases) > 0 { + for iNdEx := len(m.HostAliases) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HostAliases[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xea + } + } + i -= len(m.ServiceAccountName) + copy(dAtA[i:], m.ServiceAccountName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountName))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe2 + if m.Priority != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Priority)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd8 + } + i -= len(m.PriorityClassName) + copy(dAtA[i:], m.PriorityClassName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PriorityClassName))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 + i -= len(m.SchedulerName) + copy(dAtA[i:], m.SchedulerName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SchedulerName))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + if len(m.Tolerations) > 0 { + for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc2 + } + } + if m.Parallelism != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Parallelism)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb8 + } + if m.RetryStrategy != nil { + { + size, err := m.RetryStrategy.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + if m.ActiveDeadlineSeconds != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.ActiveDeadlineSeconds)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa8 + } + if m.ArchiveLocation != nil { + { + size, err := m.ArchiveLocation.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa2 + } + if len(m.Sidecars) > 0 { + for iNdEx := len(m.Sidecars) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Sidecars[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x9a + } + } + if len(m.InitContainers) > 0 { + for iNdEx := len(m.InitContainers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.InitContainers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x92 + } + } + if len(m.Volumes) > 0 { + for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + } + } + if m.Suspend != nil { + { + size, err := m.Suspend.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if m.DAG != nil { + { + size, err := m.DAG.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x7a + } + if m.Resource != nil { + { + size, err := m.Resource.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x72 + } + if m.Script != nil { + { + size, err := m.Script.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + if m.Container != nil { + { + size, err := m.Container.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + if len(m.Steps) > 0 { + for iNdEx := len(m.Steps) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Steps[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + } + if m.Daemon != nil { + i-- + if *m.Daemon { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 + } + { + size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + if m.Affinity != nil { + { + size, err := m.Affinity.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if len(m.NodeSelector) > 0 { + keysForNodeSelector := make([]string, 0, len(m.NodeSelector)) + for k := range m.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + for iNdEx := len(keysForNodeSelector) - 1; iNdEx >= 0; iNdEx-- { + v := m.NodeSelector[string(keysForNodeSelector[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForNodeSelector[iNdEx]) + copy(dAtA[i:], keysForNodeSelector[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNodeSelector[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x3a + } + } + { + size, err := m.Outputs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + { + size, err := m.Inputs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + if m.TemplateRef != nil { + { + size, err := m.TemplateRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + { + size, err := m.Arguments.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + i -= len(m.Template) + copy(dAtA[i:], m.Template) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Template))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *TemplateRef) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *TemplateRef) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TemplateRef) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i-- + if m.RuntimeResolution { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + i -= len(m.Template) + copy(dAtA[i:], m.Template) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Template))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *UserContainer) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *UserContainer) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UserContainer) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.MirrorVolumeMounts != nil { + i-- + if *m.MirrorVolumeMounts { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x10 + } + { + size, err := m.Container.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *ValueFrom) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ValueFrom) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ValueFrom) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.Parameter) + copy(dAtA[i:], m.Parameter) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Parameter))) + i-- + dAtA[i] = 0x22 + i -= len(m.JQFilter) + copy(dAtA[i:], m.JQFilter) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.JQFilter))) + i-- + dAtA[i] = 0x1a + i -= len(m.JSONPath) + copy(dAtA[i:], m.JSONPath) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.JSONPath))) + i-- + dAtA[i] = 0x12 + i -= len(m.Path) + copy(dAtA[i:], m.Path) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Path))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *Workflow) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Workflow) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *Workflow) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkflowList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkflowList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkflowList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkflowSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkflowSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkflowSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.Executor != nil { + { + size, err := m.Executor.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xea + } + if m.AutomountServiceAccountToken != nil { + i-- + if *m.AutomountServiceAccountToken { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xe0 + } + i -= len(m.PodSpecPatch) + copy(dAtA[i:], m.PodSpecPatch) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodSpecPatch))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xda + if m.SecurityContext != nil { + { + size, err := m.SecurityContext.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xd2 + } + if len(m.HostAliases) > 0 { + for iNdEx := len(m.HostAliases) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.HostAliases[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xca + } + } + if m.PodPriority != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.PodPriority)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xc0 + } + i -= len(m.PodPriorityClassName) + copy(dAtA[i:], m.PodPriorityClassName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodPriorityClassName))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xba + if m.PodGC != nil { + { + size, err := m.PodGC.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xb2 + } + i -= len(m.SchedulerName) + copy(dAtA[i:], m.SchedulerName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.SchedulerName))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xaa + if m.Priority != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Priority)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0xa0 + } + if m.ActiveDeadlineSeconds != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.ActiveDeadlineSeconds)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.TTLSecondsAfterFinished != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.TTLSecondsAfterFinished)) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } + i -= len(m.OnExit) + copy(dAtA[i:], m.OnExit) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.OnExit))) + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x8a + if m.DNSConfig != nil { + { + size, err := m.DNSConfig.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x82 + } + if m.DNSPolicy != nil { + i -= len(*m.DNSPolicy) + copy(dAtA[i:], *m.DNSPolicy) + i = encodeVarintGenerated(dAtA, i, uint64(len(*m.DNSPolicy))) + i-- + dAtA[i] = 0x7a + } + if m.HostNetwork != nil { + i-- + if *m.HostNetwork { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x70 + } + if len(m.ImagePullSecrets) > 0 { + for iNdEx := len(m.ImagePullSecrets) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.ImagePullSecrets[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } + } + if len(m.Tolerations) > 0 { + for iNdEx := len(m.Tolerations) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Tolerations[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x62 + } + } + if m.Affinity != nil { + { + size, err := m.Affinity.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x5a + } + if len(m.NodeSelector) > 0 { + keysForNodeSelector := make([]string, 0, len(m.NodeSelector)) + for k := range m.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + for iNdEx := len(keysForNodeSelector) - 1; iNdEx >= 0; iNdEx-- { + v := m.NodeSelector[string(keysForNodeSelector[iNdEx])] + baseI := i + i -= len(v) + copy(dAtA[i:], v) + i = encodeVarintGenerated(dAtA, i, uint64(len(v))) + i-- + dAtA[i] = 0x12 + i -= len(keysForNodeSelector[iNdEx]) + copy(dAtA[i:], keysForNodeSelector[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNodeSelector[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x52 + } + } + if m.Suspend != nil { + i-- + if *m.Suspend { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x48 + } + if m.ArtifactRepositoryRef != nil { + { + size, err := m.ArtifactRepositoryRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if m.Parallelism != nil { + i = encodeVarintGenerated(dAtA, i, uint64(*m.Parallelism)) + i-- + dAtA[i] = 0x38 + } + if len(m.VolumeClaimTemplates) > 0 { + for iNdEx := len(m.VolumeClaimTemplates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.VolumeClaimTemplates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } + } + if len(m.Volumes) > 0 { + for iNdEx := len(m.Volumes) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Volumes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + i -= len(m.ServiceAccountName) + copy(dAtA[i:], m.ServiceAccountName) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceAccountName))) + i-- + dAtA[i] = 0x22 + { + size, err := m.Arguments.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + i -= len(m.Entrypoint) + copy(dAtA[i:], m.Entrypoint) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Entrypoint))) + i-- + dAtA[i] = 0x12 + if len(m.Templates) > 0 { + for iNdEx := len(m.Templates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Templates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func (m *WorkflowStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkflowStatus) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkflowStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.StoredTemplates) > 0 { + keysForStoredTemplates := make([]string, 0, len(m.StoredTemplates)) + for k := range m.StoredTemplates { + keysForStoredTemplates = append(keysForStoredTemplates, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForStoredTemplates) + for iNdEx := len(keysForStoredTemplates) - 1; iNdEx >= 0; iNdEx-- { + v := m.StoredTemplates[string(keysForStoredTemplates[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForStoredTemplates[iNdEx]) + copy(dAtA[i:], keysForStoredTemplates[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForStoredTemplates[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x4a + } + } + if m.Outputs != nil { + { + size, err := m.Outputs.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 + } + if len(m.PersistentVolumeClaims) > 0 { + for iNdEx := len(m.PersistentVolumeClaims) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.PersistentVolumeClaims[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + } + if len(m.Nodes) > 0 { + keysForNodes := make([]string, 0, len(m.Nodes)) + for k := range m.Nodes { + keysForNodes = append(keysForNodes, string(k)) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodes) + for iNdEx := len(keysForNodes) - 1; iNdEx >= 0; iNdEx-- { + v := m.Nodes[string(keysForNodes[iNdEx])] + baseI := i + { + size, err := (&v).MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(keysForNodes[iNdEx]) + copy(dAtA[i:], keysForNodes[iNdEx]) + i = encodeVarintGenerated(dAtA, i, uint64(len(keysForNodes[iNdEx]))) + i-- + dAtA[i] = 0xa + i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) + i-- + dAtA[i] = 0x32 + } + } + i -= len(m.CompressedNodes) + copy(dAtA[i:], m.CompressedNodes) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.CompressedNodes))) + i-- + dAtA[i] = 0x2a + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x22 + { + size, err := m.FinishedAt.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + { + size, err := m.StartedAt.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + i -= len(m.Phase) + copy(dAtA[i:], m.Phase) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Phase))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkflowStep) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkflowStep) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkflowStep) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if m.ContinueOn != nil { + { + size, err := m.ContinueOn.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } + i -= len(m.When) + copy(dAtA[i:], m.When) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.When))) + i-- + dAtA[i] = 0x42 + if m.WithSequence != nil { + { + size, err := m.WithSequence.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x3a + } + i -= len(m.WithParam) + copy(dAtA[i:], m.WithParam) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.WithParam))) + i-- + dAtA[i] = 0x32 + if len(m.WithItems) > 0 { + for iNdEx := len(m.WithItems) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.WithItems[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x2a + } + } + if m.TemplateRef != nil { + { + size, err := m.TemplateRef.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + { + size, err := m.Arguments.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a + i -= len(m.Template) + copy(dAtA[i:], m.Template) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Template))) + i-- + dAtA[i] = 0x12 + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkflowTemplate) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkflowTemplate) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkflowTemplate) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + { + size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkflowTemplateList) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkflowTemplateList) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkflowTemplateList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + if len(m.Items) > 0 { + for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } + { + size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + +func (m *WorkflowTemplateSpec) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *WorkflowTemplateSpec) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *WorkflowTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + { + size, err := m.Arguments.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + if len(m.Templates) > 0 { + for iNdEx := len(m.Templates) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Templates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + } + return len(dAtA) - i, nil +} + +func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { + offset -= sovGenerated(v) + base := offset + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return base +} +func (m *ArchiveStrategy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Tar != nil { + l = m.Tar.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.None != nil { + l = m.None.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *Arguments) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Parameters) > 0 { + for _, e := range m.Parameters { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Artifacts) > 0 { + for _, e := range m.Artifacts { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Artifact) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + if m.Mode != nil { + n += 1 + sovGenerated(uint64(*m.Mode)) + } + l = len(m.From) + n += 1 + l + sovGenerated(uint64(l)) + l = m.ArtifactLocation.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.GlobalName) + n += 1 + l + sovGenerated(uint64(l)) + if m.Archive != nil { + l = m.Archive.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + n += 2 + return n +} + +func (m *ArtifactLocation) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ArchiveLogs != nil { + n += 2 + } + if m.S3 != nil { + l = m.S3.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Git != nil { + l = m.Git.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.HTTP != nil { + l = m.HTTP.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Artifactory != nil { + l = m.Artifactory.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.HDFS != nil { + l = m.HDFS.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Raw != nil { + l = m.Raw.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ArtifactRepositoryRef) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ConfigMap) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ArtifactoryArtifact) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.URL) + n += 1 + l + sovGenerated(uint64(l)) + l = m.ArtifactoryAuth.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ArtifactoryAuth) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.UsernameSecret != nil { + l = m.UsernameSecret.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.PasswordSecret != nil { + l = m.PasswordSecret.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ContinueOn) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 2 + n += 2 + return n +} + +func (m *DAGTask) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Template) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Arguments.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.TemplateRef != nil { + l = m.TemplateRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.Dependencies) > 0 { + for _, s := range m.Dependencies { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.WithItems) > 0 { + for _, e := range m.WithItems { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.WithParam) + n += 1 + l + sovGenerated(uint64(l)) + if m.WithSequence != nil { + l = m.WithSequence.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.When) + n += 1 + l + sovGenerated(uint64(l)) + if m.ContinueOn != nil { + l = m.ContinueOn.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *DAGTemplate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Target) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Tasks) > 0 { + for _, e := range m.Tasks { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.FailFast != nil { + n += 2 + } + return n +} + +func (m *ExecutorConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ServiceAccountName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *GitArtifact) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Repo) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Revision) + n += 1 + l + sovGenerated(uint64(l)) + if m.Depth != nil { + n += 1 + sovGenerated(uint64(*m.Depth)) + } + if len(m.Fetch) > 0 { + for _, s := range m.Fetch { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.UsernameSecret != nil { + l = m.UsernameSecret.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.PasswordSecret != nil { + l = m.PasswordSecret.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.SSHPrivateKeySecret != nil { + l = m.SSHPrivateKeySecret.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + n += 2 + return n +} + +func (m *HDFSArtifact) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.HDFSConfig.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *HDFSConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.HDFSKrbConfig.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Addresses) > 0 { + for _, s := range m.Addresses { + l = len(s) + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.HDFSUser) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *HDFSKrbConfig) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.KrbCCacheSecret != nil { + l = m.KrbCCacheSecret.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.KrbKeytabSecret != nil { + l = m.KrbKeytabSecret.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.KrbUsername) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.KrbRealm) + n += 1 + l + sovGenerated(uint64(l)) + if m.KrbConfigConfigMap != nil { + l = m.KrbConfigConfigMap.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.KrbServicePrincipalName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *HTTPArtifact) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.URL) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Inputs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Parameters) > 0 { + for _, e := range m.Parameters { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Artifacts) > 0 { + for _, e := range m.Artifacts { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Item) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Type)) + l = len(m.NumVal) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + l = len(m.StrVal) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.MapVal) > 0 { + for k, v := range m.MapVal { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.ListVal) > 0 { + for _, e := range m.ListVal { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *ItemValue) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + n += 1 + sovGenerated(uint64(m.Type)) + l = len(m.NumVal) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + l = len(m.StrVal) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.MapVal) > 0 { + for k, v := range m.MapVal { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.ListVal) > 0 { + for _, b := range m.ListVal { + l = len(b) + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Metadata) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Annotations) > 0 { + for k, v := range m.Annotations { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.Labels) > 0 { + for k, v := range m.Labels { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *NodeStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.ID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DisplayName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Type) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.TemplateName) + n += 1 + l + sovGenerated(uint64(l)) + if m.TemplateRef != nil { + l = m.TemplateRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.BoundaryID) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = m.StartedAt.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.FinishedAt.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.PodIP) + n += 1 + l + sovGenerated(uint64(l)) + if m.Daemoned != nil { + n += 2 + } + if m.Inputs != nil { + l = m.Inputs.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Outputs != nil { + l = m.Outputs.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.Children) > 0 { + for _, s := range m.Children { + l = len(s) + n += 2 + l + sovGenerated(uint64(l)) + } + } + if len(m.OutboundNodes) > 0 { + for _, s := range m.OutboundNodes { + l = len(s) + n += 2 + l + sovGenerated(uint64(l)) + } + } + l = len(m.StoredTemplateID) + n += 2 + l + sovGenerated(uint64(l)) + l = len(m.WorkflowTemplateName) + n += 2 + l + sovGenerated(uint64(l)) + return n +} + +func (m *NoneStrategy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Outputs) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Parameters) > 0 { + for _, e := range m.Parameters { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Artifacts) > 0 { + for _, e := range m.Artifacts { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Result != nil { + l = len(*m.Result) + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *ParallelSteps) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Steps) > 0 { + for _, e := range m.Steps { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *Parameter) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + if m.Default != nil { + l = len(*m.Default) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Value != nil { + l = len(*m.Value) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ValueFrom != nil { + l = m.ValueFrom.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.GlobalName) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *PodGC) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Strategy) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RawArtifact) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Data) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ResourceTemplate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Action) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.MergeStrategy) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Manifest) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + l = len(m.SuccessCondition) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.FailureCondition) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *RetryStrategy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.Limit != nil { + n += 1 + sovGenerated(uint64(*m.Limit)) + } + return n +} + +func (m *S3Artifact) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.S3Bucket.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Key) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *S3Bucket) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Endpoint) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Bucket) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Region) + n += 1 + l + sovGenerated(uint64(l)) + if m.Insecure != nil { + n += 2 + } + l = m.AccessKeySecret.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.SecretKeySecret.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.RoleARN) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ScriptTemplate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Container.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Source) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Sequence) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Count) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Start) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.End) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Format) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *SuspendTemplate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *TarStrategy) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + return n +} + +func (m *Template) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Template) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Arguments.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.TemplateRef != nil { + l = m.TemplateRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = m.Inputs.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Outputs.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.NodeSelector) > 0 { + for k, v := range m.NodeSelector { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if m.Affinity != nil { + l = m.Affinity.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = m.Metadata.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.Daemon != nil { + n += 2 + } + if len(m.Steps) > 0 { + for _, e := range m.Steps { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Container != nil { + l = m.Container.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Script != nil { + l = m.Script.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Resource != nil { + l = m.Resource.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.DAG != nil { + l = m.DAG.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Suspend != nil { + l = m.Suspend.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + if len(m.Volumes) > 0 { + for _, e := range m.Volumes { + l = e.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + } + if len(m.InitContainers) > 0 { + for _, e := range m.InitContainers { + l = e.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + } + if len(m.Sidecars) > 0 { + for _, e := range m.Sidecars { + l = e.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + } + if m.ArchiveLocation != nil { + l = m.ArchiveLocation.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + if m.ActiveDeadlineSeconds != nil { + n += 2 + sovGenerated(uint64(*m.ActiveDeadlineSeconds)) + } + if m.RetryStrategy != nil { + l = m.RetryStrategy.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + if m.Parallelism != nil { + n += 2 + sovGenerated(uint64(*m.Parallelism)) + } + if len(m.Tolerations) > 0 { + for _, e := range m.Tolerations { + l = e.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + } + l = len(m.SchedulerName) + n += 2 + l + sovGenerated(uint64(l)) + l = len(m.PriorityClassName) + n += 2 + l + sovGenerated(uint64(l)) + if m.Priority != nil { + n += 2 + sovGenerated(uint64(*m.Priority)) + } + l = len(m.ServiceAccountName) + n += 2 + l + sovGenerated(uint64(l)) + if len(m.HostAliases) > 0 { + for _, e := range m.HostAliases { + l = e.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + } + if m.SecurityContext != nil { + l = m.SecurityContext.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + l = len(m.PodSpecPatch) + n += 2 + l + sovGenerated(uint64(l)) + if m.AutomountServiceAccountToken != nil { + n += 3 + } + if m.Executor != nil { + l = m.Executor.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *TemplateRef) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Template) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + return n +} + +func (m *UserContainer) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.Container.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.MirrorVolumeMounts != nil { + n += 2 + } + return n +} + +func (m *ValueFrom) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Path) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.JSONPath) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.JQFilter) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Parameter) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *Workflow) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *WorkflowList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *WorkflowSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Templates) > 0 { + for _, e := range m.Templates { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.Entrypoint) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Arguments.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.ServiceAccountName) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Volumes) > 0 { + for _, e := range m.Volumes { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.VolumeClaimTemplates) > 0 { + for _, e := range m.VolumeClaimTemplates { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Parallelism != nil { + n += 1 + sovGenerated(uint64(*m.Parallelism)) + } + if m.ArtifactRepositoryRef != nil { + l = m.ArtifactRepositoryRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.Suspend != nil { + n += 2 + } + if len(m.NodeSelector) > 0 { + for k, v := range m.NodeSelector { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if m.Affinity != nil { + l = m.Affinity.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.Tolerations) > 0 { + for _, e := range m.Tolerations { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.ImagePullSecrets) > 0 { + for _, e := range m.ImagePullSecrets { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.HostNetwork != nil { + n += 2 + } + if m.DNSPolicy != nil { + l = len(*m.DNSPolicy) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.DNSConfig != nil { + l = m.DNSConfig.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + l = len(m.OnExit) + n += 2 + l + sovGenerated(uint64(l)) + if m.TTLSecondsAfterFinished != nil { + n += 2 + sovGenerated(uint64(*m.TTLSecondsAfterFinished)) + } + if m.ActiveDeadlineSeconds != nil { + n += 2 + sovGenerated(uint64(*m.ActiveDeadlineSeconds)) + } + if m.Priority != nil { + n += 2 + sovGenerated(uint64(*m.Priority)) + } + l = len(m.SchedulerName) + n += 2 + l + sovGenerated(uint64(l)) + if m.PodGC != nil { + l = m.PodGC.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + l = len(m.PodPriorityClassName) + n += 2 + l + sovGenerated(uint64(l)) + if m.PodPriority != nil { + n += 2 + sovGenerated(uint64(*m.PodPriority)) + } + if len(m.HostAliases) > 0 { + for _, e := range m.HostAliases { + l = e.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + } + if m.SecurityContext != nil { + l = m.SecurityContext.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + l = len(m.PodSpecPatch) + n += 2 + l + sovGenerated(uint64(l)) + if m.AutomountServiceAccountToken != nil { + n += 3 + } + if m.Executor != nil { + l = m.Executor.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *WorkflowStatus) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Phase) + n += 1 + l + sovGenerated(uint64(l)) + l = m.StartedAt.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.FinishedAt.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Message) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.CompressedNodes) + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Nodes) > 0 { + for k, v := range m.Nodes { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + if len(m.PersistentVolumeClaims) > 0 { + for _, e := range m.PersistentVolumeClaims { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if m.Outputs != nil { + l = m.Outputs.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.StoredTemplates) > 0 { + for k, v := range m.StoredTemplates { + _ = k + _ = v + l = v.Size() + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + l + sovGenerated(uint64(l)) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + return n +} + +func (m *WorkflowStep) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Name) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Template) + n += 1 + l + sovGenerated(uint64(l)) + l = m.Arguments.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.TemplateRef != nil { + l = m.TemplateRef.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if len(m.WithItems) > 0 { + for _, e := range m.WithItems { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = len(m.WithParam) + n += 1 + l + sovGenerated(uint64(l)) + if m.WithSequence != nil { + l = m.WithSequence.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + l = len(m.When) + n += 1 + l + sovGenerated(uint64(l)) + if m.ContinueOn != nil { + l = m.ContinueOn.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + +func (m *WorkflowTemplate) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *WorkflowTemplateList) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = m.ListMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if len(m.Items) > 0 { + for _, e := range m.Items { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + return n +} + +func (m *WorkflowTemplateSpec) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if len(m.Templates) > 0 { + for _, e := range m.Templates { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + l = m.Arguments.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func sovGenerated(x uint64) (n int) { + return (math_bits.Len64(x|1) + 6) / 7 +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *ArchiveStrategy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ArchiveStrategy{`, + `Tar:` + strings.Replace(this.Tar.String(), "TarStrategy", "TarStrategy", 1) + `,`, + `None:` + strings.Replace(this.None.String(), "NoneStrategy", "NoneStrategy", 1) + `,`, + `}`, + }, "") + return s +} +func (this *Arguments) String() string { + if this == nil { + return "nil" + } + repeatedStringForParameters := "[]Parameter{" + for _, f := range this.Parameters { + repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "Parameter", "Parameter", 1), `&`, ``, 1) + "," + } + repeatedStringForParameters += "}" + repeatedStringForArtifacts := "[]Artifact{" + for _, f := range this.Artifacts { + repeatedStringForArtifacts += strings.Replace(strings.Replace(f.String(), "Artifact", "Artifact", 1), `&`, ``, 1) + "," + } + repeatedStringForArtifacts += "}" + s := strings.Join([]string{`&Arguments{`, + `Parameters:` + repeatedStringForParameters + `,`, + `Artifacts:` + repeatedStringForArtifacts + `,`, + `}`, + }, "") + return s +} +func (this *Artifact) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Artifact{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Mode:` + valueToStringGenerated(this.Mode) + `,`, + `From:` + fmt.Sprintf("%v", this.From) + `,`, + `ArtifactLocation:` + strings.Replace(strings.Replace(this.ArtifactLocation.String(), "ArtifactLocation", "ArtifactLocation", 1), `&`, ``, 1) + `,`, + `GlobalName:` + fmt.Sprintf("%v", this.GlobalName) + `,`, + `Archive:` + strings.Replace(this.Archive.String(), "ArchiveStrategy", "ArchiveStrategy", 1) + `,`, + `Optional:` + fmt.Sprintf("%v", this.Optional) + `,`, + `}`, + }, "") + return s +} +func (this *ArtifactLocation) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ArtifactLocation{`, + `ArchiveLogs:` + valueToStringGenerated(this.ArchiveLogs) + `,`, + `S3:` + strings.Replace(this.S3.String(), "S3Artifact", "S3Artifact", 1) + `,`, + `Git:` + strings.Replace(this.Git.String(), "GitArtifact", "GitArtifact", 1) + `,`, + `HTTP:` + strings.Replace(this.HTTP.String(), "HTTPArtifact", "HTTPArtifact", 1) + `,`, + `Artifactory:` + strings.Replace(this.Artifactory.String(), "ArtifactoryArtifact", "ArtifactoryArtifact", 1) + `,`, + `HDFS:` + strings.Replace(this.HDFS.String(), "HDFSArtifact", "HDFSArtifact", 1) + `,`, + `Raw:` + strings.Replace(this.Raw.String(), "RawArtifact", "RawArtifact", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ArtifactRepositoryRef) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ArtifactRepositoryRef{`, + `ConfigMap:` + fmt.Sprintf("%v", this.ConfigMap) + `,`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `}`, + }, "") + return s +} +func (this *ArtifactoryArtifact) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ArtifactoryArtifact{`, + `URL:` + fmt.Sprintf("%v", this.URL) + `,`, + `ArtifactoryAuth:` + strings.Replace(strings.Replace(this.ArtifactoryAuth.String(), "ArtifactoryAuth", "ArtifactoryAuth", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ArtifactoryAuth) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ArtifactoryAuth{`, + `UsernameSecret:` + strings.Replace(fmt.Sprintf("%v", this.UsernameSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`, + `PasswordSecret:` + strings.Replace(fmt.Sprintf("%v", this.PasswordSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`, + `}`, + }, "") + return s +} +func (this *ContinueOn) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ContinueOn{`, + `Error:` + fmt.Sprintf("%v", this.Error) + `,`, + `Failed:` + fmt.Sprintf("%v", this.Failed) + `,`, + `}`, + }, "") + return s +} +func (this *DAGTask) String() string { + if this == nil { + return "nil" + } + repeatedStringForWithItems := "[]Item{" + for _, f := range this.WithItems { + repeatedStringForWithItems += fmt.Sprintf("%v", f) + "," + } + repeatedStringForWithItems += "}" + s := strings.Join([]string{`&DAGTask{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Template:` + fmt.Sprintf("%v", this.Template) + `,`, + `Arguments:` + strings.Replace(strings.Replace(this.Arguments.String(), "Arguments", "Arguments", 1), `&`, ``, 1) + `,`, + `TemplateRef:` + strings.Replace(this.TemplateRef.String(), "TemplateRef", "TemplateRef", 1) + `,`, + `Dependencies:` + fmt.Sprintf("%v", this.Dependencies) + `,`, + `WithItems:` + repeatedStringForWithItems + `,`, + `WithParam:` + fmt.Sprintf("%v", this.WithParam) + `,`, + `WithSequence:` + strings.Replace(this.WithSequence.String(), "Sequence", "Sequence", 1) + `,`, + `When:` + fmt.Sprintf("%v", this.When) + `,`, + `ContinueOn:` + strings.Replace(this.ContinueOn.String(), "ContinueOn", "ContinueOn", 1) + `,`, + `}`, + }, "") + return s +} +func (this *DAGTemplate) String() string { + if this == nil { + return "nil" + } + repeatedStringForTasks := "[]DAGTask{" + for _, f := range this.Tasks { + repeatedStringForTasks += strings.Replace(strings.Replace(f.String(), "DAGTask", "DAGTask", 1), `&`, ``, 1) + "," + } + repeatedStringForTasks += "}" + s := strings.Join([]string{`&DAGTemplate{`, + `Target:` + fmt.Sprintf("%v", this.Target) + `,`, + `Tasks:` + repeatedStringForTasks + `,`, + `FailFast:` + valueToStringGenerated(this.FailFast) + `,`, + `}`, + }, "") + return s +} +func (this *ExecutorConfig) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ExecutorConfig{`, + `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`, + `}`, + }, "") + return s +} +func (this *GitArtifact) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&GitArtifact{`, + `Repo:` + fmt.Sprintf("%v", this.Repo) + `,`, + `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, + `Depth:` + valueToStringGenerated(this.Depth) + `,`, + `Fetch:` + fmt.Sprintf("%v", this.Fetch) + `,`, + `UsernameSecret:` + strings.Replace(fmt.Sprintf("%v", this.UsernameSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`, + `PasswordSecret:` + strings.Replace(fmt.Sprintf("%v", this.PasswordSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`, + `SSHPrivateKeySecret:` + strings.Replace(fmt.Sprintf("%v", this.SSHPrivateKeySecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`, + `InsecureIgnoreHostKey:` + fmt.Sprintf("%v", this.InsecureIgnoreHostKey) + `,`, + `}`, + }, "") + return s +} +func (this *HDFSArtifact) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HDFSArtifact{`, + `HDFSConfig:` + strings.Replace(strings.Replace(this.HDFSConfig.String(), "HDFSConfig", "HDFSConfig", 1), `&`, ``, 1) + `,`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Force:` + fmt.Sprintf("%v", this.Force) + `,`, + `}`, + }, "") + return s +} +func (this *HDFSConfig) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HDFSConfig{`, + `HDFSKrbConfig:` + strings.Replace(strings.Replace(this.HDFSKrbConfig.String(), "HDFSKrbConfig", "HDFSKrbConfig", 1), `&`, ``, 1) + `,`, + `Addresses:` + fmt.Sprintf("%v", this.Addresses) + `,`, + `HDFSUser:` + fmt.Sprintf("%v", this.HDFSUser) + `,`, + `}`, + }, "") + return s +} +func (this *HDFSKrbConfig) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HDFSKrbConfig{`, + `KrbCCacheSecret:` + strings.Replace(fmt.Sprintf("%v", this.KrbCCacheSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`, + `KrbKeytabSecret:` + strings.Replace(fmt.Sprintf("%v", this.KrbKeytabSecret), "SecretKeySelector", "v1.SecretKeySelector", 1) + `,`, + `KrbUsername:` + fmt.Sprintf("%v", this.KrbUsername) + `,`, + `KrbRealm:` + fmt.Sprintf("%v", this.KrbRealm) + `,`, + `KrbConfigConfigMap:` + strings.Replace(fmt.Sprintf("%v", this.KrbConfigConfigMap), "ConfigMapKeySelector", "v1.ConfigMapKeySelector", 1) + `,`, + `KrbServicePrincipalName:` + fmt.Sprintf("%v", this.KrbServicePrincipalName) + `,`, + `}`, + }, "") + return s +} +func (this *HTTPArtifact) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&HTTPArtifact{`, + `URL:` + fmt.Sprintf("%v", this.URL) + `,`, + `}`, + }, "") + return s +} +func (this *Inputs) String() string { + if this == nil { + return "nil" + } + repeatedStringForParameters := "[]Parameter{" + for _, f := range this.Parameters { + repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "Parameter", "Parameter", 1), `&`, ``, 1) + "," + } + repeatedStringForParameters += "}" + repeatedStringForArtifacts := "[]Artifact{" + for _, f := range this.Artifacts { + repeatedStringForArtifacts += strings.Replace(strings.Replace(f.String(), "Artifact", "Artifact", 1), `&`, ``, 1) + "," + } + repeatedStringForArtifacts += "}" + s := strings.Join([]string{`&Inputs{`, + `Parameters:` + repeatedStringForParameters + `,`, + `Artifacts:` + repeatedStringForArtifacts + `,`, + `}`, + }, "") + return s +} +func (this *Metadata) String() string { + if this == nil { + return "nil" + } + keysForAnnotations := make([]string, 0, len(this.Annotations)) + for k := range this.Annotations { + keysForAnnotations = append(keysForAnnotations, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) + mapStringForAnnotations := "map[string]string{" + for _, k := range keysForAnnotations { + mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) + } + mapStringForAnnotations += "}" + keysForLabels := make([]string, 0, len(this.Labels)) + for k := range this.Labels { + keysForLabels = append(keysForLabels, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForLabels) + mapStringForLabels := "map[string]string{" + for _, k := range keysForLabels { + mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k]) + } + mapStringForLabels += "}" + s := strings.Join([]string{`&Metadata{`, + `Annotations:` + mapStringForAnnotations + `,`, + `Labels:` + mapStringForLabels + `,`, + `}`, + }, "") + return s +} +func (this *NodeStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NodeStatus{`, + `ID:` + fmt.Sprintf("%v", this.ID) + `,`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `DisplayName:` + fmt.Sprintf("%v", this.DisplayName) + `,`, + `Type:` + fmt.Sprintf("%v", this.Type) + `,`, + `TemplateName:` + fmt.Sprintf("%v", this.TemplateName) + `,`, + `TemplateRef:` + strings.Replace(this.TemplateRef.String(), "TemplateRef", "TemplateRef", 1) + `,`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `BoundaryID:` + fmt.Sprintf("%v", this.BoundaryID) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `StartedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartedAt), "Time", "v11.Time", 1), `&`, ``, 1) + `,`, + `FinishedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.FinishedAt), "Time", "v11.Time", 1), `&`, ``, 1) + `,`, + `PodIP:` + fmt.Sprintf("%v", this.PodIP) + `,`, + `Daemoned:` + valueToStringGenerated(this.Daemoned) + `,`, + `Inputs:` + strings.Replace(this.Inputs.String(), "Inputs", "Inputs", 1) + `,`, + `Outputs:` + strings.Replace(this.Outputs.String(), "Outputs", "Outputs", 1) + `,`, + `Children:` + fmt.Sprintf("%v", this.Children) + `,`, + `OutboundNodes:` + fmt.Sprintf("%v", this.OutboundNodes) + `,`, + `StoredTemplateID:` + fmt.Sprintf("%v", this.StoredTemplateID) + `,`, + `WorkflowTemplateName:` + fmt.Sprintf("%v", this.WorkflowTemplateName) + `,`, + `}`, + }, "") + return s +} +func (this *NoneStrategy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&NoneStrategy{`, + `}`, + }, "") + return s +} +func (this *Outputs) String() string { + if this == nil { + return "nil" + } + repeatedStringForParameters := "[]Parameter{" + for _, f := range this.Parameters { + repeatedStringForParameters += strings.Replace(strings.Replace(f.String(), "Parameter", "Parameter", 1), `&`, ``, 1) + "," + } + repeatedStringForParameters += "}" + repeatedStringForArtifacts := "[]Artifact{" + for _, f := range this.Artifacts { + repeatedStringForArtifacts += strings.Replace(strings.Replace(f.String(), "Artifact", "Artifact", 1), `&`, ``, 1) + "," + } + repeatedStringForArtifacts += "}" + s := strings.Join([]string{`&Outputs{`, + `Parameters:` + repeatedStringForParameters + `,`, + `Artifacts:` + repeatedStringForArtifacts + `,`, + `Result:` + valueToStringGenerated(this.Result) + `,`, + `}`, + }, "") + return s +} +func (this *ParallelSteps) String() string { + if this == nil { + return "nil" + } + repeatedStringForSteps := "[]WorkflowStep{" + for _, f := range this.Steps { + repeatedStringForSteps += strings.Replace(strings.Replace(f.String(), "WorkflowStep", "WorkflowStep", 1), `&`, ``, 1) + "," + } + repeatedStringForSteps += "}" + s := strings.Join([]string{`&ParallelSteps{`, + `Steps:` + repeatedStringForSteps + `,`, + `}`, + }, "") + return s +} +func (this *Parameter) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Parameter{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Default:` + valueToStringGenerated(this.Default) + `,`, + `Value:` + valueToStringGenerated(this.Value) + `,`, + `ValueFrom:` + strings.Replace(this.ValueFrom.String(), "ValueFrom", "ValueFrom", 1) + `,`, + `GlobalName:` + fmt.Sprintf("%v", this.GlobalName) + `,`, + `}`, + }, "") + return s +} +func (this *PodGC) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&PodGC{`, + `Strategy:` + fmt.Sprintf("%v", this.Strategy) + `,`, + `}`, + }, "") + return s +} +func (this *RawArtifact) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RawArtifact{`, + `Data:` + fmt.Sprintf("%v", this.Data) + `,`, + `}`, + }, "") + return s +} +func (this *ResourceTemplate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ResourceTemplate{`, + `Action:` + fmt.Sprintf("%v", this.Action) + `,`, + `MergeStrategy:` + fmt.Sprintf("%v", this.MergeStrategy) + `,`, + `Manifest:` + fmt.Sprintf("%v", this.Manifest) + `,`, + `SetOwnerReference:` + fmt.Sprintf("%v", this.SetOwnerReference) + `,`, + `SuccessCondition:` + fmt.Sprintf("%v", this.SuccessCondition) + `,`, + `FailureCondition:` + fmt.Sprintf("%v", this.FailureCondition) + `,`, + `}`, + }, "") + return s +} +func (this *RetryStrategy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&RetryStrategy{`, + `Limit:` + valueToStringGenerated(this.Limit) + `,`, + `}`, + }, "") + return s +} +func (this *S3Artifact) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&S3Artifact{`, + `S3Bucket:` + strings.Replace(strings.Replace(this.S3Bucket.String(), "S3Bucket", "S3Bucket", 1), `&`, ``, 1) + `,`, + `Key:` + fmt.Sprintf("%v", this.Key) + `,`, + `}`, + }, "") + return s +} +func (this *S3Bucket) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&S3Bucket{`, + `Endpoint:` + fmt.Sprintf("%v", this.Endpoint) + `,`, + `Bucket:` + fmt.Sprintf("%v", this.Bucket) + `,`, + `Region:` + fmt.Sprintf("%v", this.Region) + `,`, + `Insecure:` + valueToStringGenerated(this.Insecure) + `,`, + `AccessKeySecret:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.AccessKeySecret), "SecretKeySelector", "v1.SecretKeySelector", 1), `&`, ``, 1) + `,`, + `SecretKeySecret:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.SecretKeySecret), "SecretKeySelector", "v1.SecretKeySelector", 1), `&`, ``, 1) + `,`, + `RoleARN:` + fmt.Sprintf("%v", this.RoleARN) + `,`, + `}`, + }, "") + return s +} +func (this *ScriptTemplate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ScriptTemplate{`, + `Container:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Container), "Container", "v1.Container", 1), `&`, ``, 1) + `,`, + `Source:` + fmt.Sprintf("%v", this.Source) + `,`, + `}`, + }, "") + return s +} +func (this *Sequence) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Sequence{`, + `Count:` + fmt.Sprintf("%v", this.Count) + `,`, + `Start:` + fmt.Sprintf("%v", this.Start) + `,`, + `End:` + fmt.Sprintf("%v", this.End) + `,`, + `Format:` + fmt.Sprintf("%v", this.Format) + `,`, + `}`, + }, "") + return s +} +func (this *SuspendTemplate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&SuspendTemplate{`, + `}`, + }, "") + return s +} +func (this *TarStrategy) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TarStrategy{`, + `}`, + }, "") + return s +} +func (this *Template) String() string { + if this == nil { + return "nil" + } + repeatedStringForSteps := "[]ParallelSteps{" + for _, f := range this.Steps { + repeatedStringForSteps += strings.Replace(strings.Replace(f.String(), "ParallelSteps", "ParallelSteps", 1), `&`, ``, 1) + "," + } + repeatedStringForSteps += "}" + repeatedStringForVolumes := "[]Volume{" + for _, f := range this.Volumes { + repeatedStringForVolumes += fmt.Sprintf("%v", f) + "," + } + repeatedStringForVolumes += "}" + repeatedStringForInitContainers := "[]UserContainer{" + for _, f := range this.InitContainers { + repeatedStringForInitContainers += strings.Replace(strings.Replace(f.String(), "UserContainer", "UserContainer", 1), `&`, ``, 1) + "," + } + repeatedStringForInitContainers += "}" + repeatedStringForSidecars := "[]UserContainer{" + for _, f := range this.Sidecars { + repeatedStringForSidecars += strings.Replace(strings.Replace(f.String(), "UserContainer", "UserContainer", 1), `&`, ``, 1) + "," + } + repeatedStringForSidecars += "}" + repeatedStringForTolerations := "[]Toleration{" + for _, f := range this.Tolerations { + repeatedStringForTolerations += fmt.Sprintf("%v", f) + "," + } + repeatedStringForTolerations += "}" + repeatedStringForHostAliases := "[]HostAlias{" + for _, f := range this.HostAliases { + repeatedStringForHostAliases += fmt.Sprintf("%v", f) + "," + } + repeatedStringForHostAliases += "}" + keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) + for k := range this.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + mapStringForNodeSelector := "map[string]string{" + for _, k := range keysForNodeSelector { + mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) + } + mapStringForNodeSelector += "}" + s := strings.Join([]string{`&Template{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Template:` + fmt.Sprintf("%v", this.Template) + `,`, + `Arguments:` + strings.Replace(strings.Replace(this.Arguments.String(), "Arguments", "Arguments", 1), `&`, ``, 1) + `,`, + `TemplateRef:` + strings.Replace(this.TemplateRef.String(), "TemplateRef", "TemplateRef", 1) + `,`, + `Inputs:` + strings.Replace(strings.Replace(this.Inputs.String(), "Inputs", "Inputs", 1), `&`, ``, 1) + `,`, + `Outputs:` + strings.Replace(strings.Replace(this.Outputs.String(), "Outputs", "Outputs", 1), `&`, ``, 1) + `,`, + `NodeSelector:` + mapStringForNodeSelector + `,`, + `Affinity:` + strings.Replace(fmt.Sprintf("%v", this.Affinity), "Affinity", "v1.Affinity", 1) + `,`, + `Metadata:` + strings.Replace(strings.Replace(this.Metadata.String(), "Metadata", "Metadata", 1), `&`, ``, 1) + `,`, + `Daemon:` + valueToStringGenerated(this.Daemon) + `,`, + `Steps:` + repeatedStringForSteps + `,`, + `Container:` + strings.Replace(fmt.Sprintf("%v", this.Container), "Container", "v1.Container", 1) + `,`, + `Script:` + strings.Replace(this.Script.String(), "ScriptTemplate", "ScriptTemplate", 1) + `,`, + `Resource:` + strings.Replace(this.Resource.String(), "ResourceTemplate", "ResourceTemplate", 1) + `,`, + `DAG:` + strings.Replace(this.DAG.String(), "DAGTemplate", "DAGTemplate", 1) + `,`, + `Suspend:` + strings.Replace(this.Suspend.String(), "SuspendTemplate", "SuspendTemplate", 1) + `,`, + `Volumes:` + repeatedStringForVolumes + `,`, + `InitContainers:` + repeatedStringForInitContainers + `,`, + `Sidecars:` + repeatedStringForSidecars + `,`, + `ArchiveLocation:` + strings.Replace(this.ArchiveLocation.String(), "ArtifactLocation", "ArtifactLocation", 1) + `,`, + `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, + `RetryStrategy:` + strings.Replace(this.RetryStrategy.String(), "RetryStrategy", "RetryStrategy", 1) + `,`, + `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`, + `Tolerations:` + repeatedStringForTolerations + `,`, + `SchedulerName:` + fmt.Sprintf("%v", this.SchedulerName) + `,`, + `PriorityClassName:` + fmt.Sprintf("%v", this.PriorityClassName) + `,`, + `Priority:` + valueToStringGenerated(this.Priority) + `,`, + `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`, + `HostAliases:` + repeatedStringForHostAliases + `,`, + `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "PodSecurityContext", "v1.PodSecurityContext", 1) + `,`, + `PodSpecPatch:` + fmt.Sprintf("%v", this.PodSpecPatch) + `,`, + `AutomountServiceAccountToken:` + valueToStringGenerated(this.AutomountServiceAccountToken) + `,`, + `Executor:` + strings.Replace(this.Executor.String(), "ExecutorConfig", "ExecutorConfig", 1) + `,`, + `}`, + }, "") + return s +} +func (this *TemplateRef) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&TemplateRef{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Template:` + fmt.Sprintf("%v", this.Template) + `,`, + `RuntimeResolution:` + fmt.Sprintf("%v", this.RuntimeResolution) + `,`, + `}`, + }, "") + return s +} +func (this *UserContainer) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&UserContainer{`, + `Container:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Container), "Container", "v1.Container", 1), `&`, ``, 1) + `,`, + `MirrorVolumeMounts:` + valueToStringGenerated(this.MirrorVolumeMounts) + `,`, + `}`, + }, "") + return s +} +func (this *ValueFrom) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ValueFrom{`, + `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `JSONPath:` + fmt.Sprintf("%v", this.JSONPath) + `,`, + `JQFilter:` + fmt.Sprintf("%v", this.JQFilter) + `,`, + `Parameter:` + fmt.Sprintf("%v", this.Parameter) + `,`, + `}`, + }, "") + return s +} +func (this *Workflow) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Workflow{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "WorkflowSpec", "WorkflowSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "WorkflowStatus", "WorkflowStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *WorkflowList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]Workflow{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Workflow", "Workflow", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&WorkflowList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *WorkflowSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForTemplates := "[]Template{" + for _, f := range this.Templates { + repeatedStringForTemplates += strings.Replace(strings.Replace(f.String(), "Template", "Template", 1), `&`, ``, 1) + "," + } + repeatedStringForTemplates += "}" + repeatedStringForVolumes := "[]Volume{" + for _, f := range this.Volumes { + repeatedStringForVolumes += fmt.Sprintf("%v", f) + "," + } + repeatedStringForVolumes += "}" + repeatedStringForVolumeClaimTemplates := "[]PersistentVolumeClaim{" + for _, f := range this.VolumeClaimTemplates { + repeatedStringForVolumeClaimTemplates += fmt.Sprintf("%v", f) + "," + } + repeatedStringForVolumeClaimTemplates += "}" + repeatedStringForTolerations := "[]Toleration{" + for _, f := range this.Tolerations { + repeatedStringForTolerations += fmt.Sprintf("%v", f) + "," + } + repeatedStringForTolerations += "}" + repeatedStringForImagePullSecrets := "[]LocalObjectReference{" + for _, f := range this.ImagePullSecrets { + repeatedStringForImagePullSecrets += fmt.Sprintf("%v", f) + "," + } + repeatedStringForImagePullSecrets += "}" + repeatedStringForHostAliases := "[]HostAlias{" + for _, f := range this.HostAliases { + repeatedStringForHostAliases += fmt.Sprintf("%v", f) + "," + } + repeatedStringForHostAliases += "}" + keysForNodeSelector := make([]string, 0, len(this.NodeSelector)) + for k := range this.NodeSelector { + keysForNodeSelector = append(keysForNodeSelector, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodeSelector) + mapStringForNodeSelector := "map[string]string{" + for _, k := range keysForNodeSelector { + mapStringForNodeSelector += fmt.Sprintf("%v: %v,", k, this.NodeSelector[k]) + } + mapStringForNodeSelector += "}" + s := strings.Join([]string{`&WorkflowSpec{`, + `Templates:` + repeatedStringForTemplates + `,`, + `Entrypoint:` + fmt.Sprintf("%v", this.Entrypoint) + `,`, + `Arguments:` + strings.Replace(strings.Replace(this.Arguments.String(), "Arguments", "Arguments", 1), `&`, ``, 1) + `,`, + `ServiceAccountName:` + fmt.Sprintf("%v", this.ServiceAccountName) + `,`, + `Volumes:` + repeatedStringForVolumes + `,`, + `VolumeClaimTemplates:` + repeatedStringForVolumeClaimTemplates + `,`, + `Parallelism:` + valueToStringGenerated(this.Parallelism) + `,`, + `ArtifactRepositoryRef:` + strings.Replace(this.ArtifactRepositoryRef.String(), "ArtifactRepositoryRef", "ArtifactRepositoryRef", 1) + `,`, + `Suspend:` + valueToStringGenerated(this.Suspend) + `,`, + `NodeSelector:` + mapStringForNodeSelector + `,`, + `Affinity:` + strings.Replace(fmt.Sprintf("%v", this.Affinity), "Affinity", "v1.Affinity", 1) + `,`, + `Tolerations:` + repeatedStringForTolerations + `,`, + `ImagePullSecrets:` + repeatedStringForImagePullSecrets + `,`, + `HostNetwork:` + valueToStringGenerated(this.HostNetwork) + `,`, + `DNSPolicy:` + valueToStringGenerated(this.DNSPolicy) + `,`, + `DNSConfig:` + strings.Replace(fmt.Sprintf("%v", this.DNSConfig), "PodDNSConfig", "v1.PodDNSConfig", 1) + `,`, + `OnExit:` + fmt.Sprintf("%v", this.OnExit) + `,`, + `TTLSecondsAfterFinished:` + valueToStringGenerated(this.TTLSecondsAfterFinished) + `,`, + `ActiveDeadlineSeconds:` + valueToStringGenerated(this.ActiveDeadlineSeconds) + `,`, + `Priority:` + valueToStringGenerated(this.Priority) + `,`, + `SchedulerName:` + fmt.Sprintf("%v", this.SchedulerName) + `,`, + `PodGC:` + strings.Replace(this.PodGC.String(), "PodGC", "PodGC", 1) + `,`, + `PodPriorityClassName:` + fmt.Sprintf("%v", this.PodPriorityClassName) + `,`, + `PodPriority:` + valueToStringGenerated(this.PodPriority) + `,`, + `HostAliases:` + repeatedStringForHostAliases + `,`, + `SecurityContext:` + strings.Replace(fmt.Sprintf("%v", this.SecurityContext), "PodSecurityContext", "v1.PodSecurityContext", 1) + `,`, + `PodSpecPatch:` + fmt.Sprintf("%v", this.PodSpecPatch) + `,`, + `AutomountServiceAccountToken:` + valueToStringGenerated(this.AutomountServiceAccountToken) + `,`, + `Executor:` + strings.Replace(this.Executor.String(), "ExecutorConfig", "ExecutorConfig", 1) + `,`, + `}`, + }, "") + return s +} +func (this *WorkflowStatus) String() string { + if this == nil { + return "nil" + } + repeatedStringForPersistentVolumeClaims := "[]Volume{" + for _, f := range this.PersistentVolumeClaims { + repeatedStringForPersistentVolumeClaims += fmt.Sprintf("%v", f) + "," + } + repeatedStringForPersistentVolumeClaims += "}" + keysForNodes := make([]string, 0, len(this.Nodes)) + for k := range this.Nodes { + keysForNodes = append(keysForNodes, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForNodes) + mapStringForNodes := "map[string]NodeStatus{" + for _, k := range keysForNodes { + mapStringForNodes += fmt.Sprintf("%v: %v,", k, this.Nodes[k]) + } + mapStringForNodes += "}" + keysForStoredTemplates := make([]string, 0, len(this.StoredTemplates)) + for k := range this.StoredTemplates { + keysForStoredTemplates = append(keysForStoredTemplates, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForStoredTemplates) + mapStringForStoredTemplates := "map[string]Template{" + for _, k := range keysForStoredTemplates { + mapStringForStoredTemplates += fmt.Sprintf("%v: %v,", k, this.StoredTemplates[k]) + } + mapStringForStoredTemplates += "}" + s := strings.Join([]string{`&WorkflowStatus{`, + `Phase:` + fmt.Sprintf("%v", this.Phase) + `,`, + `StartedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.StartedAt), "Time", "v11.Time", 1), `&`, ``, 1) + `,`, + `FinishedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.FinishedAt), "Time", "v11.Time", 1), `&`, ``, 1) + `,`, + `Message:` + fmt.Sprintf("%v", this.Message) + `,`, + `CompressedNodes:` + fmt.Sprintf("%v", this.CompressedNodes) + `,`, + `Nodes:` + mapStringForNodes + `,`, + `PersistentVolumeClaims:` + repeatedStringForPersistentVolumeClaims + `,`, + `Outputs:` + strings.Replace(this.Outputs.String(), "Outputs", "Outputs", 1) + `,`, + `StoredTemplates:` + mapStringForStoredTemplates + `,`, + `}`, + }, "") + return s +} +func (this *WorkflowStep) String() string { + if this == nil { + return "nil" + } + repeatedStringForWithItems := "[]Item{" + for _, f := range this.WithItems { + repeatedStringForWithItems += fmt.Sprintf("%v", f) + "," + } + repeatedStringForWithItems += "}" + s := strings.Join([]string{`&WorkflowStep{`, + `Name:` + fmt.Sprintf("%v", this.Name) + `,`, + `Template:` + fmt.Sprintf("%v", this.Template) + `,`, + `Arguments:` + strings.Replace(strings.Replace(this.Arguments.String(), "Arguments", "Arguments", 1), `&`, ``, 1) + `,`, + `TemplateRef:` + strings.Replace(this.TemplateRef.String(), "TemplateRef", "TemplateRef", 1) + `,`, + `WithItems:` + repeatedStringForWithItems + `,`, + `WithParam:` + fmt.Sprintf("%v", this.WithParam) + `,`, + `WithSequence:` + strings.Replace(this.WithSequence.String(), "Sequence", "Sequence", 1) + `,`, + `When:` + fmt.Sprintf("%v", this.When) + `,`, + `ContinueOn:` + strings.Replace(this.ContinueOn.String(), "ContinueOn", "ContinueOn", 1) + `,`, + `}`, + }, "") + return s +} +func (this *WorkflowTemplate) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&WorkflowTemplate{`, + `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v11.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "WorkflowTemplateSpec", "WorkflowTemplateSpec", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *WorkflowTemplateList) String() string { + if this == nil { + return "nil" + } + repeatedStringForItems := "[]WorkflowTemplate{" + for _, f := range this.Items { + repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "WorkflowTemplate", "WorkflowTemplate", 1), `&`, ``, 1) + "," + } + repeatedStringForItems += "}" + s := strings.Join([]string{`&WorkflowTemplateList{`, + `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v11.ListMeta", 1), `&`, ``, 1) + `,`, + `Items:` + repeatedStringForItems + `,`, + `}`, + }, "") + return s +} +func (this *WorkflowTemplateSpec) String() string { + if this == nil { + return "nil" + } + repeatedStringForTemplates := "[]Template{" + for _, f := range this.Templates { + repeatedStringForTemplates += strings.Replace(strings.Replace(f.String(), "Template", "Template", 1), `&`, ``, 1) + "," + } + repeatedStringForTemplates += "}" + s := strings.Join([]string{`&WorkflowTemplateSpec{`, + `Templates:` + repeatedStringForTemplates + `,`, + `Arguments:` + strings.Replace(strings.Replace(this.Arguments.String(), "Arguments", "Arguments", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *ArchiveStrategy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArchiveStrategy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArchiveStrategy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tar", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Tar == nil { + m.Tar = &TarStrategy{} + } + if err := m.Tar.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field None", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.None == nil { + m.None = &NoneStrategy{} + } + if err := m.None.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Arguments) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Arguments: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Arguments: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parameters = append(m.Parameters, Parameter{}) + if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Artifacts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Artifacts = append(m.Artifacts, Artifact{}) + if err := m.Artifacts[len(m.Artifacts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Artifact) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Artifact: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Artifact: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Mode = &v + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field From", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.From = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArtifactLocation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ArtifactLocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GlobalName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Archive", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Archive == nil { + m.Archive = &ArchiveStrategy{} + } + if err := m.Archive.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Optional", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Optional = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArtifactLocation) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArtifactLocation: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArtifactLocation: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchiveLogs", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ArchiveLogs = &b + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field S3", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.S3 == nil { + m.S3 = &S3Artifact{} + } + if err := m.S3.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Git", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Git == nil { + m.Git = &GitArtifact{} + } + if err := m.Git.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HTTP", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.HTTP == nil { + m.HTTP = &HTTPArtifact{} + } + if err := m.HTTP.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Artifactory", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Artifactory == nil { + m.Artifactory = &ArtifactoryArtifact{} + } + if err := m.Artifactory.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HDFS", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.HDFS == nil { + m.HDFS = &HDFSArtifact{} + } + if err := m.HDFS.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Raw == nil { + m.Raw = &RawArtifact{} + } + if err := m.Raw.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArtifactRepositoryRef) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArtifactRepositoryRef: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArtifactRepositoryRef: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConfigMap", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ConfigMap = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArtifactoryArtifact) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArtifactoryArtifact: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArtifactoryArtifact: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.URL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArtifactoryAuth", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ArtifactoryAuth.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ArtifactoryAuth) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ArtifactoryAuth: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ArtifactoryAuth: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UsernameSecret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UsernameSecret == nil { + m.UsernameSecret = &v1.SecretKeySelector{} + } + if err := m.UsernameSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PasswordSecret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PasswordSecret == nil { + m.PasswordSecret = &v1.SecretKeySelector{} + } + if err := m.PasswordSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ContinueOn) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ContinueOn: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ContinueOn: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Error = bool(v != 0) + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Failed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Failed = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DAGTask) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DAGTask: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DAGTask: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Template = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Arguments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Arguments.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TemplateRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TemplateRef == nil { + m.TemplateRef = &TemplateRef{} + } + if err := m.TemplateRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Dependencies", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Dependencies = append(m.Dependencies, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithItems", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WithItems = append(m.WithItems, Item{}) + if err := m.WithItems[len(m.WithItems)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithParam", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WithParam = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithSequence", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.WithSequence == nil { + m.WithSequence = &Sequence{} + } + if err := m.WithSequence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContinueOn", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ContinueOn == nil { + m.ContinueOn = &ContinueOn{} + } + if err := m.ContinueOn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DAGTemplate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DAGTemplate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DAGTemplate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Target = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tasks = append(m.Tasks, DAGTask{}) + if err := m.Tasks[len(m.Tasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field FailFast", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.FailFast = &b + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ExecutorConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ExecutorConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ExecutorConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServiceAccountName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *GitArtifact) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: GitArtifact: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: GitArtifact: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Repo", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Repo = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Revision = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Depth", wireType) + } + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Depth = &v + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Fetch", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Fetch = append(m.Fetch, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field UsernameSecret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.UsernameSecret == nil { + m.UsernameSecret = &v1.SecretKeySelector{} + } + if err := m.UsernameSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PasswordSecret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PasswordSecret == nil { + m.PasswordSecret = &v1.SecretKeySelector{} + } + if err := m.PasswordSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SSHPrivateKeySecret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SSHPrivateKeySecret == nil { + m.SSHPrivateKeySecret = &v1.SecretKeySelector{} + } + if err := m.SSHPrivateKeySecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InsecureIgnoreHostKey", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.InsecureIgnoreHostKey = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HDFSArtifact) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HDFSArtifact: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HDFSArtifact: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HDFSConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.HDFSConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Force", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Force = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HDFSConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HDFSConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HDFSConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HDFSKrbConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.HDFSKrbConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HDFSUser", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HDFSUser = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HDFSKrbConfig) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HDFSKrbConfig: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HDFSKrbConfig: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KrbCCacheSecret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.KrbCCacheSecret == nil { + m.KrbCCacheSecret = &v1.SecretKeySelector{} + } + if err := m.KrbCCacheSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KrbKeytabSecret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.KrbKeytabSecret == nil { + m.KrbKeytabSecret = &v1.SecretKeySelector{} + } + if err := m.KrbKeytabSecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KrbUsername", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KrbUsername = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KrbRealm", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KrbRealm = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KrbConfigConfigMap", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.KrbConfigConfigMap == nil { + m.KrbConfigConfigMap = &v1.ConfigMapKeySelector{} + } + if err := m.KrbConfigConfigMap.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field KrbServicePrincipalName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.KrbServicePrincipalName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *HTTPArtifact) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: HTTPArtifact: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: HTTPArtifact: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.URL = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Inputs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Inputs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Inputs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parameters = append(m.Parameters, Parameter{}) + if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Artifacts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Artifacts = append(m.Artifacts, Artifact{}) + if err := m.Artifacts[len(m.Artifacts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Item) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Item: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Item: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= Type(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumVal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NumVal = encoding_json.Number(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolVal", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BoolVal = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StrVal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StrVal = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MapVal", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MapVal == nil { + m.MapVal = make(map[string]ItemValue) + } + var mapkey string + mapvalue := &ItemValue{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &ItemValue{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.MapVal[mapkey] = *mapvalue + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListVal", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ListVal = append(m.ListVal, ItemValue{}) + if err := m.ListVal[len(m.ListVal)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ItemValue) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ItemValue: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ItemValue: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + m.Type = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Type |= Type(b&0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NumVal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.NumVal = encoding_json.Number(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field BoolVal", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.BoolVal = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StrVal", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StrVal = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MapVal", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.MapVal == nil { + m.MapVal = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.MapVal[mapkey] = mapvalue + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListVal", wireType) + } + var byteLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + byteLen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if byteLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ListVal = append(m.ListVal, make([]byte, postIndex-iNdEx)) + copy(m.ListVal[len(m.ListVal)-1], dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Metadata) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Metadata: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Metadata: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Annotations == nil { + m.Annotations = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Annotations[mapkey] = mapvalue + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Labels == nil { + m.Labels = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Labels[mapkey] = mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NodeStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NodeStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NodeStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DisplayName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DisplayName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Type = NodeType(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TemplateName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TemplateName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TemplateRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TemplateRef == nil { + m.TemplateRef = &TemplateRef{} + } + if err := m.TemplateRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Phase = NodePhase(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BoundaryID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.BoundaryID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StartedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FinishedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.FinishedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodIP", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PodIP = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Daemoned", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Daemoned = &b + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inputs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Inputs == nil { + m.Inputs = &Inputs{} + } + if err := m.Inputs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Outputs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Outputs == nil { + m.Outputs = &Outputs{} + } + if err := m.Outputs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Children", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Children = append(m.Children, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OutboundNodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OutboundNodes = append(m.OutboundNodes, string(dAtA[iNdEx:postIndex])) + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StoredTemplateID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.StoredTemplateID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WorkflowTemplateName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WorkflowTemplateName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *NoneStrategy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: NoneStrategy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: NoneStrategy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Outputs) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Outputs: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Outputs: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameters", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parameters = append(m.Parameters, Parameter{}) + if err := m.Parameters[len(m.Parameters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Artifacts", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Artifacts = append(m.Artifacts, Artifact{}) + if err := m.Artifacts[len(m.Artifacts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Result = &s + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ParallelSteps) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ParallelSteps: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ParallelSteps: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Steps", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Steps = append(m.Steps, WorkflowStep{}) + if err := m.Steps[len(m.Steps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Parameter) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Parameter: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Parameter: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Default", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Default = &s + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(dAtA[iNdEx:postIndex]) + m.Value = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ValueFrom", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ValueFrom == nil { + m.ValueFrom = &ValueFrom{} + } + if err := m.ValueFrom.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field GlobalName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.GlobalName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *PodGC) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: PodGC: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: PodGC: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Strategy = PodGCStrategy(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RawArtifact) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RawArtifact: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RawArtifact: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Data = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ResourceTemplate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ResourceTemplate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ResourceTemplate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Action = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MergeStrategy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.MergeStrategy = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Manifest", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Manifest = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field SetOwnerReference", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.SetOwnerReference = bool(v != 0) + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SuccessCondition", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SuccessCondition = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FailureCondition", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.FailureCondition = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RetryStrategy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RetryStrategy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RetryStrategy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Limit = &v + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *S3Artifact) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: S3Artifact: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: S3Artifact: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field S3Bucket", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.S3Bucket.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Key = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *S3Bucket) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: S3Bucket: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: S3Bucket: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Endpoint = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Bucket", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Bucket = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Region", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Region = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Insecure", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Insecure = &b + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AccessKeySecret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.AccessKeySecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecretKeySecret", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.SecretKeySecret.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RoleARN", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RoleARN = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ScriptTemplate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ScriptTemplate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ScriptTemplate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Source = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Sequence) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Sequence: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Sequence: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Count = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Start = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field End", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.End = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Format", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Format = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *SuspendTemplate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: SuspendTemplate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: SuspendTemplate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TarStrategy) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TarStrategy: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TarStrategy: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Template) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Template: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Template: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Template = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Arguments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Arguments.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TemplateRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TemplateRef == nil { + m.TemplateRef = &TemplateRef{} + } + if err := m.TemplateRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Inputs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Inputs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Outputs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Outputs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NodeSelector == nil { + m.NodeSelector = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.NodeSelector[mapkey] = mapvalue + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Affinity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Affinity == nil { + m.Affinity = &v1.Affinity{} + } + if err := m.Affinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 10: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Daemon", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Daemon = &b + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Steps", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Steps = append(m.Steps, ParallelSteps{}) + if err := m.Steps[len(m.Steps)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Container == nil { + m.Container = &v1.Container{} + } + if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Script", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Script == nil { + m.Script = &ScriptTemplate{} + } + if err := m.Script.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Resource == nil { + m.Resource = &ResourceTemplate{} + } + if err := m.Resource.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DAG", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DAG == nil { + m.DAG = &DAGTemplate{} + } + if err := m.DAG.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Suspend == nil { + m.Suspend = &SuspendTemplate{} + } + if err := m.Suspend.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Volumes = append(m.Volumes, v1.Volume{}) + if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 18: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field InitContainers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.InitContainers = append(m.InitContainers, UserContainer{}) + if err := m.InitContainers[len(m.InitContainers)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 19: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Sidecars", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Sidecars = append(m.Sidecars, UserContainer{}) + if err := m.Sidecars[len(m.Sidecars)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 20: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArchiveLocation", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArchiveLocation == nil { + m.ArchiveLocation = &ArtifactLocation{} + } + if err := m.ArchiveLocation.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 21: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveDeadlineSeconds = &v + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RetryStrategy", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.RetryStrategy == nil { + m.RetryStrategy = &RetryStrategy{} + } + if err := m.RetryStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 23: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Parallelism", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Parallelism = &v + case 24: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tolerations = append(m.Tolerations, v1.Toleration{}) + if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchedulerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchedulerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PriorityClassName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PriorityClassName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 27: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 28: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServiceAccountName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 29: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostAliases", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostAliases = append(m.HostAliases, v1.HostAlias{}) + if err := m.HostAliases[len(m.HostAliases)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 30: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SecurityContext == nil { + m.SecurityContext = &v1.PodSecurityContext{} + } + if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 31: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodSpecPatch", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PodSpecPatch = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 32: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutomountServiceAccountToken", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AutomountServiceAccountToken = &b + case 33: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Executor == nil { + m.Executor = &ExecutorConfig{} + } + if err := m.Executor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *TemplateRef) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: TemplateRef: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: TemplateRef: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Template = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field RuntimeResolution", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.RuntimeResolution = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *UserContainer) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: UserContainer: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: UserContainer: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Container", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Container.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field MirrorVolumeMounts", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.MirrorVolumeMounts = &b + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ValueFrom) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ValueFrom: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ValueFrom: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Path = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JSONPath", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.JSONPath = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field JQFilter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.JQFilter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Parameter", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Parameter = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Workflow) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Workflow: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Workflow: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkflowList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkflowList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkflowList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, Workflow{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkflowSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkflowSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkflowSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Templates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Templates = append(m.Templates, Template{}) + if err := m.Templates[len(m.Templates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Entrypoint", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Entrypoint = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Arguments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Arguments.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ServiceAccountName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ServiceAccountName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Volumes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Volumes = append(m.Volumes, v1.Volume{}) + if err := m.Volumes[len(m.Volumes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, v1.PersistentVolumeClaim{}) + if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 7: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Parallelism", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Parallelism = &v + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ArtifactRepositoryRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ArtifactRepositoryRef == nil { + m.ArtifactRepositoryRef = &ArtifactRepositoryRef{} + } + if err := m.ArtifactRepositoryRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Suspend", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.Suspend = &b + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field NodeSelector", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.NodeSelector == nil { + m.NodeSelector = make(map[string]string) + } + var mapkey string + var mapvalue string + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapvalue |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.NodeSelector[mapkey] = mapvalue + iNdEx = postIndex + case 11: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Affinity", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Affinity == nil { + m.Affinity = &v1.Affinity{} + } + if err := m.Affinity.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 12: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Tolerations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Tolerations = append(m.Tolerations, v1.Toleration{}) + if err := m.Tolerations[len(m.Tolerations)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ImagePullSecrets", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ImagePullSecrets = append(m.ImagePullSecrets, v1.LocalObjectReference{}) + if err := m.ImagePullSecrets[len(m.ImagePullSecrets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 14: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field HostNetwork", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.HostNetwork = &b + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DNSPolicy", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := k8s_io_api_core_v1.DNSPolicy(dAtA[iNdEx:postIndex]) + m.DNSPolicy = &s + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DNSConfig", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DNSConfig == nil { + m.DNSConfig = &v1.PodDNSConfig{} + } + if err := m.DNSConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 17: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OnExit", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OnExit = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field TTLSecondsAfterFinished", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.TTLSecondsAfterFinished = &v + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ActiveDeadlineSeconds", wireType) + } + var v int64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int64(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.ActiveDeadlineSeconds = &v + case 20: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Priority", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Priority = &v + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SchedulerName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.SchedulerName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodGC", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.PodGC == nil { + m.PodGC = &PodGC{} + } + if err := m.PodGC.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 23: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodPriorityClassName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PodPriorityClassName = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 24: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field PodPriority", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int32(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.PodPriority = &v + case 25: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field HostAliases", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.HostAliases = append(m.HostAliases, v1.HostAlias{}) + if err := m.HostAliases[len(m.HostAliases)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 26: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field SecurityContext", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.SecurityContext == nil { + m.SecurityContext = &v1.PodSecurityContext{} + } + if err := m.SecurityContext.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 27: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PodSpecPatch", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PodSpecPatch = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 28: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field AutomountServiceAccountToken", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.AutomountServiceAccountToken = &b + case 29: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Executor", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Executor == nil { + m.Executor = &ExecutorConfig{} + } + if err := m.Executor.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkflowStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkflowStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkflowStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Phase", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Phase = NodePhase(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StartedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.StartedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FinishedAt", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.FinishedAt.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Message = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CompressedNodes", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.CompressedNodes = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Nodes == nil { + m.Nodes = make(map[string]NodeStatus) + } + var mapkey string + mapvalue := &NodeStatus{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &NodeStatus{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.Nodes[mapkey] = *mapvalue + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaims", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.PersistentVolumeClaims = append(m.PersistentVolumeClaims, v1.Volume{}) + if err := m.PersistentVolumeClaims[len(m.PersistentVolumeClaims)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Outputs", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Outputs == nil { + m.Outputs = &Outputs{} + } + if err := m.Outputs.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field StoredTemplates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.StoredTemplates == nil { + m.StoredTemplates = make(map[string]Template) + } + var mapkey string + mapvalue := &Template{} + for iNdEx < postIndex { + entryPreIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + if fieldNum == 1 { + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey < 0 { + return ErrInvalidLengthGenerated + } + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + } else if fieldNum == 2 { + var mapmsglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapmsglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if mapmsglen < 0 { + return ErrInvalidLengthGenerated + } + postmsgIndex := iNdEx + mapmsglen + if postmsgIndex < 0 { + return ErrInvalidLengthGenerated + } + if postmsgIndex > l { + return io.ErrUnexpectedEOF + } + mapvalue = &Template{} + if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { + return err + } + iNdEx = postmsgIndex + } else { + iNdEx = entryPreIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > postIndex { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + m.StoredTemplates[mapkey] = *mapvalue + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkflowStep) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkflowStep: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkflowStep: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Name = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Template = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Arguments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Arguments.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TemplateRef", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.TemplateRef == nil { + m.TemplateRef = &TemplateRef{} + } + if err := m.TemplateRef.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithItems", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WithItems = append(m.WithItems, Item{}) + if err := m.WithItems[len(m.WithItems)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithParam", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.WithParam = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 7: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field WithSequence", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.WithSequence == nil { + m.WithSequence = &Sequence{} + } + if err := m.WithSequence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 8: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field When", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.When = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 9: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ContinueOn", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.ContinueOn == nil { + m.ContinueOn = &ContinueOn{} + } + if err := m.ContinueOn.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkflowTemplate) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkflowTemplate: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkflowTemplate: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkflowTemplateList) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkflowTemplateList: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkflowTemplateList: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Items = append(m.Items, WorkflowTemplate{}) + if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *WorkflowTemplateSpec) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: WorkflowTemplateSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: WorkflowTemplateSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Templates", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Templates = append(m.Templates, Template{}) + if err := m.Templates[len(m.Templates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Arguments", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Arguments.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + iNdEx += length + if iNdEx < 0 { + return 0, ErrInvalidLengthGenerated + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipGenerated(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + if iNdEx < 0 { + return 0, ErrInvalidLengthGenerated + } + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") +) diff --git a/pkg/apis/workflow/v1alpha1/generated.proto b/pkg/apis/workflow/v1alpha1/generated.proto new file mode 100644 index 000000000000..a606b5d2a023 --- /dev/null +++ b/pkg/apis/workflow/v1alpha1/generated.proto @@ -0,0 +1,959 @@ + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = 'proto2'; + +package github.com.argoproj.argo.pkg.apis.workflow.v1alpha1; + +import "k8s.io/api/core/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/generated.proto"; +import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "v1alpha1"; + +// ArchiveStrategy describes how to archive files/directory when saving artifacts +message ArchiveStrategy { + optional TarStrategy tar = 1; + + optional NoneStrategy none = 2; +} + +// Arguments to a template +message Arguments { + // Parameters is the list of parameters to pass to the template or workflow + // +patchStrategy=merge + // +patchMergeKey=name + repeated Parameter parameters = 1; + + // Artifacts is the list of artifacts to pass to the template or workflow + // +patchStrategy=merge + // +patchMergeKey=name + repeated Artifact artifacts = 2; +} + +// Artifact indicates an artifact to place at a specified path +message Artifact { + // name of the artifact. must be unique within a template's inputs/outputs. + optional string name = 1; + + // Path is the container path to the artifact + optional string path = 2; + + // mode bits to use on this file, must be a value between 0 and 0777 + // set when loading input artifacts. + optional int32 mode = 3; + + // From allows an artifact to reference an artifact from a previous step + optional string from = 4; + + // ArtifactLocation contains the location of the artifact + optional ArtifactLocation artifactLocation = 5; + + // GlobalName exports an output artifact to the global scope, making it available as + // '{{workflow.outputs.artifacts.XXXX}} and in workflow.status.outputs.artifacts + optional string globalName = 6; + + // Archive controls how the artifact will be saved to the artifact repository. + optional ArchiveStrategy archive = 7; + + // Make Artifacts optional, if Artifacts doesn't generate or exist + optional bool optional = 8; +} + +// 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. +message ArtifactLocation { + // ArchiveLogs indicates if the container logs should be archived + optional bool archiveLogs = 1; + + // S3 contains S3 artifact location details + optional S3Artifact s3 = 2; + + // Git contains git artifact location details + optional GitArtifact git = 3; + + // HTTP contains HTTP artifact location details + optional HTTPArtifact http = 4; + + // Artifactory contains artifactory artifact location details + optional ArtifactoryArtifact artifactory = 5; + + // HDFS contains HDFS artifact location details + optional HDFSArtifact hdfs = 6; + + // Raw contains raw artifact location details + optional RawArtifact raw = 7; +} + +message ArtifactRepositoryRef { + optional string configMap = 1; + + optional string key = 2; +} + +// ArtifactoryArtifact is the location of an artifactory artifact +message ArtifactoryArtifact { + // URL of the artifact + optional string url = 1; + + optional ArtifactoryAuth artifactoryAuth = 2; +} + +// ArtifactoryAuth describes the secret selectors required for authenticating to artifactory +message ArtifactoryAuth { + // UsernameSecret is the secret selector to the repository username + optional k8s.io.api.core.v1.SecretKeySelector usernameSecret = 1; + + // PasswordSecret is the secret selector to the repository password + optional k8s.io.api.core.v1.SecretKeySelector passwordSecret = 2; +} + +// ContinueOn defines if a workflow should continue even if a task or step fails/errors. +// It can be specified if the workflow should continue when the pod errors, fails or both. +message ContinueOn { + // +optional + optional bool error = 1; + + // +optional + optional bool failed = 2; +} + +// DAGTask represents a node in the graph during DAG execution +message DAGTask { + // Name is the name of the target + optional string name = 1; + + // Name of template to execute + optional string template = 2; + + // Arguments are the parameter and artifact arguments to the template + optional Arguments arguments = 3; + + // TemplateRef is the reference to the template resource to execute. + optional TemplateRef templateRef = 4; + + // Dependencies are name of other targets which this depends on + repeated string dependencies = 5; + + // WithItems expands a task into multiple parallel tasks from the items in the list + repeated Item withItems = 6; + + // WithParam expands a task into multiple parallel tasks from the value in the parameter, + // which is expected to be a JSON list. + optional string withParam = 7; + + // WithSequence expands a task into a numeric sequence + optional Sequence withSequence = 8; + + // When is an expression in which the task should conditionally execute + optional string when = 9; + + // ContinueOn makes argo to proceed with the following step even if this step fails. + // Errors and Failed states can be specified + optional ContinueOn continueOn = 10; +} + +// DAGTemplate is a template subtype for directed acyclic graph templates +message DAGTemplate { + // Target are one or more names of targets to execute in a DAG + optional string target = 1; + + // Tasks are a list of DAG tasks + // +patchStrategy=merge + // +patchMergeKey=name + repeated DAGTask tasks = 2; + + // This flag is for DAG logic. The DAG logic has a built-in "fail fast" feature to stop scheduling new steps, + // as soon as it detects that one of the DAG nodes is failed. Then it waits until all DAG nodes are completed + // before failing the DAG itself. + // The FailFast flag default is true, if set to false, it will allow a DAG to run all branches of the DAG to + // completion (either success or failure), regardless of the failed outcomes of branches in the DAG. + // More info and example about this feature at https://github.com/argoproj/argo/issues/1442 + optional bool failFast = 3; +} + +// ExecutorConfig holds configurations of an executor container. +message ExecutorConfig { + // ServiceAccountName specifies the service account name of the executor container. + optional string serviceAccountName = 1; +} + +// GitArtifact is the location of an git artifact +message GitArtifact { + // Repo is the git repository + optional string repo = 1; + + // Revision is the git commit, tag, branch to checkout + optional string revision = 2; + + // Depth specifies clones/fetches should be shallow and include the given + // number of commits from the branch tip + optional uint64 depth = 3; + + // Fetch specifies a number of refs that should be fetched before checkout + repeated string fetch = 4; + + // UsernameSecret is the secret selector to the repository username + optional k8s.io.api.core.v1.SecretKeySelector usernameSecret = 5; + + // PasswordSecret is the secret selector to the repository password + optional k8s.io.api.core.v1.SecretKeySelector passwordSecret = 6; + + // SSHPrivateKeySecret is the secret selector to the repository ssh private key + optional k8s.io.api.core.v1.SecretKeySelector sshPrivateKeySecret = 7; + + // InsecureIgnoreHostKey disables SSH strict host key checking during git clone + optional bool insecureIgnoreHostKey = 8; +} + +// HDFSArtifact is the location of an HDFS artifact +message HDFSArtifact { + optional HDFSConfig hDFSConfig = 1; + + // Path is a file path in HDFS + optional string path = 2; + + // Force copies a file forcibly even if it exists (default: false) + optional bool force = 3; +} + +// HDFSConfig is configurations for HDFS +message HDFSConfig { + optional HDFSKrbConfig hDFSKrbConfig = 1; + + // Addresses is accessible addresses of HDFS name nodes + repeated string addresses = 2; + + // HDFSUser is the user to access HDFS file system. + // It is ignored if either ccache or keytab is used. + optional string hdfsUser = 3; +} + +// HDFSKrbConfig is auth configurations for Kerberos +message HDFSKrbConfig { + // KrbCCacheSecret is the secret selector for Kerberos ccache + // Either ccache or keytab can be set to use Kerberos. + optional k8s.io.api.core.v1.SecretKeySelector krbCCacheSecret = 1; + + // KrbKeytabSecret is the secret selector for Kerberos keytab + // Either ccache or keytab can be set to use Kerberos. + optional k8s.io.api.core.v1.SecretKeySelector krbKeytabSecret = 2; + + // KrbUsername is the Kerberos username used with Kerberos keytab + // It must be set if keytab is used. + optional string krbUsername = 3; + + // KrbRealm is the Kerberos realm used with Kerberos keytab + // It must be set if keytab is used. + optional string krbRealm = 4; + + // KrbConfig is the configmap selector for Kerberos config as string + // It must be set if either ccache or keytab is used. + optional k8s.io.api.core.v1.ConfigMapKeySelector krbConfigConfigMap = 5; + + // KrbServicePrincipalName is the principal name of Kerberos service + // It must be set if either ccache or keytab is used. + optional string krbServicePrincipalName = 6; +} + +// HTTPArtifact allows an file served on HTTP to be placed as an input artifact in a container +message HTTPArtifact { + // URL of the artifact + optional string url = 1; +} + +// Inputs are the mechanism for passing parameters, artifacts, volumes from one template to another +message Inputs { + // Parameters are a list of parameters passed as inputs + // +patchStrategy=merge + // +patchMergeKey=name + repeated Parameter parameters = 1; + + // Artifact are a list of artifacts passed as inputs + // +patchStrategy=merge + // +patchMergeKey=name + repeated Artifact artifacts = 2; +} + +// Item expands a single workflow step into multiple parallel steps +// The value of Item can be a map, string, bool, or number +// +// +protobuf=true +// +protobuf.options.(gogoproto.goproto_stringer)=false +// +k8s:openapi-gen=true +message Item { + optional int64 type = 1; + + optional string numVal = 2; + + optional bool boolVal = 3; + + optional string strVal = 4; + + map mapVal = 5; + + repeated ItemValue listVal = 6; +} + +// +protobuf=true +// +protobuf.options.(gogoproto.goproto_stringer)=false +// +k8s:openapi-gen=true +message ItemValue { + optional int64 type = 1; + + optional string numVal = 2; + + optional bool boolVal = 3; + + optional string strVal = 4; + + map mapVal = 5; + + repeated bytes listVal = 6; +} + +// Pod metdata +message Metadata { + map annotations = 1; + + map labels = 2; +} + +// NodeStatus contains status information about an individual node in the workflow +message NodeStatus { + // ID is a unique identifier of a node within the worklow + // It is implemented as a hash of the node name, which makes the ID deterministic + optional string id = 1; + + // Name is unique name in the node tree used to generate the node ID + optional string name = 2; + + // DisplayName is a human readable representation of the node. Unique within a template boundary + optional string displayName = 3; + + // Type indicates type of node + optional string type = 4; + + // TemplateName is the template name which this node corresponds to. + // Not applicable to virtual nodes (e.g. Retry, StepGroup) + optional string templateName = 5; + + // TemplateRef is the reference to the template resource which this node corresponds to. + // Not applicable to virtual nodes (e.g. Retry, StepGroup) + optional TemplateRef templateRef = 6; + + // StoredTemplateID is the ID of stored template. + optional string storedTemplateID = 18; + + // WorkflowTemplateName is the WorkflowTemplate resource name on which the resolved template of this node is retrieved. + optional string workflowTemplateName = 19; + + // Phase a simple, high-level summary of where the node is in its lifecycle. + // Can be used as a state machine. + optional string phase = 7; + + // BoundaryID indicates the node ID of the associated template root node in which this node belongs to + optional string boundaryID = 8; + + // A human readable message indicating details about why the node is in this condition. + optional string message = 9; + + // Time at which this node started + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 10; + + // Time at which this node completed + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 11; + + // PodIP captures the IP of the pod for daemoned steps + optional string podIP = 12; + + // Daemoned tracks whether or not this node was daemoned and need to be terminated + optional bool daemoned = 13; + + // Inputs captures input parameter values and artifact locations supplied to this template invocation + optional Inputs inputs = 14; + + // Outputs captures output parameter values and artifact locations produced by this template invocation + optional Outputs outputs = 15; + + // Children is a list of child node IDs + repeated string children = 16; + + // OutboundNodes tracks the node IDs which are considered "outbound" nodes to a template invocation. + // For every invocation of a template, there are nodes which we considered as "outbound". Essentially, + // these are last nodes in the execution sequence to run, before the template is considered completed. + // These nodes are then connected as parents to a following step. + // + // In the case of single pod steps (i.e. container, script, resource templates), this list will be nil + // since the pod itself is already considered the "outbound" node. + // In the case of DAGs, outbound nodes are the "target" tasks (tasks with no children). + // In the case of steps, outbound nodes are all the containers involved in the last step group. + // NOTE: since templates are composable, the list of outbound nodes are carried upwards when + // a DAG/steps template invokes another DAG/steps template. In other words, the outbound nodes of + // a template, will be a superset of the outbound nodes of its last children. + repeated string outboundNodes = 17; +} + +// NoneStrategy indicates to skip tar process and upload the files or directory tree as independent +// files. Note that if the artifact is a directory, the artifact driver must support the ability to +// save/load the directory appropriately. +message NoneStrategy { +} + +// Outputs hold parameters, artifacts, and results from a step +message Outputs { + // Parameters holds the list of output parameters produced by a step + // +patchStrategy=merge + // +patchMergeKey=name + repeated Parameter parameters = 1; + + // Artifacts holds the list of output artifacts produced by a step + // +patchStrategy=merge + // +patchMergeKey=name + repeated Artifact artifacts = 2; + + // Result holds the result (stdout) of a script template + optional string result = 3; +} + +message ParallelSteps { + repeated WorkflowStep steps = 1; +} + +// Parameter indicate a passed string parameter to a service template with an optional default value +message Parameter { + // Name is the parameter name + optional string name = 1; + + // Default is the default value to use for an input parameter if a value was not supplied + optional string default = 2; + + // Value is the literal value to use for the parameter. + // If specified in the context of an input parameter, the value takes precedence over any passed values + optional string value = 3; + + // ValueFrom is the source for the output parameter's value + optional ValueFrom valueFrom = 4; + + // GlobalName exports an output parameter to the global scope, making it available as + // '{{workflow.outputs.parameters.XXXX}} and in workflow.status.outputs.parameters + optional string globalName = 5; +} + +// PodGC describes how to delete completed pods as they complete +message PodGC { + optional string strategy = 1; +} + +// RawArtifact allows raw string content to be placed as an artifact in a container +message RawArtifact { + // Data is the string contents of the artifact + optional string data = 1; +} + +// ResourceTemplate is a template subtype to manipulate kubernetes resources +message ResourceTemplate { + // Action is the action to perform to the resource. + // Must be one of: get, create, apply, delete, replace, patch + optional string action = 1; + + // MergeStrategy is the strategy used to merge a patch. It defaults to "strategic" + // Must be one of: strategic, merge, json + optional string mergeStrategy = 2; + + // Manifest contains the kubernetes manifest + optional string manifest = 3; + + // SetOwnerReference sets the reference to the workflow on the OwnerReference of generated resource. + optional bool setOwnerReference = 4; + + // SuccessCondition is a label selector expression which describes the conditions + // of the k8s resource in which it is acceptable to proceed to the following step + optional string successCondition = 5; + + // FailureCondition is a label selector expression which describes the conditions + // of the k8s resource in which the step was considered failed + optional string failureCondition = 6; +} + +// RetryStrategy provides controls on how to retry a workflow step +message RetryStrategy { + // Limit is the maximum number of attempts when retrying a container + optional int32 limit = 1; +} + +// S3Artifact is the location of an S3 artifact +message S3Artifact { + optional S3Bucket s3Bucket = 1; + + // Key is the key in the bucket where the artifact resides + optional string key = 2; +} + +// S3Bucket contains the access information required for interfacing with an S3 bucket +message S3Bucket { + // Endpoint is the hostname of the bucket endpoint + optional string endpoint = 1; + + // Bucket is the name of the bucket + optional string bucket = 2; + + // Region contains the optional bucket region + optional string region = 3; + + // Insecure will connect to the service with TLS + optional bool insecure = 4; + + // AccessKeySecret is the secret selector to the bucket's access key + optional k8s.io.api.core.v1.SecretKeySelector accessKeySecret = 5; + + // SecretKeySecret is the secret selector to the bucket's secret key + optional k8s.io.api.core.v1.SecretKeySelector secretKeySecret = 6; + + // RoleARN is the Amazon Resource Name (ARN) of the role to assume. + optional string roleARN = 7; +} + +// ScriptTemplate is a template subtype to enable scripting through code steps +message ScriptTemplate { + optional k8s.io.api.core.v1.Container container = 1; + + // Source contains the source code of the script to execute + optional string source = 2; +} + +// Sequence expands a workflow step into numeric range +message Sequence { + // Count is number of elements in the sequence (default: 0). Not to be used with end + optional string count = 1; + + // Number at which to start the sequence (default: 0) + optional string start = 2; + + // Number at which to end the sequence (default: 0). Not to be used with Count + optional string end = 3; + + // Format is a printf format string to format the value in the sequence + optional string format = 4; +} + +// SuspendTemplate is a template subtype to suspend a workflow at a predetermined point in time +message SuspendTemplate { +} + +// TarStrategy will tar and gzip the file or directory when saving +message TarStrategy { +} + +// Template is a reusable and composable unit of execution in a workflow +message Template { + // Name is the name of the template + optional string name = 1; + + // Template is the name of the template which is used as the base of this template. + optional string template = 2; + + // Arguments hold arguments to the template. + optional Arguments arguments = 3; + + // TemplateRef is the reference to the template resource which is used as the base of this template. + optional TemplateRef templateRef = 4; + + // Inputs describe what inputs parameters and artifacts are supplied to this template + optional Inputs inputs = 5; + + // Outputs describe the parameters and artifacts that this template produces + optional Outputs outputs = 6; + + // NodeSelector is a selector to schedule this step of the workflow to be + // run on the selected node(s). Overrides the selector set at the workflow level. + map nodeSelector = 7; + + // Affinity sets the pod's scheduling constraints + // Overrides the affinity set at the workflow level (if any) + optional k8s.io.api.core.v1.Affinity affinity = 8; + + // Metdata sets the pods's metadata, i.e. annotations and labels + optional Metadata metadata = 9; + + // Deamon will allow a workflow to proceed to the next step so long as the container reaches readiness + optional bool daemon = 10; + + // Steps define a series of sequential/parallel workflow steps + repeated ParallelSteps steps = 11; + + // Container is the main container image to run in the pod + optional k8s.io.api.core.v1.Container container = 12; + + // Script runs a portion of code against an interpreter + optional ScriptTemplate script = 13; + + // Resource template subtype which can run k8s resources + optional ResourceTemplate resource = 14; + + // DAG template subtype which runs a DAG + optional DAGTemplate dag = 15; + + // Suspend template subtype which can suspend a workflow when reaching the step + optional SuspendTemplate suspend = 16; + + // Volumes is a list of volumes that can be mounted by containers in a template. + // +patchStrategy=merge + // +patchMergeKey=name + repeated k8s.io.api.core.v1.Volume volumes = 17; + + // InitContainers is a list of containers which run before the main container. + // +patchStrategy=merge + // +patchMergeKey=name + repeated UserContainer initContainers = 18; + + // Sidecars is a list of containers which run alongside the main container + // Sidecars are automatically killed when the main container completes + // +patchStrategy=merge + // +patchMergeKey=name + repeated UserContainer sidecars = 19; + + // Location in which all files related to the step will be stored (logs, artifacts, etc...). + // Can be overridden by individual items in Outputs. If omitted, will use the default + // artifact repository location configured in the controller, appended with the + // / in the key. + optional ArtifactLocation archiveLocation = 20; + + // Optional duration in seconds relative to the StartTime that the pod may be active on a node + // before the system actively tries to terminate the pod; value must be positive integer + // This field is only applicable to container and script templates. + optional int64 activeDeadlineSeconds = 21; + + // RetryStrategy describes how to retry a template when it fails + optional RetryStrategy retryStrategy = 22; + + // Parallelism limits the max total parallel pods that can execute at the same time within the + // boundaries of this template invocation. If additional steps/dag templates are invoked, the + // pods created by those templates will not be counted towards this total. + optional int64 parallelism = 23; + + // Tolerations to apply to workflow pods. + // +patchStrategy=merge + // +patchMergeKey=key + repeated k8s.io.api.core.v1.Toleration tolerations = 24; + + // If specified, the pod will be dispatched by specified scheduler. + // Or it will be dispatched by workflow scope scheduler if specified. + // If neither specified, the pod will be dispatched by default scheduler. + // +optional + optional string schedulerName = 25; + + // PriorityClassName to apply to workflow pods. + optional string priorityClassName = 26; + + // Priority to apply to workflow pods. + optional int32 priority = 27; + + // ServiceAccountName to apply to workflow pods + optional string serviceAccountName = 28; + + // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in pods. + // ServiceAccountName of ExecutorConfig must be specified if this value is false. + optional bool automountServiceAccountToken = 32; + + // Executor holds configurations of the executor container. + optional ExecutorConfig executor = 33; + + // HostAliases is an optional list of hosts and IPs that will be injected into the pod spec + // +patchStrategy=merge + // +patchMergeKey=ip + repeated k8s.io.api.core.v1.HostAlias hostAliases = 29; + + optional k8s.io.api.core.v1.PodSecurityContext securityContext = 30; + + // PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of + // container fields which are not strings (e.g. resource limits). + optional string podSpecPatch = 31; +} + +// TemplateRef is a reference of template resource. +message TemplateRef { + // Name is the resource name of the template. + optional string name = 1; + + // Template is the name of referred template in the resource. + optional string template = 2; + + // RuntimeResolution skips validation at creation time. + // By enabling this option, you can create the referred workflow template before the actual runtime. + optional bool runtimeResolution = 3; +} + +// UserContainer is a container specified by a user. +message UserContainer { + optional k8s.io.api.core.v1.Container container = 1; + + // MirrorVolumeMounts will mount the same volumes specified in the main container + // to the container (including artifacts), at the same mountPaths. This enables + // dind daemon to partially see the same filesystem as the main container in + // order to use features such as docker volume binding + optional bool mirrorVolumeMounts = 2; +} + +// ValueFrom describes a location in which to obtain the value to a parameter +message ValueFrom { + // Path in the container to retrieve an output parameter value from in container templates + optional string path = 1; + + // JSONPath of a resource to retrieve an output parameter value from in resource templates + optional string jsonPath = 2; + + // JQFilter expression against the resource object in resource templates + optional string jqFilter = 3; + + // Parameter reference to a step or dag task in which to retrieve an output parameter value from + // (e.g. '{{steps.mystep.outputs.myparam}}') + optional string parameter = 4; +} + +// Workflow is the definition of a workflow resource +// +genclient +// +genclient:noStatus +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +message Workflow { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional WorkflowSpec spec = 2; + + optional WorkflowStatus status = 3; +} + +// WorkflowList is list of Workflow resources +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +message WorkflowList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated Workflow items = 2; +} + +// WorkflowSpec is the specification of a Workflow. +message WorkflowSpec { + // Templates is a list of workflow templates used in a workflow + // +patchStrategy=merge + // +patchMergeKey=name + repeated Template templates = 1; + + // Entrypoint is a template reference to the starting point of the workflow + optional string entrypoint = 2; + + // Arguments contain the parameters and artifacts sent to the workflow entrypoint + // Parameters are referencable globally using the 'workflow' variable prefix. + // e.g. {{workflow.parameters.myparam}} + optional Arguments arguments = 3; + + // ServiceAccountName is the name of the ServiceAccount to run all pods of the workflow as. + optional string serviceAccountName = 4; + + // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in pods. + // ServiceAccountName of ExecutorConfig must be specified if this value is false. + optional bool automountServiceAccountToken = 28; + + // Executor holds configurations of executor containers of the workflow. + optional ExecutorConfig executor = 29; + + // Volumes is a list of volumes that can be mounted by containers in a workflow. + // +patchStrategy=merge + // +patchMergeKey=name + repeated k8s.io.api.core.v1.Volume volumes = 5; + + // VolumeClaimTemplates is a list of claims that containers are allowed to reference. + // The Workflow controller will create the claims at the beginning of the workflow + // and delete the claims upon completion of the workflow + // +patchStrategy=merge + // +patchMergeKey=name + repeated k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 6; + + // Parallelism limits the max total parallel pods that can execute at the same time in a workflow + optional int64 parallelism = 7; + + // ArtifactRepositoryRef specifies the configMap name and key containing the artifact repository config. + optional ArtifactRepositoryRef artifactRepositoryRef = 8; + + // Suspend will suspend the workflow and prevent execution of any future steps in the workflow + optional bool suspend = 9; + + // NodeSelector is a selector which will result in all pods of the workflow + // to be scheduled on the selected node(s). This is able to be overridden by + // a nodeSelector specified in the template. + map nodeSelector = 10; + + // Affinity sets the scheduling constraints for all pods in the workflow. + // Can be overridden by an affinity specified in the template + optional k8s.io.api.core.v1.Affinity affinity = 11; + + // Tolerations to apply to workflow pods. + // +patchStrategy=merge + // +patchMergeKey=key + repeated k8s.io.api.core.v1.Toleration tolerations = 12; + + // ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images + // in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets + // can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. + // More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod + // +patchStrategy=merge + // +patchMergeKey=name + repeated k8s.io.api.core.v1.LocalObjectReference imagePullSecrets = 13; + + // Host networking requested for this workflow pod. Default to false. + optional bool hostNetwork = 14; + + // Set DNS policy for the pod. + // Defaults to "ClusterFirst". + // Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. + // DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. + // To have DNS options set along with hostNetwork, you have to specify DNS policy + // explicitly to 'ClusterFirstWithHostNet'. + optional string dnsPolicy = 15; + + // PodDNSConfig defines the DNS parameters of a pod in addition to + // those generated from DNSPolicy. + optional k8s.io.api.core.v1.PodDNSConfig dnsConfig = 16; + + // OnExit is a template reference which is invoked at the end of the + // workflow, irrespective of the success, failure, or error of the + // primary workflow. + optional string onExit = 17; + + // TTLSecondsAfterFinished limits the lifetime of a Workflow that has finished execution + // (Succeeded, Failed, Error). If this field is set, once the Workflow finishes, it will be + // deleted after ttlSecondsAfterFinished expires. If this field is unset, + // ttlSecondsAfterFinished will not expire. If this field is set to zero, + // ttlSecondsAfterFinished expires immediately after the Workflow finishes. + optional int32 ttlSecondsAfterFinished = 18; + + // Optional duration in seconds relative to the workflow start time which the workflow is + // allowed to run before the controller terminates the workflow. A value of zero is used to + // terminate a Running workflow + optional int64 activeDeadlineSeconds = 19; + + // Priority is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first. + optional int32 priority = 20; + + // Set scheduler name for all pods. + // Will be overridden if container/script template's scheduler name is set. + // Default scheduler will be used if neither specified. + // +optional + optional string schedulerName = 21; + + // PodGC describes the strategy to use when to deleting completed pods + optional PodGC podGC = 22; + + // PriorityClassName to apply to workflow pods. + optional string podPriorityClassName = 23; + + // Priority to apply to workflow pods. + optional int32 podPriority = 24; + + // +patchStrategy=merge + // +patchMergeKey=ip + repeated k8s.io.api.core.v1.HostAlias hostAliases = 25; + + // SecurityContext holds pod-level security attributes and common container settings. + // Optional: Defaults to empty. See type description for default values of each field. + // +optiona + optional k8s.io.api.core.v1.PodSecurityContext securityContext = 26; + + // PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of + // container fields which are not strings (e.g. resource limits). + optional string podSpecPatch = 27; +} + +// WorkflowStatus contains overall status information about a workflow +message WorkflowStatus { + // Phase a simple, high-level summary of where the workflow is in its lifecycle. + optional string phase = 1; + + // Time at which this workflow started + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startedAt = 2; + + // Time at which this workflow completed + optional k8s.io.apimachinery.pkg.apis.meta.v1.Time finishedAt = 3; + + // A human readable message indicating details about why the workflow is in this condition. + optional string message = 4; + + // Compressed and base64 decoded Nodes map + optional string compressedNodes = 5; + + // Nodes is a mapping between a node ID and the node's status. + map nodes = 6; + + // StoredTemplates is a mapping between a template ref and the node's status. + map storedTemplates = 9; + + // PersistentVolumeClaims tracks all PVCs that were created as part of the workflow. + // The contents of this list are drained at the end of the workflow. + repeated k8s.io.api.core.v1.Volume persistentVolumeClaims = 7; + + // Outputs captures output values and artifact locations produced by the workflow via global outputs + optional Outputs outputs = 8; +} + +// WorkflowStep is a reference to a template to execute in a series of step +message WorkflowStep { + // Name of the step + optional string name = 1; + + // Template is the name of the template to execute as the step + optional string template = 2; + + // Arguments hold arguments to the template + optional Arguments arguments = 3; + + // TemplateRef is the reference to the template resource to execute as the step. + optional TemplateRef templateRef = 4; + + // WithItems expands a step into multiple parallel steps from the items in the list + repeated Item withItems = 5; + + // WithParam expands a step into multiple parallel steps from the value in the parameter, + // which is expected to be a JSON list. + optional string withParam = 6; + + // WithSequence expands a step into a numeric sequence + optional Sequence withSequence = 7; + + // When is an expression in which the step should conditionally execute + optional string when = 8; + + // ContinueOn makes argo to proceed with the following step even if this step fails. + // Errors and Failed states can be specified + optional ContinueOn continueOn = 9; +} + +// WorkflowTemplate is the definition of a workflow template resource +// +genclient +// +genclient:noStatus +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +message WorkflowTemplate { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + + optional WorkflowTemplateSpec spec = 2; +} + +// WorkflowTemplateList is list of WorkflowTemplate resources +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +message WorkflowTemplateList { + optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + + repeated WorkflowTemplate items = 2; +} + +// WorkflowTemplateSpec is a spec of WorkflowTemplate. +message WorkflowTemplateSpec { + // Templates is a list of workflow templates. + repeated Template templates = 1; + + // Arguments hold arguments to the template. + optional Arguments arguments = 2; +} + diff --git a/pkg/apis/workflow/v1alpha1/item.go b/pkg/apis/workflow/v1alpha1/item.go new file mode 100644 index 000000000000..883ba701f2d0 --- /dev/null +++ b/pkg/apis/workflow/v1alpha1/item.go @@ -0,0 +1,176 @@ +package v1alpha1 + +import ( + "encoding/json" + "fmt" + "strconv" +) + +// Type represents the stored type of Item. +type Type int + +const ( + Number Type = iota + String + Bool + Map + List +) + +// Item expands a single workflow step into multiple parallel steps +// The value of Item can be a map, string, bool, or number +// +// +protobuf=true +// +protobuf.options.(gogoproto.goproto_stringer)=false +// +k8s:openapi-gen=true +type Item struct { + Type Type `protobuf:"bytes,1,opt,name=type,casttype=Type"` + NumVal json.Number `protobuf:"bytes,2,opt,name=numVal"` + BoolVal bool `protobuf:"bytes,3,opt,name=boolVal"` + StrVal string `protobuf:"bytes,4,opt,name=strVal"` + MapVal map[string]ItemValue `protobuf:"bytes,5,opt,name=mapVal"` + ListVal []ItemValue `protobuf:"bytes,6,opt,name=listVal"` +} + +// UnmarshalJSON implements the json.Unmarshaller interface. +func (i *Item) UnmarshalJSON(value []byte) error { + strValue := string(value) + if _, err := strconv.Atoi(strValue); err == nil { + i.Type = Number + return json.Unmarshal(value, &i.NumVal) + } + + if _, err := strconv.ParseFloat(strValue, 64); err == nil { + i.Type = Number + return json.Unmarshal(value, &i.NumVal) + } + + if _, err := strconv.ParseBool(strValue); err == nil { + i.Type = Bool + return json.Unmarshal(value, &i.BoolVal) + } + if value[0] == '[' { + i.Type = List + err := json.Unmarshal(value, &i.ListVal) + fmt.Println(err) + return err + } + if value[0] == '{' { + i.Type = Map + return json.Unmarshal(value, &i.MapVal) + } + + i.Type = String + return json.Unmarshal(value, &i.StrVal) +} + +func (i *Item) String() string { + jsonBytes, err := json.Marshal(i) + if err != nil { + panic(err) + } + if i.Type == String { + // chop off the double quotes + return string(jsonBytes[1 : len(jsonBytes)-1]) + } + return string(jsonBytes) +} + +func (i Item) Format(s fmt.State, verb rune) { + fmt.Fprintf(s, i.String()) +} + +// MarshalJSON implements the json.Marshaller interface. +func (i Item) MarshalJSON() ([]byte, error) { + switch i.Type { + case String: + return json.Marshal(i.StrVal) + case Bool: + return json.Marshal(i.BoolVal) + case Number: + return json.Marshal(i.NumVal) + case Map: + return json.Marshal(i.MapVal) + case List: + return json.Marshal(i.ListVal) + default: + return []byte{}, fmt.Errorf("impossible Item.Type") + } +} + +// +protobuf=true +// +protobuf.options.(gogoproto.goproto_stringer)=false +// +k8s:openapi-gen=true +type ItemValue struct { + Type Type `protobuf:"varint,1,opt,name=type,casttype=Type"` + NumVal json.Number `protobuf:"bytes,2,opt,name=numVal"` + BoolVal bool `protobuf:"bytes,3,opt,name=boolVal"` + StrVal string `protobuf:"bytes,4,opt,name=strVal"` + MapVal map[string]string `protobuf:"bytes,5,opt,name=mapVal"` + ListVal []json.RawMessage `protobuf:"bytes,6,opt,name=listVal"` +} + +// UnmarshalJSON implements the json.Unmarshaller interface. +func (iv *ItemValue) UnmarshalJSON(value []byte) error { + strValue := string(value) + if _, err := strconv.Atoi(strValue); err == nil { + iv.Type = Number + return json.Unmarshal(value, &iv.NumVal) + } + + if _, err := strconv.ParseFloat(strValue, 64); err == nil { + iv.Type = Number + return json.Unmarshal(value, &iv.NumVal) + } + + if _, err := strconv.ParseBool(strValue); err == nil { + iv.Type = Bool + return json.Unmarshal(value, &iv.BoolVal) + } + if value[0] == '[' { + iv.Type = List + err := json.Unmarshal(value, &iv.ListVal) + fmt.Println(err) + return err + } + if value[0] == '{' { + iv.Type = Map + return json.Unmarshal(value, &iv.MapVal) + } + + iv.Type = String + return json.Unmarshal(value, &iv.StrVal) + +} + +func (iv *ItemValue) String() string { + jsonBytes, err := json.Marshal(iv) + if err != nil { + panic(err) + } + if iv.Type == String { + // chop off the double quotes + return string(jsonBytes[1 : len(jsonBytes)-1]) + } + return string(jsonBytes) +} + +func (iv ItemValue) Format(s fmt.State, verb rune) { + fmt.Fprintf(s, iv.String()) +} + +// MarshalJSON implements the json.Marshaller interface. +func (iv ItemValue) MarshalJSON() ([]byte, error) { + switch iv.Type { + case String: + return json.Marshal(iv.StrVal) + case Bool: + return json.Marshal(iv.BoolVal) + case Number: + return json.Marshal(iv.NumVal) + case Map: + return json.Marshal(iv.MapVal) + default: + return []byte{}, fmt.Errorf("impossible ItemValue.Type") + } +} diff --git a/pkg/apis/workflow/v1alpha1/item_test.go b/pkg/apis/workflow/v1alpha1/item_test.go new file mode 100644 index 000000000000..842f4402c159 --- /dev/null +++ b/pkg/apis/workflow/v1alpha1/item_test.go @@ -0,0 +1,38 @@ +package v1alpha1 + +import ( + "encoding/json" + "fmt" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestItem(t *testing.T) { + testData := map[string]Type{ + "0": Number, + "3.141": Number, + "true": Bool, + "\"hello\"": String, + "{\"val\":\"123\"}": Map, + "[\"1\",\"2\",\"3\",\"4\",\"5\"]" : List, + } + + for data, expectedType := range testData { + var itm Item + err := json.Unmarshal([]byte(data), &itm) + assert.Nil(t, err) + assert.Equal(t, itm.Type, expectedType) + jsonBytes, err := json.Marshal(itm) + assert.Equal(t, string(data), string(jsonBytes)) + if itm.Type == String { + assert.Equal(t, string(data), fmt.Sprintf("\"%v\"", itm)) + assert.Equal(t, string(data), fmt.Sprintf("\"%s\"", itm)) + }else { + assert.Equal(t, string(data), fmt.Sprintf("%v", itm)) + assert.Equal(t, string(data), fmt.Sprintf("%s", itm)) + } + } +} + + diff --git a/pkg/apis/workflow/v1alpha1/openapi_generated.go b/pkg/apis/workflow/v1alpha1/openapi_generated.go index 328895c74bec..5883dbae9a49 100644 --- a/pkg/apis/workflow/v1alpha1/openapi_generated.go +++ b/pkg/apis/workflow/v1alpha1/openapi_generated.go @@ -31,10 +31,12 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.HTTPArtifact": schema_pkg_apis_workflow_v1alpha1_HTTPArtifact(ref), "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Inputs": schema_pkg_apis_workflow_v1alpha1_Inputs(ref), "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Item": schema_pkg_apis_workflow_v1alpha1_Item(ref), + "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ItemValue": schema_pkg_apis_workflow_v1alpha1_ItemValue(ref), "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Metadata": schema_pkg_apis_workflow_v1alpha1_Metadata(ref), "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.NodeStatus": schema_pkg_apis_workflow_v1alpha1_NodeStatus(ref), "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.NoneStrategy": schema_pkg_apis_workflow_v1alpha1_NoneStrategy(ref), "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Outputs": schema_pkg_apis_workflow_v1alpha1_Outputs(ref), + "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ParallelSteps": schema_pkg_apis_workflow_v1alpha1_ParallelSteps(ref), "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Parameter": schema_pkg_apis_workflow_v1alpha1_Parameter(ref), "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.PodGC": schema_pkg_apis_workflow_v1alpha1_PodGC(ref), "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.RawArtifact": schema_pkg_apis_workflow_v1alpha1_RawArtifact(ref), @@ -604,7 +606,7 @@ func schema_pkg_apis_workflow_v1alpha1_GitArtifact(ref common.ReferenceCallback) SchemaProps: spec.SchemaProps{ Description: "Depth specifies clones/fetches should be shallow and include the given number of commits from the branch tip", Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, "fetch": { @@ -961,6 +963,70 @@ func schema_pkg_apis_workflow_v1alpha1_Item(ref common.ReferenceCallback) common } } +func schema_pkg_apis_workflow_v1alpha1_ItemValue(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "Type": { + SchemaProps: spec.SchemaProps{ + Type: []string{"integer"}, + Format: "int32", + }, + }, + "NumVal": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "BoolVal": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "StrVal": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "MapVal": { + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "ListVal": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + }, + Required: []string{"Type", "NumVal", "BoolVal", "StrVal", "MapVal", "ListVal"}, + }, + }, + } +} + func schema_pkg_apis_workflow_v1alpha1_Metadata(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -1231,6 +1297,33 @@ func schema_pkg_apis_workflow_v1alpha1_Outputs(ref common.ReferenceCallback) com } } +func schema_pkg_apis_workflow_v1alpha1_ParallelSteps(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "Steps": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowStep"), + }, + }, + }, + }, + }, + }, + Required: []string{"Steps"}, + }, + }, + Dependencies: []string{ + "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowStep"}, + } +} + func schema_pkg_apis_workflow_v1alpha1_Parameter(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ @@ -1698,6 +1791,12 @@ func schema_pkg_apis_workflow_v1alpha1_ScriptTemplate(ref common.ReferenceCallba Ref: ref("k8s.io/api/core/v1.Probe"), }, }, + "startupProbe": { + SchemaProps: spec.SchemaProps{ + Description: "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is an alpha feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + Ref: ref("k8s.io/api/core/v1.Probe"), + }, + }, "lifecycle": { SchemaProps: spec.SchemaProps{ Description: "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", @@ -1917,14 +2016,7 @@ func schema_pkg_apis_workflow_v1alpha1_Template(ref common.ReferenceCallback) co Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowStep"), - }, - }, - }, + Ref: ref("github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ParallelSteps"), }, }, }, @@ -2124,8 +2216,7 @@ func schema_pkg_apis_workflow_v1alpha1_Template(ref common.ReferenceCallback) co }, "securityContext": { SchemaProps: spec.SchemaProps{ - Description: "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.", - Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), + Ref: ref("k8s.io/api/core/v1.PodSecurityContext"), }, }, "podSpecPatch": { @@ -2140,7 +2231,7 @@ func schema_pkg_apis_workflow_v1alpha1_Template(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Arguments", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArtifactLocation", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.DAGTemplate", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ExecutorConfig", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Inputs", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Metadata", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Outputs", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ResourceTemplate", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.RetryStrategy", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ScriptTemplate", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.SuspendTemplate", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.TemplateRef", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.UserContainer", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.WorkflowStep", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.Volume"}, + "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Arguments", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ArtifactLocation", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.DAGTemplate", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ExecutorConfig", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Inputs", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Metadata", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.Outputs", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ParallelSteps", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ResourceTemplate", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.RetryStrategy", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.ScriptTemplate", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.SuspendTemplate", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.TemplateRef", "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1.UserContainer", "k8s.io/api/core/v1.Affinity", "k8s.io/api/core/v1.Container", "k8s.io/api/core/v1.HostAlias", "k8s.io/api/core/v1.PodSecurityContext", "k8s.io/api/core/v1.Toleration", "k8s.io/api/core/v1.Volume"}, } } @@ -2346,6 +2437,12 @@ func schema_pkg_apis_workflow_v1alpha1_UserContainer(ref common.ReferenceCallbac Ref: ref("k8s.io/api/core/v1.Probe"), }, }, + "startupProbe": { + SchemaProps: spec.SchemaProps{ + Description: "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is an alpha feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes", + Ref: ref("k8s.io/api/core/v1.Probe"), + }, + }, "lifecycle": { SchemaProps: spec.SchemaProps{ Description: "Actions that the management system should take in response to container lifecycle events. Cannot be updated.", @@ -2466,14 +2563,14 @@ func schema_pkg_apis_workflow_v1alpha1_Workflow(ref common.ReferenceCallback) co Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -2511,14 +2608,14 @@ func schema_pkg_apis_workflow_v1alpha1_WorkflowList(ref common.ReferenceCallback Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -2808,8 +2905,7 @@ func schema_pkg_apis_workflow_v1alpha1_WorkflowSpec(ref common.ReferenceCallback }, }, SchemaProps: spec.SchemaProps{ - Description: "HostAliases is an optional list of hosts and IPs that will be injected into the pod spec", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -3025,14 +3121,14 @@ func schema_pkg_apis_workflow_v1alpha1_WorkflowTemplate(ref common.ReferenceCall Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, @@ -3065,14 +3161,14 @@ func schema_pkg_apis_workflow_v1alpha1_WorkflowTemplateList(ref common.Reference Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, diff --git a/pkg/apis/workflow/v1alpha1/workflow_template_types.go b/pkg/apis/workflow/v1alpha1/workflow_template_types.go index 61cde1b18831..7fa6e3df0afd 100644 --- a/pkg/apis/workflow/v1alpha1/workflow_template_types.go +++ b/pkg/apis/workflow/v1alpha1/workflow_template_types.go @@ -10,16 +10,16 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type WorkflowTemplate struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec WorkflowTemplateSpec `json:"spec"` + metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + Spec WorkflowTemplateSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` } // WorkflowTemplateList is list of WorkflowTemplate resources // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type WorkflowTemplateList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata"` - Items []WorkflowTemplate `json:"items"` + metav1.ListMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"` + Items []WorkflowTemplate `json:"items" protobuf:"bytes,2,rep,name=items"` } var _ TemplateGetter = &WorkflowTemplate{} @@ -27,9 +27,9 @@ var _ TemplateGetter = &WorkflowTemplate{} // WorkflowTemplateSpec is a spec of WorkflowTemplate. type WorkflowTemplateSpec struct { // Templates is a list of workflow templates. - Templates []Template `json:"templates"` + Templates []Template `json:"templates" protobuf:"bytes,1,rep,name=templates"` // Arguments hold arguments to the template. - Arguments Arguments `json:"arguments,omitempty"` + Arguments Arguments `json:"arguments,omitempty" protobuf:"bytes,2,opt,name=arguments"` } // GetTemplateByName retrieves a defined template by its name diff --git a/pkg/apis/workflow/v1alpha1/workflow_types.go b/pkg/apis/workflow/v1alpha1/workflow_types.go index 6d68c865cc47..4aecd90327ff 100644 --- a/pkg/apis/workflow/v1alpha1/workflow_types.go +++ b/pkg/apis/workflow/v1alpha1/workflow_types.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "hash/fnv" - "strings" apiv1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -85,17 +84,17 @@ type TemplateHolder interface { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type Workflow struct { metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata"` - Spec WorkflowSpec `json:"spec"` - Status WorkflowStatus `json:"status"` + metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"` + Spec WorkflowSpec `json:"spec" protobuf:"bytes,2,opt,name=spec "` + Status WorkflowStatus `json:"status" protobuf:"bytes,3,opt,name=status"` } // WorkflowList is list of Workflow resources // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type WorkflowList struct { metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata"` - Items []Workflow `json:"items"` + metav1.ListMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"` + Items []Workflow `json:"items" protobuf:"bytes,2,opt,name=items"` } var _ TemplateGetter = &Workflow{} @@ -105,60 +104,60 @@ type WorkflowSpec struct { // Templates is a list of workflow templates used in a workflow // +patchStrategy=merge // +patchMergeKey=name - Templates []Template `json:"templates" patchStrategy:"merge" patchMergeKey:"name"` + Templates []Template `json:"templates" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,1,opt,name=templates"` // Entrypoint is a template reference to the starting point of the workflow - Entrypoint string `json:"entrypoint"` + Entrypoint string `json:"entrypoint" protobuf:"bytes,2,opt,name=entrypoint"` // Arguments contain the parameters and artifacts sent to the workflow entrypoint // Parameters are referencable globally using the 'workflow' variable prefix. // e.g. {{workflow.parameters.myparam}} - Arguments Arguments `json:"arguments,omitempty"` + Arguments Arguments `json:"arguments,omitempty" protobuf:"bytes,3,opt,name=arguments"` // ServiceAccountName is the name of the ServiceAccount to run all pods of the workflow as. - ServiceAccountName string `json:"serviceAccountName,omitempty"` + ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,4,opt,name=serviceAccountName"` // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in pods. // ServiceAccountName of ExecutorConfig must be specified if this value is false. - AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` + AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" protobuf:"varint,28,opt,name=automountServiceAccountToken"` // Executor holds configurations of executor containers of the workflow. - Executor *ExecutorConfig `json:"executor,omitempty"` + Executor *ExecutorConfig `json:"executor,omitempty" protobuf:"bytes,29,opt,name=executor"` // Volumes is a list of volumes that can be mounted by containers in a workflow. // +patchStrategy=merge // +patchMergeKey=name - Volumes []apiv1.Volume `json:"volumes,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Volumes []apiv1.Volume `json:"volumes,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,5,opt,name=volumes"` // VolumeClaimTemplates is a list of claims that containers are allowed to reference. // The Workflow controller will create the claims at the beginning of the workflow // and delete the claims upon completion of the workflow // +patchStrategy=merge // +patchMergeKey=name - VolumeClaimTemplates []apiv1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + VolumeClaimTemplates []apiv1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,6,opt,name=volumeClaimTemplates"` // Parallelism limits the max total parallel pods that can execute at the same time in a workflow - Parallelism *int64 `json:"parallelism,omitempty"` + Parallelism *int64 `json:"parallelism,omitempty" protobuf:"bytes,7,opt,name=parallelism"` // ArtifactRepositoryRef specifies the configMap name and key containing the artifact repository config. - ArtifactRepositoryRef *ArtifactRepositoryRef `json:"artifactRepositoryRef,omitempty"` + ArtifactRepositoryRef *ArtifactRepositoryRef `json:"artifactRepositoryRef,omitempty" protobuf:"bytes,8,opt,name=artifactRepositoryRef"` // Suspend will suspend the workflow and prevent execution of any future steps in the workflow - Suspend *bool `json:"suspend,omitempty"` + Suspend *bool `json:"suspend,omitempty" protobuf:"bytes,9,opt,name=suspend"` // NodeSelector is a selector which will result in all pods of the workflow // to be scheduled on the selected node(s). This is able to be overridden by // a nodeSelector specified in the template. - NodeSelector map[string]string `json:"nodeSelector,omitempty"` + NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,10,opt,name=nodeSelector"` // Affinity sets the scheduling constraints for all pods in the workflow. // Can be overridden by an affinity specified in the template - Affinity *apiv1.Affinity `json:"affinity,omitempty"` + Affinity *apiv1.Affinity `json:"affinity,omitempty" protobuf:"bytes,11,opt,name=affinity"` // Tolerations to apply to workflow pods. // +patchStrategy=merge // +patchMergeKey=key - Tolerations []apiv1.Toleration `json:"tolerations,omitempty" patchStrategy:"merge" patchMergeKey:"key"` + Tolerations []apiv1.Toleration `json:"tolerations,omitempty" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,12,opt,name=tolerations"` // ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images // in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets @@ -166,10 +165,10 @@ type WorkflowSpec struct { // More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod // +patchStrategy=merge // +patchMergeKey=name - ImagePullSecrets []apiv1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + ImagePullSecrets []apiv1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,13,opt,name=imagePullSecrets"` // Host networking requested for this workflow pod. Default to false. - HostNetwork *bool `json:"hostNetwork,omitempty"` + HostNetwork *bool `json:"hostNetwork,omitempty" protobuf:"bytes,14,opt,name=hostNetwork"` // Set DNS policy for the pod. // Defaults to "ClusterFirst". @@ -177,60 +176,76 @@ type WorkflowSpec struct { // DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. // To have DNS options set along with hostNetwork, you have to specify DNS policy // explicitly to 'ClusterFirstWithHostNet'. - DNSPolicy *apiv1.DNSPolicy `json:"dnsPolicy,omitempty"` + DNSPolicy *apiv1.DNSPolicy `json:"dnsPolicy,omitempty" protobuf:"bytes,15,opt,name=dnsPolicy"` // PodDNSConfig defines the DNS parameters of a pod in addition to // those generated from DNSPolicy. - DNSConfig *apiv1.PodDNSConfig `json:"dnsConfig,omitempty"` + DNSConfig *apiv1.PodDNSConfig `json:"dnsConfig,omitempty" protobuf:"bytes,16,opt,name=dnsConfig"` // OnExit is a template reference which is invoked at the end of the // workflow, irrespective of the success, failure, or error of the // primary workflow. - OnExit string `json:"onExit,omitempty"` + OnExit string `json:"onExit,omitempty" protobuf:"bytes,17,opt,name=onExit"` // TTLSecondsAfterFinished limits the lifetime of a Workflow that has finished execution // (Succeeded, Failed, Error). If this field is set, once the Workflow finishes, it will be // deleted after ttlSecondsAfterFinished expires. If this field is unset, // ttlSecondsAfterFinished will not expire. If this field is set to zero, // ttlSecondsAfterFinished expires immediately after the Workflow finishes. - TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty"` + TTLSecondsAfterFinished *int32 `json:"ttlSecondsAfterFinished,omitempty" protobuf:"bytes,18,opt,name=ttlSecondsAfterFinished"` // Optional duration in seconds relative to the workflow start time which the workflow is // allowed to run before the controller terminates the workflow. A value of zero is used to // terminate a Running workflow - ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"bytes,19,opt,name=activeDeadlineSeconds"` // Priority is used if controller is configured to process limited number of workflows in parallel. Workflows with higher priority are processed first. - Priority *int32 `json:"priority,omitempty"` + Priority *int32 `json:"priority,omitempty" protobuf:"bytes,20,opt,name=priority"` // Set scheduler name for all pods. // Will be overridden if container/script template's scheduler name is set. // Default scheduler will be used if neither specified. // +optional - SchedulerName string `json:"schedulerName,omitempty"` + SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,21,opt,name=schedulerName"` // PodGC describes the strategy to use when to deleting completed pods - PodGC *PodGC `json:"podGC,omitempty"` + PodGC *PodGC `json:"podGC,omitempty" protobuf:"bytes,22,opt,name=podGC"` // PriorityClassName to apply to workflow pods. - PodPriorityClassName string `json:"podPriorityClassName,omitempty"` + PodPriorityClassName string `json:"podPriorityClassName,omitempty" protobuf:"bytes,23,opt,name=podPriorityClassName"` // Priority to apply to workflow pods. - PodPriority *int32 `json:"podPriority,omitempty"` + PodPriority *int32 `json:"podPriority,omitempty" protobuf:"bytes,24,opt,name=podPriority"` - // HostAliases is an optional list of hosts and IPs that will be injected into the pod spec // +patchStrategy=merge // +patchMergeKey=ip - HostAliases []apiv1.HostAlias `json:"hostAliases,omitempty" patchStrategy:"merge" patchMergeKey:"ip"` + HostAliases []apiv1.HostAlias `json:"hostAliases,omitempty" patchStrategy:"merge" patchMergeKey:"ip" protobuf:"bytes,25,opt,name=hostAliases"` // SecurityContext holds pod-level security attributes and common container settings. // Optional: Defaults to empty. See type description for default values of each field. - // +optional - SecurityContext *apiv1.PodSecurityContext `json:"securityContext,omitempty"` - + // +optiona + SecurityContext *apiv1.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,26,opt,name=securityContext"` // PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of // container fields which are not strings (e.g. resource limits). - PodSpecPatch string `json:"podSpecPatch,omitempty"` + PodSpecPatch string `json:"podSpecPatch,omitempty" protobuf:"bytes,27,opt,name=podSpecPatch"` +} + +type ParallelSteps struct { + Steps []WorkflowStep `protobuf:"bytes,1,rep,name=steps"` +} + +func (p *ParallelSteps) UnmarshalJSON(value []byte) error { + err := json.Unmarshal(value, &p.Steps) + if err != nil { + return err + } + return nil +} + +func (p *ParallelSteps) MarshalJSON() ([]byte, error) { + fmt.Println(p.Steps) + return json.Marshal(p.Steps) + } func (wfs *WorkflowSpec) HasPodSpecPatch() bool { @@ -240,130 +255,131 @@ func (wfs *WorkflowSpec) HasPodSpecPatch() bool { // Template is a reusable and composable unit of execution in a workflow type Template struct { // Name is the name of the template - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Template is the name of the template which is used as the base of this template. - Template string `json:"template,omitempty"` + Template string `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"` // Arguments hold arguments to the template. - Arguments Arguments `json:"arguments,omitempty"` + Arguments Arguments `json:"arguments,omitempty" protobuf:"bytes,3,opt,name=arguments"` // TemplateRef is the reference to the template resource which is used as the base of this template. - TemplateRef *TemplateRef `json:"templateRef,omitempty"` + TemplateRef *TemplateRef `json:"templateRef,omitempty" protobuf:"bytes,4,opt,name=templateRef"` // Inputs describe what inputs parameters and artifacts are supplied to this template - Inputs Inputs `json:"inputs,omitempty"` + Inputs Inputs `json:"inputs,omitempty" protobuf:"bytes,5,opt,name=inputs"` // Outputs describe the parameters and artifacts that this template produces - Outputs Outputs `json:"outputs,omitempty"` + Outputs Outputs `json:"outputs,omitempty" protobuf:"bytes,6,opt,name=outputs"` // NodeSelector is a selector to schedule this step of the workflow to be // run on the selected node(s). Overrides the selector set at the workflow level. - NodeSelector map[string]string `json:"nodeSelector,omitempty"` + NodeSelector map[string]string `json:"nodeSelector,omitempty" protobuf:"bytes,7,opt,name=nodeSelector"` // Affinity sets the pod's scheduling constraints // Overrides the affinity set at the workflow level (if any) - Affinity *apiv1.Affinity `json:"affinity,omitempty"` + Affinity *apiv1.Affinity `json:"affinity,omitempty" protobuf:"bytes,8,opt,name=affinity"` // Metdata sets the pods's metadata, i.e. annotations and labels - Metadata Metadata `json:"metadata,omitempty"` + Metadata Metadata `json:"metadata,omitempty" protobuf:"bytes,9,opt,name=metadata"` // Deamon will allow a workflow to proceed to the next step so long as the container reaches readiness - Daemon *bool `json:"daemon,omitempty"` + Daemon *bool `json:"daemon,omitempty" protobuf:"bytes,10,opt,name=daemon"` // Steps define a series of sequential/parallel workflow steps - Steps [][]WorkflowStep `json:"steps,omitempty"` + Steps []ParallelSteps `json:"steps,omitempty" protobuf:"bytes,11,opt,name=steps"` // Container is the main container image to run in the pod - Container *apiv1.Container `json:"container,omitempty"` + Container *apiv1.Container `json:"container,omitempty" protobuf:"bytes,12,opt,name=container"` // Script runs a portion of code against an interpreter - Script *ScriptTemplate `json:"script,omitempty"` + Script *ScriptTemplate `json:"script,omitempty" protobuf:"bytes,13,opt,name=script"` // Resource template subtype which can run k8s resources - Resource *ResourceTemplate `json:"resource,omitempty"` + Resource *ResourceTemplate `json:"resource,omitempty" protobuf:"bytes,14,opt,name=resource"` // DAG template subtype which runs a DAG - DAG *DAGTemplate `json:"dag,omitempty"` + DAG *DAGTemplate `json:"dag,omitempty" protobuf:"bytes,15,opt,name=dag"` // Suspend template subtype which can suspend a workflow when reaching the step - Suspend *SuspendTemplate `json:"suspend,omitempty"` + Suspend *SuspendTemplate `json:"suspend,omitempty" protobuf:"bytes,16,opt,name=suspend"` // Volumes is a list of volumes that can be mounted by containers in a template. // +patchStrategy=merge // +patchMergeKey=name - Volumes []apiv1.Volume `json:"volumes,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Volumes []apiv1.Volume `json:"volumes,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,17,opt,name=volumes"` // InitContainers is a list of containers which run before the main container. // +patchStrategy=merge // +patchMergeKey=name - InitContainers []UserContainer `json:"initContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + InitContainers []UserContainer `json:"initContainers,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,18,opt,name=initContainers"` // Sidecars is a list of containers which run alongside the main container // Sidecars are automatically killed when the main container completes // +patchStrategy=merge // +patchMergeKey=name - Sidecars []UserContainer `json:"sidecars,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Sidecars []UserContainer `json:"sidecars,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,19,opt,name=sidecars"` // Location in which all files related to the step will be stored (logs, artifacts, etc...). // Can be overridden by individual items in Outputs. If omitted, will use the default // artifact repository location configured in the controller, appended with the // / in the key. - ArchiveLocation *ArtifactLocation `json:"archiveLocation,omitempty"` + ArchiveLocation *ArtifactLocation `json:"archiveLocation,omitempty" protobuf:"bytes,20,opt,name=archiveLocation"` // Optional duration in seconds relative to the StartTime that the pod may be active on a node // before the system actively tries to terminate the pod; value must be positive integer // This field is only applicable to container and script templates. - ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` + ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"bytes,21,opt,name=activeDeadlineSeconds"` // RetryStrategy describes how to retry a template when it fails - RetryStrategy *RetryStrategy `json:"retryStrategy,omitempty"` + RetryStrategy *RetryStrategy `json:"retryStrategy,omitempty" protobuf:"bytes,22,opt,name=retryStrategy"` // Parallelism limits the max total parallel pods that can execute at the same time within the // boundaries of this template invocation. If additional steps/dag templates are invoked, the // pods created by those templates will not be counted towards this total. - Parallelism *int64 `json:"parallelism,omitempty"` + Parallelism *int64 `json:"parallelism,omitempty" protobuf:"bytes,23,opt,name=parallelism"` // Tolerations to apply to workflow pods. // +patchStrategy=merge // +patchMergeKey=key - Tolerations []apiv1.Toleration `json:"tolerations,omitempty" patchStrategy:"merge" patchMergeKey:"key"` + Tolerations []apiv1.Toleration `json:"tolerations,omitempty" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,24,opt,name=tolerations"` // If specified, the pod will be dispatched by specified scheduler. // Or it will be dispatched by workflow scope scheduler if specified. // If neither specified, the pod will be dispatched by default scheduler. // +optional - SchedulerName string `json:"schedulerName,omitempty"` + SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,25,opt,name=schedulerName"` // PriorityClassName to apply to workflow pods. - PriorityClassName string `json:"priorityClassName,omitempty"` + PriorityClassName string `json:"priorityClassName,omitempty" protobuf:"bytes,26,opt,name=priorityClassName"` // Priority to apply to workflow pods. - Priority *int32 `json:"priority,omitempty"` + Priority *int32 `json:"priority,omitempty" protobuf:"bytes,27,opt,name=priority"` // ServiceAccountName to apply to workflow pods - ServiceAccountName string `json:"serviceAccountName,omitempty"` + ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,28,opt,name=serviceAccountName"` // AutomountServiceAccountToken indicates whether a service account token should be automatically mounted in pods. // ServiceAccountName of ExecutorConfig must be specified if this value is false. - AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"` + AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty" protobuf:"varint,32,opt,name=automountServiceAccountToken"` // Executor holds configurations of the executor container. - Executor *ExecutorConfig `json:"executor,omitempty"` + Executor *ExecutorConfig `json:"executor,omitempty" protobuf:"bytes,33,opt,name=executor"` // HostAliases is an optional list of hosts and IPs that will be injected into the pod spec // +patchStrategy=merge // +patchMergeKey=ip - HostAliases []apiv1.HostAlias `json:"hostAliases,omitempty" patchStrategy:"merge" patchMergeKey:"ip"` + HostAliases []apiv1.HostAlias `json:"hostAliases,omitempty" patchStrategy:"merge" patchMergeKey:"ip" protobuf:"bytes,29,opt,name=hostAliases"` // SecurityContext holds pod-level security attributes and common container settings. // Optional: Defaults to empty. See type description for default values of each field. // +optional - SecurityContext *apiv1.PodSecurityContext `json:"securityContext,omitempty"` + + SecurityContext *apiv1.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,30,opt,name=securityContext"` // PodSpecPatch holds strategic merge patch to apply against the pod spec. Allows parameterization of // container fields which are not strings (e.g. resource limits). - PodSpecPatch string `json:"podSpecPatch,omitempty"` + PodSpecPatch string `json:"podSpecPatch,omitempty" protobuf:"bytes,31,opt,name=podSpecPatch"` } var _ TemplateHolder = &Template{} @@ -400,94 +416,94 @@ type Inputs struct { // Parameters are a list of parameters passed as inputs // +patchStrategy=merge // +patchMergeKey=name - Parameters []Parameter `json:"parameters,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Parameters []Parameter `json:"parameters,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,1,opt,name=parameters"` // Artifact are a list of artifacts passed as inputs // +patchStrategy=merge // +patchMergeKey=name - Artifacts []Artifact `json:"artifacts,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Artifacts []Artifact `json:"artifacts,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,opt,name=artifacts"` } // Pod metdata type Metadata struct { - Annotations map[string]string `json:"annotations,omitempty"` - Labels map[string]string `json:"labels,omitempty"` + Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,1,opt,name=annotations"` + Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,2,opt,name=labels"` } // Parameter indicate a passed string parameter to a service template with an optional default value type Parameter struct { // Name is the parameter name - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Default is the default value to use for an input parameter if a value was not supplied - Default *string `json:"default,omitempty"` + Default *string `json:"default,omitempty" protobuf:"bytes,2,opt,name=default"` // Value is the literal value to use for the parameter. // If specified in the context of an input parameter, the value takes precedence over any passed values - Value *string `json:"value,omitempty"` + Value *string `json:"value,omitempty" protobuf:"bytes,3,opt,name=value"` // ValueFrom is the source for the output parameter's value - ValueFrom *ValueFrom `json:"valueFrom,omitempty"` + ValueFrom *ValueFrom `json:"valueFrom,omitempty" protobuf:"bytes,4,opt,name=valueFrom"` // GlobalName exports an output parameter to the global scope, making it available as // '{{workflow.outputs.parameters.XXXX}} and in workflow.status.outputs.parameters - GlobalName string `json:"globalName,omitempty"` + GlobalName string `json:"globalName,omitempty" protobuf:"bytes,5,opt,name=globalName"` } // ValueFrom describes a location in which to obtain the value to a parameter type ValueFrom struct { // Path in the container to retrieve an output parameter value from in container templates - Path string `json:"path,omitempty"` + Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"` // JSONPath of a resource to retrieve an output parameter value from in resource templates - JSONPath string `json:"jsonPath,omitempty"` + JSONPath string `json:"jsonPath,omitempty" protobuf:"bytes,2,opt,name=jsonPath"` // JQFilter expression against the resource object in resource templates - JQFilter string `json:"jqFilter,omitempty"` + JQFilter string `json:"jqFilter,omitempty" protobuf:"bytes,3,opt,name=jqFilter"` // Parameter reference to a step or dag task in which to retrieve an output parameter value from // (e.g. '{{steps.mystep.outputs.myparam}}') - Parameter string `json:"parameter,omitempty"` + Parameter string `json:"parameter,omitempty" protobuf:"bytes,4,opt,name=parameter"` } // Artifact indicates an artifact to place at a specified path type Artifact struct { // name of the artifact. must be unique within a template's inputs/outputs. - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Path is the container path to the artifact - Path string `json:"path,omitempty"` + Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"` // mode bits to use on this file, must be a value between 0 and 0777 // set when loading input artifacts. - Mode *int32 `json:"mode,omitempty"` + Mode *int32 `json:"mode,omitempty" protobuf:"varint,3,opt,name=mode"` // From allows an artifact to reference an artifact from a previous step - From string `json:"from,omitempty"` + From string `json:"from,omitempty" protobuf:"bytes,4,opt,name=from"` // ArtifactLocation contains the location of the artifact - ArtifactLocation `json:",inline"` + ArtifactLocation `json:",inline" protobuf:"bytes,5,opt,name=artifactLocation"` // GlobalName exports an output artifact to the global scope, making it available as // '{{workflow.outputs.artifacts.XXXX}} and in workflow.status.outputs.artifacts - GlobalName string `json:"globalName,omitempty"` + GlobalName string `json:"globalName,omitempty" protobuf:"bytes,6,opt,name=globalName"` // Archive controls how the artifact will be saved to the artifact repository. - Archive *ArchiveStrategy `json:"archive,omitempty"` + Archive *ArchiveStrategy `json:"archive,omitempty" protobuf:"bytes,7,opt,name=archive"` // Make Artifacts optional, if Artifacts doesn't generate or exist - Optional bool `json:"optional,omitempty"` + Optional bool `json:"optional,omitempty" protobuf:"varint,8,opt,name=optional"` } // PodGC describes how to delete completed pods as they complete type PodGC struct { - Strategy PodGCStrategy `json:"strategy,omitempty"` + Strategy PodGCStrategy `json:"strategy,omitempty" protobuf:"bytes,1,opt,name=strategy,casttype=PodGCStrategy"` } // ArchiveStrategy describes how to archive files/directory when saving artifacts type ArchiveStrategy struct { - Tar *TarStrategy `json:"tar,omitempty"` - None *NoneStrategy `json:"none,omitempty"` + Tar *TarStrategy `json:"tar,omitempty" protobuf:"bytes,1,opt,name=tar"` + None *NoneStrategy `json:"none,omitempty" protobuf:"bytes,2,opt,name=none"` } // TarStrategy will tar and gzip the file or directory when saving @@ -504,30 +520,30 @@ type NoneStrategy struct{} // of a single workflow step, which the executor will use as a default location to store its files. type ArtifactLocation struct { // ArchiveLogs indicates if the container logs should be archived - ArchiveLogs *bool `json:"archiveLogs,omitempty"` + ArchiveLogs *bool `json:"archiveLogs,omitempty" protobuf:"varint,1,opt,name=archiveLogs"` // S3 contains S3 artifact location details - S3 *S3Artifact `json:"s3,omitempty"` + S3 *S3Artifact `json:"s3,omitempty" protobuf:"bytes,2,opt,name=s3"` // Git contains git artifact location details - Git *GitArtifact `json:"git,omitempty"` + Git *GitArtifact `json:"git,omitempty" protobuf:"bytes,3,opt,name=git"` // HTTP contains HTTP artifact location details - HTTP *HTTPArtifact `json:"http,omitempty"` + HTTP *HTTPArtifact `json:"http,omitempty" protobuf:"bytes,4,opt,name=http"` // Artifactory contains artifactory artifact location details - Artifactory *ArtifactoryArtifact `json:"artifactory,omitempty"` + Artifactory *ArtifactoryArtifact `json:"artifactory,omitempty" protobuf:"bytes,5,opt,name=artifactory"` // HDFS contains HDFS artifact location details - HDFS *HDFSArtifact `json:"hdfs,omitempty"` + HDFS *HDFSArtifact `json:"hdfs,omitempty" protobuf:"bytes,6,opt,name=hdfs"` // Raw contains raw artifact location details - Raw *RawArtifact `json:"raw,omitempty"` + Raw *RawArtifact `json:"raw,omitempty" protobuf:"bytes,7,opt,name=raw"` } type ArtifactRepositoryRef struct { - ConfigMap string `json:"configMap,omitempty"` - Key string `json:"key,omitempty"` + ConfigMap string `json:"configMap,omitempty" protobuf:"bytes,1,opt,name=configMap"` + Key string `json:"key,omitempty" protobuf:"bytes,2,opt,name=key"` } // Outputs hold parameters, artifacts, and results from a step @@ -535,47 +551,47 @@ type Outputs struct { // Parameters holds the list of output parameters produced by a step // +patchStrategy=merge // +patchMergeKey=name - Parameters []Parameter `json:"parameters,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Parameters []Parameter `json:"parameters,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,1,rep,name=parameters"` // Artifacts holds the list of output artifacts produced by a step // +patchStrategy=merge // +patchMergeKey=name - Artifacts []Artifact `json:"artifacts,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Artifacts []Artifact `json:"artifacts,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=artifacts"` // Result holds the result (stdout) of a script template - Result *string `json:"result,omitempty"` + Result *string `json:"result,omitempty" protobuf:"bytes,3,opt,name=result"` } // WorkflowStep is a reference to a template to execute in a series of step type WorkflowStep struct { // Name of the step - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // Template is the name of the template to execute as the step - Template string `json:"template,omitempty"` + Template string `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"` // Arguments hold arguments to the template - Arguments Arguments `json:"arguments,omitempty"` + Arguments Arguments `json:"arguments,omitempty" protobuf:"bytes,3,opt,name=arguments"` // TemplateRef is the reference to the template resource to execute as the step. - TemplateRef *TemplateRef `json:"templateRef,omitempty"` + TemplateRef *TemplateRef `json:"templateRef,omitempty" protobuf:"bytes,4,opt,name=templateRef"` // WithItems expands a step into multiple parallel steps from the items in the list - WithItems []Item `json:"withItems,omitempty"` + WithItems []Item `json:"withItems,omitempty" protobuf:"bytes,5,rep,name=withItems"` // WithParam expands a step into multiple parallel steps from the value in the parameter, // which is expected to be a JSON list. - WithParam string `json:"withParam,omitempty"` + WithParam string `json:"withParam,omitempty" protobuf:"bytes,6,opt,name=withParam"` // WithSequence expands a step into a numeric sequence - WithSequence *Sequence `json:"withSequence,omitempty"` + WithSequence *Sequence `json:"withSequence,omitempty" protobuf:"bytes,7,opt,name=withSequence"` // When is an expression in which the step should conditionally execute - When string `json:"when,omitempty"` + When string `json:"when,omitempty" protobuf:"bytes,8,opt,name=when"` // ContinueOn makes argo to proceed with the following step even if this step fails. // Errors and Failed states can be specified - ContinueOn *ContinueOn `json:"continueOn,omitempty"` + ContinueOn *ContinueOn `json:"continueOn,omitempty" protobuf:"bytes,9,opt,name=continueOn"` } var _ TemplateHolder = &WorkflowStep{} @@ -592,25 +608,25 @@ func (step *WorkflowStep) IsResolvable() bool { return true } -// Item expands a single workflow step into multiple parallel steps -// The value of Item can be a map, string, bool, or number -type Item struct { - Value interface{} `json:"value,omitempty"` -} +//// Item expands a single workflow step into multiple parallel steps +//// The value of Item can be a map, string, bool, or number +//type Item struct { +// Value interface{} `json:"value,omitempty"` +//} // Sequence expands a workflow step into numeric range type Sequence struct { // Count is number of elements in the sequence (default: 0). Not to be used with end - Count string `json:"count,omitempty"` + Count string `json:"count,omitempty" protobuf:"bytes,1,opt,name=count"` // Number at which to start the sequence (default: 0) - Start string `json:"start,omitempty"` + Start string `json:"start,omitempty" protobuf:"bytes,2,opt,name=start"` // Number at which to end the sequence (default: 0). Not to be used with Count - End string `json:"end,omitempty"` + End string `json:"end,omitempty" protobuf:"bytes,3,opt,name=end"` // Format is a printf format string to format the value in the sequence - Format string `json:"format,omitempty"` + Format string `json:"format,omitempty" protobuf:"bytes,4,opt,name=format"` } // DeepCopyInto is an custom deepcopy function to deal with our use of the interface{} type @@ -625,16 +641,6 @@ func (i *Item) DeepCopyInto(out *Item) { } } -// UnmarshalJSON implements the json.Unmarshaller interface. -func (i *Item) UnmarshalJSON(value []byte) error { - return json.Unmarshal(value, &i.Value) -} - -// MarshalJSON implements the json.Marshaller interface. -func (i Item) MarshalJSON() ([]byte, error) { - return json.Marshal(i.Value) -} - // OpenAPISchemaType is used by the kube-openapi generator when constructing // the OpenAPI spec of this type. // See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators @@ -647,12 +653,12 @@ func (i Item) OpenAPISchemaFormat() string { return "item" } // TemplateRef is a reference of template resource. type TemplateRef struct { // Name is the resource name of the template. - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // Template is the name of referred template in the resource. - Template string `json:"template,omitempty"` + Template string `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"` // RuntimeResolution skips validation at creation time. // By enabling this option, you can create the referred workflow template before the actual runtime. - RuntimeResolution bool `json:"runtimeResolution,omitempty"` + RuntimeResolution bool `json:"runtimeResolution,omitempty" protobuf:"varint,3,opt,name=runtimeResolution"` } type ArgumentsProvider interface { @@ -665,123 +671,123 @@ type Arguments struct { // Parameters is the list of parameters to pass to the template or workflow // +patchStrategy=merge // +patchMergeKey=name - Parameters []Parameter `json:"parameters,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Parameters []Parameter `json:"parameters,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,1,rep,name=parameters"` // Artifacts is the list of artifacts to pass to the template or workflow // +patchStrategy=merge // +patchMergeKey=name - Artifacts []Artifact `json:"artifacts,omitempty" patchStrategy:"merge" patchMergeKey:"name"` + Artifacts []Artifact `json:"artifacts,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=artifacts"` } var _ ArgumentsProvider = &Arguments{} // UserContainer is a container specified by a user. type UserContainer struct { - apiv1.Container `json:",inline"` + apiv1.Container `json:",inline" protobuf:"bytes,1,opt,name=container"` // MirrorVolumeMounts will mount the same volumes specified in the main container // to the container (including artifacts), at the same mountPaths. This enables // dind daemon to partially see the same filesystem as the main container in // order to use features such as docker volume binding - MirrorVolumeMounts *bool `json:"mirrorVolumeMounts,omitempty"` + MirrorVolumeMounts *bool `json:"mirrorVolumeMounts,omitempty" protobuf:"varint,2,opt,name=mirrorVolumeMounts"` } // WorkflowStatus contains overall status information about a workflow type WorkflowStatus struct { // Phase a simple, high-level summary of where the workflow is in its lifecycle. - Phase NodePhase `json:"phase,omitempty"` + Phase NodePhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=NodePhase"` // Time at which this workflow started - StartedAt metav1.Time `json:"startedAt,omitempty"` + StartedAt metav1.Time `json:"startedAt,omitempty" protobuf:"bytes,2,opt,name=startedAt"` // Time at which this workflow completed - FinishedAt metav1.Time `json:"finishedAt,omitempty"` + FinishedAt metav1.Time `json:"finishedAt,omitempty" protobuf:"bytes,3,opt,name=finishedAt"` // A human readable message indicating details about why the workflow is in this condition. - Message string `json:"message,omitempty"` + Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` // Compressed and base64 decoded Nodes map - CompressedNodes string `json:"compressedNodes,omitempty"` + CompressedNodes string `json:"compressedNodes,omitempty" protobuf:"bytes,5,opt,name=compressedNodes"` // Nodes is a mapping between a node ID and the node's status. - Nodes map[string]NodeStatus `json:"nodes,omitempty"` + Nodes map[string]NodeStatus `json:"nodes,omitempty" protobuf:"bytes,6,rep,name=nodes"` // StoredTemplates is a mapping between a template ref and the node's status. - StoredTemplates map[string]Template `json:"storedTemplates,omitempty"` + StoredTemplates map[string]Template `json:"storedTemplates,omitempty" protobuf:"bytes,9,rep,name=storedTemplates"` // PersistentVolumeClaims tracks all PVCs that were created as part of the workflow. // The contents of this list are drained at the end of the workflow. - PersistentVolumeClaims []apiv1.Volume `json:"persistentVolumeClaims,omitempty"` + PersistentVolumeClaims []apiv1.Volume `json:"persistentVolumeClaims,omitempty" protobuf:"bytes,7,rep,name=persistentVolumeClaims"` // Outputs captures output values and artifact locations produced by the workflow via global outputs - Outputs *Outputs `json:"outputs,omitempty"` + Outputs *Outputs `json:"outputs,omitempty" protobuf:"bytes,8,opt,name=outputs"` } // RetryStrategy provides controls on how to retry a workflow step type RetryStrategy struct { // Limit is the maximum number of attempts when retrying a container - Limit *int32 `json:"limit,omitempty"` + Limit *int32 `json:"limit,omitempty" protobuf:"varint,1,opt,name=limit"` } // NodeStatus contains status information about an individual node in the workflow type NodeStatus struct { // ID is a unique identifier of a node within the worklow // It is implemented as a hash of the node name, which makes the ID deterministic - ID string `json:"id"` + ID string `json:"id" protobuf:"bytes,1,opt,name=id"` // Name is unique name in the node tree used to generate the node ID - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,2,opt,name=name"` // DisplayName is a human readable representation of the node. Unique within a template boundary - DisplayName string `json:"displayName"` + DisplayName string `json:"displayName" protobuf:"bytes,3,opt,name=displayName"` // Type indicates type of node - Type NodeType `json:"type"` + Type NodeType `json:"type" protobuf:"bytes,4,opt,name=type,casttype=NodeType"` // TemplateName is the template name which this node corresponds to. // Not applicable to virtual nodes (e.g. Retry, StepGroup) - TemplateName string `json:"templateName,omitempty"` + TemplateName string `json:"templateName,omitempty" protobuf:"bytes,5,opt,name=templateName"` // TemplateRef is the reference to the template resource which this node corresponds to. // Not applicable to virtual nodes (e.g. Retry, StepGroup) - TemplateRef *TemplateRef `json:"templateRef,omitempty"` + TemplateRef *TemplateRef `json:"templateRef,omitempty" protobuf:"bytes,6,opt,name=templateRef"` // StoredTemplateID is the ID of stored template. - StoredTemplateID string `json:"storedTemplateID,omitempty"` + StoredTemplateID string `json:"storedTemplateID,omitempty" protobuf:"bytes,18,opt,name=storedTemplateID"` // WorkflowTemplateName is the WorkflowTemplate resource name on which the resolved template of this node is retrieved. - WorkflowTemplateName string `json:"workflowTemplateName,omitempty"` + WorkflowTemplateName string `json:"workflowTemplateName,omitempty" protobuf:"bytes,19,opt,name=workflowTemplateName"` // Phase a simple, high-level summary of where the node is in its lifecycle. // Can be used as a state machine. - Phase NodePhase `json:"phase,omitempty"` + Phase NodePhase `json:"phase,omitempty" protobuf:"bytes,7,opt,name=phase,casttype=NodePhase"` // BoundaryID indicates the node ID of the associated template root node in which this node belongs to - BoundaryID string `json:"boundaryID,omitempty"` + BoundaryID string `json:"boundaryID,omitempty" protobuf:"bytes,8,opt,name=boundaryID"` // A human readable message indicating details about why the node is in this condition. - Message string `json:"message,omitempty"` + Message string `json:"message,omitempty" protobuf:"bytes,9,opt,name=message"` // Time at which this node started - StartedAt metav1.Time `json:"startedAt,omitempty"` + StartedAt metav1.Time `json:"startedAt,omitempty" protobuf:"bytes,10,opt,name=startedAt"` // Time at which this node completed - FinishedAt metav1.Time `json:"finishedAt,omitempty"` + FinishedAt metav1.Time `json:"finishedAt,omitempty" protobuf:"bytes,11,opt,name=finishedAt"` // PodIP captures the IP of the pod for daemoned steps - PodIP string `json:"podIP,omitempty"` + PodIP string `json:"podIP,omitempty" protobuf:"bytes,12,opt,name=podIP"` // Daemoned tracks whether or not this node was daemoned and need to be terminated - Daemoned *bool `json:"daemoned,omitempty"` + Daemoned *bool `json:"daemoned,omitempty" protobuf:"varint,13,opt,name=daemoned"` // Inputs captures input parameter values and artifact locations supplied to this template invocation - Inputs *Inputs `json:"inputs,omitempty"` + Inputs *Inputs `json:"inputs,omitempty" protobuf:"bytes,14,opt,name=inputs"` // Outputs captures output parameter values and artifact locations produced by this template invocation - Outputs *Outputs `json:"outputs,omitempty"` + Outputs *Outputs `json:"outputs,omitempty" protobuf:"bytes,15,opt,name=outputs"` // Children is a list of child node IDs - Children []string `json:"children,omitempty"` + Children []string `json:"children,omitempty" protobuf:"bytes,16,rep,name=children"` // OutboundNodes tracks the node IDs which are considered "outbound" nodes to a template invocation. // For every invocation of a template, there are nodes which we considered as "outbound". Essentially, @@ -795,12 +801,12 @@ type NodeStatus struct { // NOTE: since templates are composable, the list of outbound nodes are carried upwards when // a DAG/steps template invokes another DAG/steps template. In other words, the outbound nodes of // a template, will be a superset of the outbound nodes of its last children. - OutboundNodes []string `json:"outboundNodes,omitempty"` + OutboundNodes []string `json:"outboundNodes,omitempty" protobuf:"bytes,17,rep,name=outboundNodes"` } -func (n NodeStatus) String() string { - return fmt.Sprintf("%s (%s)", n.Name, n.ID) -} +//func (n NodeStatus) String() string { +// return fmt.Sprintf("%s (%s)", n.Name, n.ID) +//} func isCompletedPhase(phase NodePhase) bool { return phase == NodeSucceeded || @@ -846,42 +852,42 @@ func (n NodeStatus) CanRetry() bool { // S3Bucket contains the access information required for interfacing with an S3 bucket type S3Bucket struct { // Endpoint is the hostname of the bucket endpoint - Endpoint string `json:"endpoint"` + Endpoint string `json:"endpoint" protobuf:"bytes,1,opt,name=endpoint"` // Bucket is the name of the bucket - Bucket string `json:"bucket"` + Bucket string `json:"bucket" protobuf:"bytes,2,opt,name=bucket"` // Region contains the optional bucket region - Region string `json:"region,omitempty"` + Region string `json:"region,omitempty" protobuf:"bytes,3,opt,name=region"` // Insecure will connect to the service with TLS - Insecure *bool `json:"insecure,omitempty"` + Insecure *bool `json:"insecure,omitempty" protobuf:"varint,4,opt,name=insecure"` // AccessKeySecret is the secret selector to the bucket's access key - AccessKeySecret apiv1.SecretKeySelector `json:"accessKeySecret"` + AccessKeySecret apiv1.SecretKeySelector `json:"accessKeySecret" protobuf:"bytes,5,opt,name=accessKeySecret"` // SecretKeySecret is the secret selector to the bucket's secret key - SecretKeySecret apiv1.SecretKeySelector `json:"secretKeySecret"` + SecretKeySecret apiv1.SecretKeySelector `json:"secretKeySecret" protobuf:"bytes,6,opt,name=secretKeySecret"` // RoleARN is the Amazon Resource Name (ARN) of the role to assume. - RoleARN string `json:"roleARN,omitempty"` + RoleARN string `json:"roleARN,omitempty" protobuf:"bytes,7,opt,name=roleARN"` } // S3Artifact is the location of an S3 artifact type S3Artifact struct { - S3Bucket `json:",inline"` + S3Bucket `json:",inline" protobuf:"bytes,1,opt,name=s3Bucket"` // Key is the key in the bucket where the artifact resides - Key string `json:"key"` + Key string `json:"key" protobuf:"bytes,2,opt,name=key"` } -func (s *S3Artifact) String() string { - protocol := "https" - if s.Insecure != nil && *s.Insecure { - protocol = "http" - } - return fmt.Sprintf("%s://%s/%s/%s", protocol, s.Endpoint, s.Bucket, s.Key) -} +//func (s *S3Artifact) String() string { +// protocol := "https" +// if s.Insecure != nil && *s.Insecure { +// protocol = "http" +// } +// return fmt.Sprintf("%s://%s/%s/%s", protocol, s.Endpoint, s.Bucket, s.Key) +//} func (s *S3Artifact) HasLocation() bool { return s != nil && s.Bucket != "" @@ -890,29 +896,29 @@ func (s *S3Artifact) HasLocation() bool { // GitArtifact is the location of an git artifact type GitArtifact struct { // Repo is the git repository - Repo string `json:"repo"` + Repo string `json:"repo" protobuf:"bytes,1,opt,name=repo"` // Revision is the git commit, tag, branch to checkout - Revision string `json:"revision,omitempty"` + Revision string `json:"revision,omitempty" protobuf:"bytes,2,opt,name=revision"` // Depth specifies clones/fetches should be shallow and include the given // number of commits from the branch tip - Depth *uint `json:"depth,omitempty"` + Depth *uint64 `json:"depth,omitempty" protobuf:"bytes,3,opt,name=depth"` // Fetch specifies a number of refs that should be fetched before checkout - Fetch []string `json:"fetch,omitempty"` + Fetch []string `json:"fetch,omitempty" protobuf:"bytes,4,rep,name=fetch"` // UsernameSecret is the secret selector to the repository username - UsernameSecret *apiv1.SecretKeySelector `json:"usernameSecret,omitempty"` + UsernameSecret *apiv1.SecretKeySelector `json:"usernameSecret,omitempty" protobuf:"bytes,5,opt,name=usernameSecret"` // PasswordSecret is the secret selector to the repository password - PasswordSecret *apiv1.SecretKeySelector `json:"passwordSecret,omitempty"` + PasswordSecret *apiv1.SecretKeySelector `json:"passwordSecret,omitempty" protobuf:"bytes,6,opt,name=passwordSecret"` // SSHPrivateKeySecret is the secret selector to the repository ssh private key - SSHPrivateKeySecret *apiv1.SecretKeySelector `json:"sshPrivateKeySecret,omitempty"` + SSHPrivateKeySecret *apiv1.SecretKeySelector `json:"sshPrivateKeySecret,omitempty" protobuf:"bytes,7,opt,name=sshPrivateKeySecret"` // InsecureIgnoreHostKey disables SSH strict host key checking during git clone - InsecureIgnoreHostKey bool `json:"insecureIgnoreHostKey,omitempty"` + InsecureIgnoreHostKey bool `json:"insecureIgnoreHostKey,omitempty" protobuf:"varint,8,opt,name=insecureIgnoreHostKey"` } func (g *GitArtifact) HasLocation() bool { @@ -922,22 +928,22 @@ func (g *GitArtifact) HasLocation() bool { // ArtifactoryAuth describes the secret selectors required for authenticating to artifactory type ArtifactoryAuth struct { // UsernameSecret is the secret selector to the repository username - UsernameSecret *apiv1.SecretKeySelector `json:"usernameSecret,omitempty"` + UsernameSecret *apiv1.SecretKeySelector `json:"usernameSecret,omitempty" protobuf:"bytes,1,opt,name=usernameSecret"` // PasswordSecret is the secret selector to the repository password - PasswordSecret *apiv1.SecretKeySelector `json:"passwordSecret,omitempty"` + PasswordSecret *apiv1.SecretKeySelector `json:"passwordSecret,omitempty" protobuf:"bytes,2,opt,name=passwordSecret"` } // ArtifactoryArtifact is the location of an artifactory artifact type ArtifactoryArtifact struct { // URL of the artifact - URL string `json:"url"` - ArtifactoryAuth `json:",inline"` + URL string `json:"url" protobuf:"bytes,1,opt,name=url"` + ArtifactoryAuth `json:",inline" protobuf:"bytes,2,opt,name=artifactoryAuth"` } -func (a *ArtifactoryArtifact) String() string { - return a.URL -} +//func (a *ArtifactoryArtifact) String() string { +// return a.URL +//} func (a *ArtifactoryArtifact) HasLocation() bool { return a != nil && a.URL != "" @@ -945,13 +951,13 @@ func (a *ArtifactoryArtifact) HasLocation() bool { // HDFSArtifact is the location of an HDFS artifact type HDFSArtifact struct { - HDFSConfig `json:",inline"` + HDFSConfig `json:",inline" protobuf:"bytes,1,opt,name=hDFSConfig"` // Path is a file path in HDFS - Path string `json:"path"` + Path string `json:"path" protobuf:"bytes,2,opt,name=path"` // Force copies a file forcibly even if it exists (default: false) - Force bool `json:"force,omitempty"` + Force bool `json:"force,omitempty" protobuf:"varint,3,opt,name=force"` } func (h *HDFSArtifact) HasLocation() bool { @@ -960,59 +966,47 @@ func (h *HDFSArtifact) HasLocation() bool { // HDFSConfig is configurations for HDFS type HDFSConfig struct { - HDFSKrbConfig `json:",inline"` + HDFSKrbConfig `json:",inline" protobuf:"bytes,1,opt,name=hDFSKrbConfig"` // Addresses is accessible addresses of HDFS name nodes - Addresses []string `json:"addresses"` + Addresses []string `json:"addresses" protobuf:"bytes,2,rep,name=addresses"` // HDFSUser is the user to access HDFS file system. // It is ignored if either ccache or keytab is used. - HDFSUser string `json:"hdfsUser,omitempty"` + HDFSUser string `json:"hdfsUser,omitempty" protobuf:"bytes,3,opt,name=hdfsUser"` } // HDFSKrbConfig is auth configurations for Kerberos type HDFSKrbConfig struct { // KrbCCacheSecret is the secret selector for Kerberos ccache // Either ccache or keytab can be set to use Kerberos. - KrbCCacheSecret *apiv1.SecretKeySelector `json:"krbCCacheSecret,omitempty"` + KrbCCacheSecret *apiv1.SecretKeySelector `json:"krbCCacheSecret,omitempty" protobuf:"bytes,1,opt,name=krbCCacheSecret"` // KrbKeytabSecret is the secret selector for Kerberos keytab // Either ccache or keytab can be set to use Kerberos. - KrbKeytabSecret *apiv1.SecretKeySelector `json:"krbKeytabSecret,omitempty"` + KrbKeytabSecret *apiv1.SecretKeySelector `json:"krbKeytabSecret,omitempty" protobuf:"bytes,2,opt,name=krbKeytabSecret"` // KrbUsername is the Kerberos username used with Kerberos keytab // It must be set if keytab is used. - KrbUsername string `json:"krbUsername,omitempty"` + KrbUsername string `json:"krbUsername,omitempty" protobuf:"bytes,3,opt,name=krbUsername"` // KrbRealm is the Kerberos realm used with Kerberos keytab // It must be set if keytab is used. - KrbRealm string `json:"krbRealm,omitempty"` + KrbRealm string `json:"krbRealm,omitempty" protobuf:"bytes,4,opt,name=krbRealm"` // KrbConfig is the configmap selector for Kerberos config as string // It must be set if either ccache or keytab is used. - KrbConfigConfigMap *apiv1.ConfigMapKeySelector `json:"krbConfigConfigMap,omitempty"` + KrbConfigConfigMap *apiv1.ConfigMapKeySelector `json:"krbConfigConfigMap,omitempty" protobuf:"bytes,5,opt,name=krbConfigConfigMap"` // KrbServicePrincipalName is the principal name of Kerberos service // It must be set if either ccache or keytab is used. - KrbServicePrincipalName string `json:"krbServicePrincipalName,omitempty"` -} - -func (a *HDFSArtifact) String() string { - var cred string - if a.HDFSUser != "" { - cred = fmt.Sprintf("HDFS user %s", a.HDFSUser) - } else if a.KrbCCacheSecret != nil { - cred = fmt.Sprintf("ccache %v", a.KrbCCacheSecret.Name) - } else if a.KrbKeytabSecret != nil { - cred = fmt.Sprintf("keytab %v (%s/%s)", a.KrbKeytabSecret.Name, a.KrbUsername, a.KrbRealm) - } - return fmt.Sprintf("hdfs://%s/%s with %s", strings.Join(a.Addresses, ", "), a.Path, cred) + KrbServicePrincipalName string `json:"krbServicePrincipalName,omitempty" protobuf:"bytes,6,opt,name=krbServicePrincipalName"` } // RawArtifact allows raw string content to be placed as an artifact in a container type RawArtifact struct { // Data is the string contents of the artifact - Data string `json:"data"` + Data string `json:"data" protobuf:"bytes,1,opt,name=data"` } func (r *RawArtifact) HasLocation() bool { @@ -1022,7 +1016,7 @@ func (r *RawArtifact) HasLocation() bool { // HTTPArtifact allows an file served on HTTP to be placed as an input artifact in a container type HTTPArtifact struct { // URL of the artifact - URL string `json:"url"` + URL string `json:"url" protobuf:"bytes,1,opt,name=url"` } func (h *HTTPArtifact) HasLocation() bool { @@ -1032,40 +1026,40 @@ func (h *HTTPArtifact) HasLocation() bool { // ExecutorConfig holds configurations of an executor container. type ExecutorConfig struct { // ServiceAccountName specifies the service account name of the executor container. - ServiceAccountName string `json:"serviceAccountName,omitempty"` + ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,1,opt,name=serviceAccountName"` } // ScriptTemplate is a template subtype to enable scripting through code steps type ScriptTemplate struct { - apiv1.Container `json:",inline"` + apiv1.Container `json:",inline" protobuf:"bytes,1,opt,name=container"` // Source contains the source code of the script to execute - Source string `json:"source"` + Source string `json:"source" protobuf:"bytes,2,opt,name=source"` } // ResourceTemplate is a template subtype to manipulate kubernetes resources type ResourceTemplate struct { // Action is the action to perform to the resource. // Must be one of: get, create, apply, delete, replace, patch - Action string `json:"action"` + Action string `json:"action" protobuf:"bytes,1,opt,name=action"` // MergeStrategy is the strategy used to merge a patch. It defaults to "strategic" // Must be one of: strategic, merge, json - MergeStrategy string `json:"mergeStrategy,omitempty"` + MergeStrategy string `json:"mergeStrategy,omitempty" protobuf:"bytes,2,opt,name=mergeStrategy"` // Manifest contains the kubernetes manifest - Manifest string `json:"manifest"` + Manifest string `json:"manifest" protobuf:"bytes,3,opt,name=manifest"` // SetOwnerReference sets the reference to the workflow on the OwnerReference of generated resource. - SetOwnerReference bool `json:"setOwnerReference,omitempty"` + SetOwnerReference bool `json:"setOwnerReference,omitempty" protobuf:"varint,4,opt,name=setOwnerReference"` // SuccessCondition is a label selector expression which describes the conditions // of the k8s resource in which it is acceptable to proceed to the following step - SuccessCondition string `json:"successCondition,omitempty"` + SuccessCondition string `json:"successCondition,omitempty" protobuf:"bytes,5,opt,name=successCondition"` // FailureCondition is a label selector expression which describes the conditions // of the k8s resource in which the step was considered failed - FailureCondition string `json:"failureCondition,omitempty"` + FailureCondition string `json:"failureCondition,omitempty" protobuf:"bytes,6,opt,name=failureCondition"` } // GetType returns the type of this template @@ -1112,12 +1106,12 @@ func (tmpl *Template) IsLeaf() bool { // DAGTemplate is a template subtype for directed acyclic graph templates type DAGTemplate struct { // Target are one or more names of targets to execute in a DAG - Target string `json:"target,omitempty"` + Target string `json:"target,omitempty" protobuf:"bytes,1,opt,name=target"` // Tasks are a list of DAG tasks // +patchStrategy=merge // +patchMergeKey=name - Tasks []DAGTask `json:"tasks" patchStrategy:"merge" patchMergeKey:"name"` + Tasks []DAGTask `json:"tasks" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,2,rep,name=tasks"` // This flag is for DAG logic. The DAG logic has a built-in "fail fast" feature to stop scheduling new steps, // as soon as it detects that one of the DAG nodes is failed. Then it waits until all DAG nodes are completed @@ -1125,42 +1119,42 @@ type DAGTemplate struct { // The FailFast flag default is true, if set to false, it will allow a DAG to run all branches of the DAG to // completion (either success or failure), regardless of the failed outcomes of branches in the DAG. // More info and example about this feature at https://github.com/argoproj/argo/issues/1442 - FailFast *bool `json:"failFast,omitempty"` + FailFast *bool `json:"failFast,omitempty" protobuf:"varint,3,opt,name=failFast"` } // DAGTask represents a node in the graph during DAG execution type DAGTask struct { // Name is the name of the target - Name string `json:"name"` + Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // Name of template to execute - Template string `json:"template"` + Template string `json:"template" protobuf:"bytes,2,opt,name=template"` // Arguments are the parameter and artifact arguments to the template - Arguments Arguments `json:"arguments,omitempty"` + Arguments Arguments `json:"arguments,omitempty" protobuf:"bytes,3,opt,name=arguments"` // TemplateRef is the reference to the template resource to execute. - TemplateRef *TemplateRef `json:"templateRef,omitempty"` + TemplateRef *TemplateRef `json:"templateRef,omitempty" protobuf:"bytes,4,opt,name=templateRef"` // Dependencies are name of other targets which this depends on - Dependencies []string `json:"dependencies,omitempty"` + Dependencies []string `json:"dependencies,omitempty" protobuf:"bytes,5,rep,name=dependencies"` // WithItems expands a task into multiple parallel tasks from the items in the list - WithItems []Item `json:"withItems,omitempty"` + WithItems []Item `json:"withItems,omitempty" protobuf:"bytes,6,rep,name=withItems"` // WithParam expands a task into multiple parallel tasks from the value in the parameter, // which is expected to be a JSON list. - WithParam string `json:"withParam,omitempty"` + WithParam string `json:"withParam,omitempty" protobuf:"bytes,7,opt,name=withParam"` // WithSequence expands a task into a numeric sequence - WithSequence *Sequence `json:"withSequence,omitempty"` + WithSequence *Sequence `json:"withSequence,omitempty" protobuf:"bytes,8,opt,name=withSequence"` // When is an expression in which the task should conditionally execute - When string `json:"when,omitempty"` + When string `json:"when,omitempty" protobuf:"bytes,9,opt,name=when"` // ContinueOn makes argo to proceed with the following step even if this step fails. // Errors and Failed states can be specified - ContinueOn *ContinueOn `json:"continueOn,omitempty"` + ContinueOn *ContinueOn `json:"continueOn,omitempty" protobuf:"bytes,10,opt,name=continueOn"` } var _ TemplateHolder = &DAGTask{} @@ -1310,9 +1304,9 @@ func (wf *Workflow) GetStoredOrLocalTemplate(node *NodeStatus) *Template { // It can be specified if the workflow should continue when the pod errors, fails or both. type ContinueOn struct { // +optional - Error bool `json:"error,omitempty"` + Error bool `json:"error,omitempty" protobuf:"varint,1,opt,name=error"` // +optional - Failed bool `json:"failed,omitempty"` + Failed bool `json:"failed,omitempty" protobuf:"varint,2,opt,name=failed"` } func continues(c *ContinueOn, phase NodePhase) bool { diff --git a/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go index 5cd9999678a7..f162e2a09aec 100644 --- a/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/workflow/v1alpha1/zz_generated.deepcopy.go @@ -5,6 +5,8 @@ package v1alpha1 import ( + json "encoding/json" + v1 "k8s.io/api/core/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -311,7 +313,7 @@ func (in *GitArtifact) DeepCopyInto(out *GitArtifact) { *out = *in if in.Depth != nil { in, out := &in.Depth, &out.Depth - *out = new(uint) + *out = new(uint64) **out = **in } if in.Fetch != nil { @@ -473,6 +475,40 @@ func (in *Item) DeepCopy() *Item { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ItemValue) DeepCopyInto(out *ItemValue) { + *out = *in + if in.MapVal != nil { + in, out := &in.MapVal, &out.MapVal + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.ListVal != nil { + in, out := &in.ListVal, &out.ListVal + *out = make([]json.RawMessage, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = make(json.RawMessage, len(*in)) + copy(*out, *in) + } + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ItemValue. +func (in *ItemValue) DeepCopy() *ItemValue { + if in == nil { + return nil + } + out := new(ItemValue) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Metadata) DeepCopyInto(out *Metadata) { *out = *in @@ -602,6 +638,29 @@ func (in *Outputs) DeepCopy() *Outputs { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ParallelSteps) DeepCopyInto(out *ParallelSteps) { + *out = *in + if in.Steps != nil { + in, out := &in.Steps, &out.Steps + *out = make([]WorkflowStep, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ParallelSteps. +func (in *ParallelSteps) DeepCopy() *ParallelSteps { + if in == nil { + return nil + } + out := new(ParallelSteps) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Parameter) DeepCopyInto(out *Parameter) { *out = *in @@ -838,15 +897,9 @@ func (in *Template) DeepCopyInto(out *Template) { } if in.Steps != nil { in, out := &in.Steps, &out.Steps - *out = make([][]WorkflowStep, len(*in)) + *out = make([]ParallelSteps, len(*in)) for i := range *in { - if (*in)[i] != nil { - in, out := &(*in)[i], &(*out)[i] - *out = make([]WorkflowStep, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } + (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.Container != nil { @@ -1048,7 +1101,7 @@ func (in *Workflow) DeepCopyObject() runtime.Object { func (in *WorkflowList) DeepCopyInto(out *WorkflowList) { *out = *in out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]Workflow, len(*in)) @@ -1330,7 +1383,7 @@ func (in *WorkflowTemplate) DeepCopyObject() runtime.Object { func (in *WorkflowTemplateList) DeepCopyInto(out *WorkflowTemplateList) { *out = *in out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]WorkflowTemplate, len(*in)) diff --git a/pkg/client/clientset/versioned/clientset.go b/pkg/client/clientset/versioned/clientset.go index 211914a278fa..d67394f8553a 100644 --- a/pkg/client/clientset/versioned/clientset.go +++ b/pkg/client/clientset/versioned/clientset.go @@ -3,6 +3,8 @@ package versioned import ( + "fmt" + argoprojv1alpha1 "github.com/argoproj/argo/pkg/client/clientset/versioned/typed/workflow/v1alpha1" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" @@ -35,9 +37,14 @@ func (c *Clientset) Discovery() discovery.DiscoveryInterface { } // NewForConfig creates a new Clientset for the given config. +// If config's RateLimiter is not set and QPS and Burst are acceptable, +// NewForConfig will generate a rate-limiter in configShallowCopy. func NewForConfig(c *rest.Config) (*Clientset, error) { configShallowCopy := *c if configShallowCopy.RateLimiter == nil && configShallowCopy.QPS > 0 { + if configShallowCopy.Burst <= 0 { + return nil, fmt.Errorf("Burst is required to be greater than 0 when RateLimiter is not set and QPS is set to greater than 0") + } configShallowCopy.RateLimiter = flowcontrol.NewTokenBucketRateLimiter(configShallowCopy.QPS, configShallowCopy.Burst) } var cs Clientset diff --git a/pkg/client/clientset/versioned/fake/clientset_generated.go b/pkg/client/clientset/versioned/fake/clientset_generated.go index ad5d9f197966..eb18c17a7afd 100644 --- a/pkg/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/client/clientset/versioned/fake/clientset_generated.go @@ -25,7 +25,7 @@ func NewSimpleClientset(objects ...runtime.Object) *Clientset { } } - cs := &Clientset{} + cs := &Clientset{tracker: o} cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake} cs.AddReactor("*", "*", testing.ObjectReaction(o)) cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) { @@ -47,12 +47,17 @@ func NewSimpleClientset(objects ...runtime.Object) *Clientset { type Clientset struct { testing.Fake discovery *fakediscovery.FakeDiscovery + tracker testing.ObjectTracker } func (c *Clientset) Discovery() discovery.DiscoveryInterface { return c.discovery } +func (c *Clientset) Tracker() testing.ObjectTracker { + return c.tracker +} + var _ clientset.Interface = &Clientset{} // ArgoprojV1alpha1 retrieves the ArgoprojV1alpha1Client diff --git a/pkg/client/clientset/versioned/typed/workflow/v1alpha1/workflow_client.go b/pkg/client/clientset/versioned/typed/workflow/v1alpha1/workflow_client.go index e428ca84bd99..7d8df785a06e 100644 --- a/pkg/client/clientset/versioned/typed/workflow/v1alpha1/workflow_client.go +++ b/pkg/client/clientset/versioned/typed/workflow/v1alpha1/workflow_client.go @@ -5,7 +5,6 @@ package v1alpha1 import ( v1alpha1 "github.com/argoproj/argo/pkg/apis/workflow/v1alpha1" "github.com/argoproj/argo/pkg/client/clientset/versioned/scheme" - serializer "k8s.io/apimachinery/pkg/runtime/serializer" rest "k8s.io/client-go/rest" ) @@ -60,7 +59,7 @@ func setConfigDefaults(config *rest.Config) error { gv := v1alpha1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: scheme.Codecs} + config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() diff --git a/pkg/client/informers/externalversions/workflow/interface.go b/pkg/client/informers/externalversions/workflow/interface.go index d49d769f4b22..52a8879d9ca5 100644 --- a/pkg/client/informers/externalversions/workflow/interface.go +++ b/pkg/client/informers/externalversions/workflow/interface.go @@ -1,6 +1,6 @@ // Code generated by informer-gen. DO NOT EDIT. -package argoproj +package workflow import ( internalinterfaces "github.com/argoproj/argo/pkg/client/informers/externalversions/internalinterfaces" diff --git a/workflow/controller/operator.go b/workflow/controller/operator.go index 2b974ab582a6..52acd942136c 100644 --- a/workflow/controller/operator.go +++ b/workflow/controller/operator.go @@ -1399,7 +1399,7 @@ func (woc *wfOperationCtx) initializeNode(nodeName string, nodeType wfv1.NodeTyp node.Message = messages[0] } woc.wf.Status.Nodes[nodeID] = node - woc.log.Infof("%s node %s initialized %s%s", node.Type, node, node.Phase, message) + woc.log.Infof("%s node %v initialized %s%s", node.Type, node, node.Phase, message) woc.updated = true return &node } @@ -1688,12 +1688,12 @@ func (woc *wfOperationCtx) processAggregateNodeOutputs(tmpl *wfv1.Template, scop } if node.Outputs.Result != nil { // Support the case where item may be a map - var itemMap map[string]interface{} + var itemMap map[string]wfv1.ItemValue err := json.Unmarshal([]byte(*node.Outputs.Result), &itemMap) if err == nil { - resultsList = append(resultsList, wfv1.Item{Value: itemMap}) + resultsList = append(resultsList, wfv1.Item{Type: wfv1.Map, MapVal: itemMap}) } else { - resultsList = append(resultsList, wfv1.Item{Value: *node.Outputs.Result}) + resultsList = append(resultsList, wfv1.Item{Type: wfv1.String, StrVal: *node.Outputs.Result}) } } } @@ -1846,38 +1846,34 @@ func (woc *wfOperationCtx) executeSuspend(nodeName string, tmpl *wfv1.Template, func processItem(fstTmpl *fasttemplate.Template, name string, index int, item wfv1.Item, obj interface{}) (string, error) { replaceMap := make(map[string]string) var newName string - switch val := item.Value.(type) { - case string, int, int32, int64, float32, float64, bool: + val := item.Type + switch val { + case wfv1.String, wfv1.Number, wfv1.Bool: replaceMap["item"] = fmt.Sprintf("%v", val) newName = fmt.Sprintf("%s(%d:%v)", name, index, val) - case map[string]interface{}: + case wfv1.Map: // Handle the case when withItems is a list of maps. // vals holds stringified versions of the map items which are incorporated as part of the step name. // For example if the item is: {"name": "jesse","group":"developer"} // the vals would be: ["name:jesse", "group:developer"] // This would eventually be part of the step name (group:developer,name:jesse) vals := make([]string, 0) - for itemKey, itemValIf := range val { - switch itemVal := itemValIf.(type) { - case string, int, int32, int64, float32, float64, bool: - replaceMap[fmt.Sprintf("item.%s", itemKey)] = fmt.Sprintf("%v", itemVal) - vals = append(vals, fmt.Sprintf("%s:%s", itemKey, itemVal)) - default: - return "", errors.Errorf(errors.CodeBadRequest, "withItems[%d][%s] expected string or number. received: %v", index, itemKey, itemVal) - } + for itemKey, itemVal := range item.MapVal { + replaceMap[fmt.Sprintf("item.%s", itemKey)] = fmt.Sprintf("%v", itemVal) + } // sort the values so that the name is deterministic sort.Strings(vals) newName = fmt.Sprintf("%s(%d:%v)", name, index, strings.Join(vals, ",")) - case []interface{}: - byteVal, err := json.Marshal(val) + case wfv1.List: + byteVal, err := json.Marshal(item.ListVal) if err != nil { return "", errors.InternalWrapError(err) } replaceMap["item"] = string(byteVal) - newName = fmt.Sprintf("%s(%d:%v)", name, index, val) + newName = fmt.Sprintf("%s(%d:%v)", name, index, item.ListVal) default: - return "", errors.Errorf(errors.CodeBadRequest, "withItems[%d] expected string, number, list, or map. received: %s", index, val) + return "", errors.Errorf(errors.CodeBadRequest, "withItems[%d] expected string, number, list, or map. received: %v", index, val) } newStepStr, err := common.Replace(fstTmpl, replaceMap, false) if err != nil { @@ -1923,11 +1919,11 @@ func expandSequence(seq *wfv1.Sequence) ([]wfv1.Item, error) { } if start <= end { for i := start; i <= end; i++ { - items = append(items, wfv1.Item{Value: fmt.Sprintf(format, i)}) + items = append(items, wfv1.Item{Type: wfv1.Number, StrVal: fmt.Sprintf(format, i)}) } } else { for i := start; i >= end; i-- { - items = append(items, wfv1.Item{Value: fmt.Sprintf(format, i)}) + items = append(items, wfv1.Item{Type: wfv1.Number, StrVal: fmt.Sprintf(format, i)}) } } return items, nil diff --git a/workflow/controller/operator_test.go b/workflow/controller/operator_test.go index bfe0da686a37..924a21c6e7b1 100644 --- a/workflow/controller/operator_test.go +++ b/workflow/controller/operator_test.go @@ -604,7 +604,7 @@ func TestExpandWithItems(t *testing.T) { wf, err := wfcset.Create(wf) assert.Nil(t, err) woc := newWorkflowOperationCtx(wf, controller) - newSteps, err := woc.expandStep(wf.Spec.Templates[0].Steps[0][0]) + newSteps, err := woc.expandStep(wf.Spec.Templates[0].Steps[0].Steps[0]) assert.Nil(t, err) assert.Equal(t, 5, len(newSteps)) woc.operate() @@ -652,7 +652,7 @@ func TestExpandWithItemsMap(t *testing.T) { wf, err := wfcset.Create(wf) assert.Nil(t, err) woc := newWorkflowOperationCtx(wf, controller) - newSteps, err := woc.expandStep(wf.Spec.Templates[0].Steps[0][0]) + newSteps, err := woc.expandStep(wf.Spec.Templates[0].Steps[0].Steps[0]) assert.Nil(t, err) assert.Equal(t, 3, len(newSteps)) } @@ -889,8 +889,8 @@ func TestExpandWithSequence(t *testing.T) { items, err = expandSequence(&seq) assert.NoError(t, err) assert.Equal(t, 10, len(items)) - assert.Equal(t, "0", items[0].Value.(string)) - assert.Equal(t, "9", items[9].Value.(string)) + assert.Equal(t, "0", items[0].StrVal) + assert.Equal(t, "9", items[9].StrVal) seq = wfv1.Sequence{ Start: "101", @@ -899,8 +899,8 @@ func TestExpandWithSequence(t *testing.T) { items, err = expandSequence(&seq) assert.NoError(t, err) assert.Equal(t, 10, len(items)) - assert.Equal(t, "101", items[0].Value.(string)) - assert.Equal(t, "110", items[9].Value.(string)) + assert.Equal(t, "101", items[0].StrVal) + assert.Equal(t, "110", items[9].StrVal) seq = wfv1.Sequence{ Start: "50", @@ -909,8 +909,8 @@ func TestExpandWithSequence(t *testing.T) { items, err = expandSequence(&seq) assert.NoError(t, err) assert.Equal(t, 11, len(items)) - assert.Equal(t, "50", items[0].Value.(string)) - assert.Equal(t, "60", items[10].Value.(string)) + assert.Equal(t, "50", items[0].StrVal) + assert.Equal(t, "60", items[10].StrVal) seq = wfv1.Sequence{ Start: "60", @@ -919,8 +919,8 @@ func TestExpandWithSequence(t *testing.T) { items, err = expandSequence(&seq) assert.NoError(t, err) assert.Equal(t, 11, len(items)) - assert.Equal(t, "60", items[0].Value.(string)) - assert.Equal(t, "50", items[10].Value.(string)) + assert.Equal(t, "60", items[0].StrVal) + assert.Equal(t, "50", items[10].StrVal) seq = wfv1.Sequence{ Count: "0", @@ -936,7 +936,7 @@ func TestExpandWithSequence(t *testing.T) { items, err = expandSequence(&seq) assert.NoError(t, err) assert.Equal(t, 1, len(items)) - assert.Equal(t, "8", items[0].Value.(string)) + assert.Equal(t, "8", items[0].StrVal) seq = wfv1.Sequence{ Format: "testuser%02X", @@ -946,8 +946,8 @@ func TestExpandWithSequence(t *testing.T) { items, err = expandSequence(&seq) assert.NoError(t, err) assert.Equal(t, 10, len(items)) - assert.Equal(t, "testuser01", items[0].Value.(string)) - assert.Equal(t, "testuser0A", items[9].Value.(string)) + assert.Equal(t, "testuser01", items[0].StrVal) + assert.Equal(t, "testuser0A", items[9].StrVal) } var metadataTemplate = ` diff --git a/workflow/controller/steps.go b/workflow/controller/steps.go index 6f90fbff6c24..f042f1dc9cff 100644 --- a/workflow/controller/steps.go +++ b/workflow/controller/steps.go @@ -74,7 +74,9 @@ func (woc *wfOperationCtx) executeSteps(nodeName string, tmplCtx *templateresolu } } } - sgNode := woc.executeStepGroup(stepGroup, sgNodeName, &stepsCtx) + + sgNode := woc.executeStepGroup(stepGroup.Steps, sgNodeName, &stepsCtx) + if !sgNode.Completed() { woc.log.Infof("Workflow step group node %v not yet completed", sgNode) return nil @@ -89,7 +91,7 @@ func (woc *wfOperationCtx) executeSteps(nodeName string, tmplCtx *templateresolu } // Add all outputs of each step in the group to the scope - for _, step := range stepGroup { + for _, step := range stepGroup.Steps { childNodeName := fmt.Sprintf("%s.%s", sgNodeName, step.Name) childNode := woc.getNodeByName(childNodeName) prefix := fmt.Sprintf("steps.%s", step.Name) diff --git a/workflow/util/util.go b/workflow/util/util.go index b279f9b10c77..4dfe48348d76 100644 --- a/workflow/util/util.go +++ b/workflow/util/util.go @@ -516,7 +516,7 @@ func RetryWorkflow(kubeClient kubernetes.Interface, wfClient v1alpha1.WorkflowIn // do not add this status to the node. pretend as if this node never existed. default: // Do not allow retry of workflows with pods in Running/Pending phase - return nil, errors.InternalErrorf("Workflow cannot be retried with node %s in %s phase", node, node.Phase) + return nil, errors.InternalErrorf("Workflow cannot be retried with node %s in %s phase", node.Name, node.Phase) } if node.Type == wfv1.NodeTypePod { log.Infof("Deleting pod: %s", node.ID) diff --git a/workflow/validate/validate.go b/workflow/validate/validate.go index b70f66a863c0..572d3487342d 100644 --- a/workflow/validate/validate.go +++ b/workflow/validate/validate.go @@ -543,7 +543,7 @@ func (ctx *templateValidationCtx) validateSteps(scope map[string]interface{}, tm stepNames := make(map[string]bool) resolvedTemplates := make(map[string]*wfv1.Template) for i, stepGroup := range tmpl.Steps { - for _, step := range stepGroup { + for _, step := range stepGroup.Steps { if step.Name == "" { return errors.Errorf(errors.CodeBadRequest, "templates.%s.steps[%d].name is required", tmpl.Name, i) } @@ -579,7 +579,8 @@ func (ctx *templateValidationCtx) validateSteps(scope map[string]interface{}, tm } resolvedTemplates[step.Name] = resolvedTmpl } - for i, step := range stepGroup { + + for _, step := range stepGroup.Steps { aggregate := len(step.WithItems) > 0 || step.WithParam != "" resolvedTmpl := resolvedTemplates[step.Name] ctx.addOutputsToScope(resolvedTmpl, fmt.Sprintf("steps.%s", step.Name), scope, aggregate, false) @@ -610,11 +611,12 @@ func addItemsToScope(prefix string, withItems []wfv1.Item, withParam string, wit } if len(withItems) > 0 { for i := range withItems { - switch val := withItems[i].Value.(type) { - case string, int, int32, int64, float32, float64, bool: + val := withItems[i] + switch val.Type { + case wfv1.String, wfv1.Number, wfv1.Bool: scope["item"] = true - case map[string]interface{}: - for itemKey := range val { + case wfv1.Map: + for itemKey := range val.MapVal { scope[fmt.Sprintf("item.%s", itemKey)] = true } default: