Skip to content

Commit

Permalink
Added Protobuf extension (#1601)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarabala1979 authored Nov 1, 2019
1 parent 602e5ad commit 327fcb2
Show file tree
Hide file tree
Showing 23 changed files with 19,523 additions and 374 deletions.
47 changes: 33 additions & 14 deletions Gopkg.lock

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

8 changes: 4 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ 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"
branch = "master"

[[constraint]]
name = "k8s.io/client-go"
branch = "release-11.0"
branch = "release-12.0"

[[constraint]]
name = "github.com/stretchr/testify"
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
86 changes: 71 additions & 15 deletions api/openapi-spec/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand All @@ -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": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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": {
Expand All @@ -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": {
Expand All @@ -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": {
Expand Down
Loading

0 comments on commit 327fcb2

Please sign in to comment.