From 3bbb1109d1a7547122bb7edfe00935feb071f6ce Mon Sep 17 00:00:00 2001 From: Chris Martin Date: Sun, 7 Jul 2024 15:24:42 +0100 Subject: [PATCH] generate code Signed-off-by: Chris Martin --- go.mod | 32 +- go.sum | 37 + pkg/api/api.swagger.go | 5867 ----------------- pkg/api/api.swagger.json | 5854 ---------------- pkg/api/apiconnect/event.connect.go | 88 +- pkg/api/apiconnect/submit.connect.go | 68 +- pkg/api/binoculars/api.swagger.go | 250 - pkg/api/binoculars/api.swagger.json | 237 - pkg/api/binoculars/binoculars.pb.gw.go | 250 - pkg/api/event.pb.go | 42 +- pkg/api/event.pb.gw.go | 173 - pkg/api/event.proto | 18 +- pkg/api/event_util.go | 78 - pkg/api/job.pb.gw.go | 331 - pkg/api/jobservice/jobservice.pb.go | 460 -- pkg/api/jobservice/jobservice.proto | 46 - .../jobserviceconnect/jobservice.connect.go | 142 - pkg/api/submit.go | 27 - pkg/api/submit.pb.go | 223 +- pkg/api/submit.pb.gw.go | 1114 ---- pkg/api/submit.proto | 12 +- 21 files changed, 221 insertions(+), 15128 deletions(-) delete mode 100644 pkg/api/api.swagger.go delete mode 100644 pkg/api/api.swagger.json delete mode 100644 pkg/api/binoculars/api.swagger.go delete mode 100644 pkg/api/binoculars/api.swagger.json delete mode 100644 pkg/api/binoculars/binoculars.pb.gw.go delete mode 100644 pkg/api/event.pb.gw.go delete mode 100644 pkg/api/event_util.go delete mode 100644 pkg/api/job.pb.gw.go delete mode 100644 pkg/api/jobservice/jobservice.pb.go delete mode 100644 pkg/api/jobservice/jobservice.proto delete mode 100644 pkg/api/jobservice/jobserviceconnect/jobservice.connect.go delete mode 100644 pkg/api/submit.go delete mode 100644 pkg/api/submit.pb.gw.go diff --git a/go.mod b/go.mod index c03c249b2c5..13dc43e2786 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( github.com/go-openapi/spec v0.20.14 github.com/gogo/protobuf v1.3.2 github.com/golang/protobuf v1.5.4 - github.com/google/go-cmp v0.5.9 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/google/uuid v1.6.0 github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 @@ -46,12 +46,12 @@ require ( github.com/stretchr/testify v1.8.4 github.com/weaveworks/promrus v1.2.0 golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 - golang.org/x/net v0.22.0 - golang.org/x/oauth2 v0.18.0 - golang.org/x/sync v0.6.0 - golang.org/x/tools v0.18.0 // indirect + golang.org/x/net v0.27.0 + golang.org/x/oauth2 v0.20.0 + golang.org/x/sync v0.7.0 + golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f // indirect - google.golang.org/grpc v1.59.0 + google.golang.org/grpc v1.64.0 gopkg.in/yaml.v2 v2.4.0 k8s.io/api v0.26.15 k8s.io/apimachinery v0.26.15 @@ -88,11 +88,12 @@ require ( github.com/xitongsys/parquet-go v1.6.2 golang.org/x/time v0.5.0 gonum.org/v1/gonum v0.14.0 - google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f + google.golang.org/genproto/googleapis/api v0.0.0-20240513163218-0867130af1f8 gopkg.in/inf.v0 v0.9.1 ) require ( + connectrpc.com/connect v1.16.2 // indirect github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.1 // indirect github.com/AthenZ/athenz v1.10.39 // indirect @@ -144,6 +145,7 @@ require ( github.com/goreleaser/nfpm/v2 v2.35.3 // indirect github.com/gorilla/css v1.0.0 // indirect github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect + github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect @@ -207,15 +209,17 @@ require ( go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5 // indirect go.uber.org/atomic v1.9.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/crypto v0.21.0 // indirect - golang.org/x/mod v0.15.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/term v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect + go.vallahaye.net/connect-gateway v0.5.1 // indirect + golang.org/x/crypto v0.25.0 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/sys v0.22.0 // indirect + golang.org/x/term v0.22.0 // indirect + golang.org/x/text v0.16.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240513163218-0867130af1f8 // indirect + google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.4.0 // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/square/go-jose.v2 v2.4.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index ca765fd3121..49961143192 100644 --- a/go.sum +++ b/go.sum @@ -14,6 +14,7 @@ cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNF cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= cloud.google.com/go/compute v1.23.3 h1:6sVlXXBmbd7jNX0Ipq0trII3e4n1/MsADLK6a+aiVlk= cloud.google.com/go/compute v1.23.3/go.mod h1:VCgBUoMnIVIR0CscqQiPJLAG25E3ZRZMzcFZeQ+h8CI= +cloud.google.com/go/compute v1.25.1 h1:ZRpHJedLtTpKgr3RV1Fx23NuaAEN1Zfx9hw1u4aJdjU= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= @@ -24,6 +25,8 @@ cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIA cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +connectrpc.com/connect v1.16.2 h1:ybd6y+ls7GOlb7Bh5C8+ghA6SvCBajHwxssO2CGFjqE= +connectrpc.com/connect v1.16.2/go.mod h1:n2kgwskMHXC+lVqb18wngEpF95ldBHXjZYJussz5FRc= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= @@ -247,6 +250,7 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.1.0 h1:Hsa8mG0dQ46ij8Sl2AYJDUv1oA9/d6Vk+3LG99Oe02g= github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= @@ -283,6 +287,8 @@ github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92Bcuy github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 h1:bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0= +github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0/go.mod h1:P+Lt/0by1T8bfcF3z737NnSbmxQAppXMRziHUxPOC8k= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= github.com/hashicorp/errwrap v0.0.0-20180715044906-d6c0cd880357/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -592,6 +598,8 @@ go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9i go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= +go.vallahaye.net/connect-gateway v0.5.1 h1:uwKWu9e518PSztjJ0K9yTInKwzT8IHIzI0ihRkpAPlg= +go.vallahaye.net/connect-gateway v0.5.1/go.mod h1:vgCTHkYCrxY2ZLtdSYDbQNM4IaQ7UoaBsnlK+754gqM= golang.org/x/crypto v0.0.0-20180723164146-c126467f60eb/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= @@ -604,6 +612,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= +golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -639,6 +649,7 @@ golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -665,6 +676,8 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= +golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -672,6 +685,7 @@ golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4Iltr golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= +golang.org/x/oauth2 v0.20.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -683,6 +697,7 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180821044426-4ea2f632f6e9/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -721,10 +736,14 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= +golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8= golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= +golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk= +golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.0.0-20180810153555-6e3c4e7365dd/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -737,6 +756,8 @@ golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -778,6 +799,8 @@ golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.18.0 h1:k8NLag8AGHnn+PHbl7g43CtqZAwG60vZkLqgyZgIHgQ= golang.org/x/tools v0.18.0/go.mod h1:GL7B4CwcLLeo59yx/9UWWuNOW1n3VZ4f5axWfML7Lcg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -828,8 +851,16 @@ google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f h1:Vn+VyHU5guc9KjB google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f/go.mod h1:nWSwAFPb+qfNJXsoeO3Io7zf4tMSfN8EA8RlDA04GhY= google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f h1:2yNACc1O40tTnrsbk9Cv6oxiW8pxI/pXj0wRtdlYmgY= google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f/go.mod h1:Uy9bTZJqmfrw2rIBxgGLnamc78euZULUBrLZ9XTITKI= +google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 h1:RFiFrvy37/mpSpdySBDrUdipW/dHwsRwh3J3+A9VgT4= +google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237/go.mod h1:Z5Iiy3jtmioajWHDGFk7CeugTyHtPvMHA4UTmUkyalE= +google.golang.org/genproto/googleapis/api v0.0.0-20240513163218-0867130af1f8 h1:W5Xj/70xIA4x60O/IFyXivR5MGqblAb8R3w26pnD6No= +google.golang.org/genproto/googleapis/api v0.0.0-20240513163218-0867130af1f8/go.mod h1:vPrPUTsDCYxXWjP7clS81mZ6/803D8K4iM9Ma27VKas= google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f h1:ultW7fxlIvee4HYrtnaRPon9HpEgFk5zYpmfMgtKB5I= google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f/go.mod h1:L9KNLi232K1/xB6f7AlSX692koaRnKaWSR0stBki0Yc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 h1:NnYq6UN9ReLM9/Y01KWNOWyI5xQ9kbIms5GGJVwS/Yc= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240513163218-0867130af1f8 h1:mxSlqyb8ZAHsYDCfiXN1EDdNTdvjUJSLY+OnAUtYNYA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240513163218-0867130af1f8/go.mod h1:I7Y+G38R2bu5j1aLzfFmQfTcU/WnFuqDwLZAbvKTKpM= google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= @@ -843,6 +874,10 @@ google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3Iji google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= +google.golang.org/grpc v1.64.0 h1:KH3VH9y/MgNQg1dE7b3XfVK0GsPSIzJwdF617gUSbvY= +google.golang.org/grpc v1.64.0/go.mod h1:oxjF8E3FBnjp+/gVFYdWacaLDx9na1aqy9oovLpxQYg= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.4.0 h1:9SxA29VM43MF5Z9dQu694wmY5t8E/Gxr7s+RSxiIDmc= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.4.0/go.mod h1:yZOK5zhQMiALmuweVdIVoQPa6eIJyXn2B9g5dJDhqX4= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= @@ -855,6 +890,8 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/pkg/api/api.swagger.go b/pkg/api/api.swagger.go deleted file mode 100644 index b7db2275956..00000000000 --- a/pkg/api/api.swagger.go +++ /dev/null @@ -1,5867 +0,0 @@ -/* - * CODE GENERATED AUTOMATICALLY WITH - * github.com/wlbr/templify - * THIS FILE SHOULD NOT BE EDITED BY HAND - */ - -package api - -// SwaggerJsonTemplate is a generated function returning the template as a string. -// That string should be parsed by the functions of the golang's template package. -func SwaggerJsonTemplate() string { - var tmpl = "{\n" + - " \"consumes\": [\n" + - " \"application/json\"\n" + - " ],\n" + - " \"produces\": [\n" + - " \"application/json\"\n" + - " ],\n" + - " \"swagger\": \"2.0\",\n" + - " \"info\": {\n" + - " \"title\": \"pkg/api/event.proto\",\n" + - " \"version\": \"version not set\"\n" + - " },\n" + - " \"paths\": {\n" + - " \"/v1/batched/create_queues\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"CreateQueues\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiQueueList\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiBatchQueueCreateResponse\"\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/batched/queues\": {\n" + - " \"get\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"GetQueues\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"name\": \"num\",\n" + - " \"in\": \"query\"\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.(streaming responses)\",\n" + - " \"schema\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Stream result of apiStreamingQueueMessage\",\n" + - " \"properties\": {\n" + - " \"error\": {\n" + - " \"$ref\": \"#/definitions/runtimeStreamError\"\n" + - " },\n" + - " \"result\": {\n" + - " \"$ref\": \"#/definitions/apiStreamingQueueMessage\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/batched/update_queues\": {\n" + - " \"put\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"UpdateQueues\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiQueueList\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiBatchQueueUpdateResponse\"\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/job-set/{queue}/{id}\": {\n" + - " \"post\": {\n" + - " \"produces\": [\n" + - " \"application/ndjson-stream\"\n" + - " ],\n" + - " \"tags\": [\n" + - " \"Event\"\n" + - " ],\n" + - " \"operationId\": \"GetJobSetEvents\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"type\": \"string\",\n" + - " \"name\": \"queue\",\n" + - " \"in\": \"path\",\n" + - " \"required\": true\n" + - " },\n" + - " {\n" + - " \"type\": \"string\",\n" + - " \"name\": \"id\",\n" + - " \"in\": \"path\",\n" + - " \"required\": true\n" + - " },\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobSetRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.(streaming responses)\",\n" + - " \"schema\": {\n" + - " \"type\": \"file\",\n" + - " \"title\": \"Stream result of apiEventStreamMessage\",\n" + - " \"properties\": {\n" + - " \"error\": {\n" + - " \"$ref\": \"#/definitions/runtimeStreamError\"\n" + - " },\n" + - " \"result\": {\n" + - " \"$ref\": \"#/definitions/apiEventStreamMessage\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/job/cancel\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"CancelJobs\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobCancelRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiCancellationResult\"\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/job/details\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Jobs\"\n" + - " ],\n" + - " \"operationId\": \"GetJobDetails\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobDetailsRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobDetailsResponse\"\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/job/preempt\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"PreemptJobs\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobPreemptRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {}\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/job/reprioritize\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"ReprioritizeJobs\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobReprioritizeRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobReprioritizeResponse\"\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/job/status\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Jobs\"\n" + - " ],\n" + - " \"operationId\": \"GetJobStatus\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobStatusRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobStatusResponse\"\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/job/submit\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"SubmitJobs\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobSubmitRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobSubmitResponse\"\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/jobset/cancel\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"CancelJobSet\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobSetCancelRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {}\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/queue\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"CreateQueue\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiQueue\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {}\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/queue/{name}\": {\n" + - " \"get\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"GetQueue\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"type\": \"string\",\n" + - " \"name\": \"name\",\n" + - " \"in\": \"path\",\n" + - " \"required\": true\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiQueue\"\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"put\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"UpdateQueue\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"type\": \"string\",\n" + - " \"name\": \"name\",\n" + - " \"in\": \"path\",\n" + - " \"required\": true\n" + - " },\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiQueue\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {}\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"delete\": {\n" + - " \"tags\": [\n" + - " \"Submit\"\n" + - " ],\n" + - " \"operationId\": \"DeleteQueue\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"type\": \"string\",\n" + - " \"name\": \"name\",\n" + - " \"in\": \"path\",\n" + - " \"required\": true\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {}\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/run/details\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Jobs\"\n" + - " ],\n" + - " \"operationId\": \"GetJobRunDetails\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobRunDetailsRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/apiJobRunDetailsResponse\"\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"definitions\": {\n" + - " \"PermissionsSubject\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"kind\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"name\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"QueuePermissions\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"subjects\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/PermissionsSubject\"\n" + - " }\n" + - " },\n" + - " \"verbs\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiBatchQueueCreateResponse\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"failedQueues\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiQueueCreateResponse\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiBatchQueueUpdateResponse\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"failedQueues\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiQueueUpdateResponse\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiCancellationResult\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"cancelledIds\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiCause\": {\n" + - " \"type\": \"string\",\n" + - " \"default\": \"Error\",\n" + - " \"enum\": [\n" + - " \"Error\",\n" + - " \"Evicted\",\n" + - " \"OOM\",\n" + - " \"DeadlineExceeded\",\n" + - " \"Rejected\"\n" + - " ]\n" + - " },\n" + - " \"apiContainerStatus\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"cause\": {\n" + - " \"$ref\": \"#/definitions/apiCause\"\n" + - " },\n" + - " \"exitCode\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"message\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"name\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"reason\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiEndMarker\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Indicates the end of streams\"\n" + - " },\n" + - " \"apiEventMessage\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"cancelled\": {\n" + - " \"$ref\": \"#/definitions/apiJobCancelledEvent\"\n" + - " },\n" + - " \"cancelling\": {\n" + - " \"$ref\": \"#/definitions/apiJobCancellingEvent\"\n" + - " },\n" + - " \"failed\": {\n" + - " \"$ref\": \"#/definitions/apiJobFailedEvent\"\n" + - " },\n" + - " \"ingressInfo\": {\n" + - " \"$ref\": \"#/definitions/apiJobIngressInfoEvent\"\n" + - " },\n" + - " \"leaseExpired\": {\n" + - " \"$ref\": \"#/definitions/apiJobLeaseExpiredEvent\"\n" + - " },\n" + - " \"leaseReturned\": {\n" + - " \"$ref\": \"#/definitions/apiJobLeaseReturnedEvent\"\n" + - " },\n" + - " \"leased\": {\n" + - " \"$ref\": \"#/definitions/apiJobLeasedEvent\"\n" + - " },\n" + - " \"pending\": {\n" + - " \"$ref\": \"#/definitions/apiJobPendingEvent\"\n" + - " },\n" + - " \"preempted\": {\n" + - " \"$ref\": \"#/definitions/apiJobPreemptedEvent\"\n" + - " },\n" + - " \"preempting\": {\n" + - " \"$ref\": \"#/definitions/apiJobPreemptingEvent\"\n" + - " },\n" + - " \"queued\": {\n" + - " \"$ref\": \"#/definitions/apiJobQueuedEvent\"\n" + - " },\n" + - " \"reprioritized\": {\n" + - " \"$ref\": \"#/definitions/apiJobReprioritizedEvent\"\n" + - " },\n" + - " \"reprioritizing\": {\n" + - " \"$ref\": \"#/definitions/apiJobReprioritizingEvent\"\n" + - " },\n" + - " \"running\": {\n" + - " \"$ref\": \"#/definitions/apiJobRunningEvent\"\n" + - " },\n" + - " \"submitted\": {\n" + - " \"$ref\": \"#/definitions/apiJobSubmittedEvent\"\n" + - " },\n" + - " \"succeeded\": {\n" + - " \"$ref\": \"#/definitions/apiJobSucceededEvent\"\n" + - " },\n" + - " \"terminated\": {\n" + - " \"$ref\": \"#/definitions/apiJobTerminatedEvent\"\n" + - " },\n" + - " \"unableToSchedule\": {\n" + - " \"$ref\": \"#/definitions/apiJobUnableToScheduleEvent\"\n" + - " },\n" + - " \"utilisation\": {\n" + - " \"$ref\": \"#/definitions/apiJobUtilisationEvent\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiEventStreamMessage\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"id\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"message\": {\n" + - " \"$ref\": \"#/definitions/apiEventMessage\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiIngressConfig\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"annotations\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"certName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"ports\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\"\n" + - " }\n" + - " },\n" + - " \"tlsEnabled\": {\n" + - " \"type\": \"boolean\"\n" + - " },\n" + - " \"type\": {\n" + - " \"$ref\": \"#/definitions/apiIngressType\"\n" + - " },\n" + - " \"useClusterIP\": {\n" + - " \"type\": \"boolean\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiIngressType\": {\n" + - " \"description\": \"Ingress type is being kept here to maintain backwards compatibility for a while.\",\n" + - " \"type\": \"string\",\n" + - " \"default\": \"Ingress\",\n" + - " \"enum\": [\n" + - " \"Ingress\"\n" + - " ]\n" + - " },\n" + - " \"apiJob\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"annotations\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"clientId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"compressedQueueOwnershipUserGroups\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"byte\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"id\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"ingress\": {\n" + - " \"description\": \"Services can be provided either as Armada-specific config objects or as proper k8s objects.\\nThese options are exclusive, i.e., if either ingress or services is provided,\\nthen neither of k8s_ingress or k8s_service can be provided, and vice versa.\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiIngressConfig\"\n" + - " }\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"k8sIngress\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1Ingress\"\n" + - " }\n" + - " },\n" + - " \"k8sService\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1Service\"\n" + - " }\n" + - " },\n" + - " \"labels\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"namespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"owner\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podSpec\": {\n" + - " \"$ref\": \"#/definitions/v1PodSpec\"\n" + - " },\n" + - " \"podSpecs\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PodSpec\"\n" + - " }\n" + - " },\n" + - " \"priority\": {\n" + - " \"type\": \"number\",\n" + - " \"format\": \"double\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queueOwnershipUserGroups\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"queueTtlSeconds\": {\n" + - " \"description\": \"Queuing TTL for this job in seconds. If this job queues for more than this duration it will be cancelled. Zero indicates an infinite lifetime.\",\n" + - " \"type\": \"string\",\n" + - " \"format\": \"int64\"\n" + - " },\n" + - " \"requiredNodeLabels\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"scheduler\": {\n" + - " \"description\": \"Indicates which scheduler should manage this job.\\nIf empty, the default scheduler is used.\",\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"schedulingResourceRequirements\": {\n" + - " \"description\": \"max(\\n\\n\\tsum across all containers,\\n\\tmax over all init containers,\\n\\n)\\n\\nThis is because containers run in parallel, whereas initContainers run serially.\\nThis field is populated automatically at submission.\\nSubmitting a job with this field already populated results in an error.\",\n" + - " \"title\": \"Resource requests and limits necessary for scheduling the main pod of this job.\\nThe requests and limits herein are set to:\",\n" + - " \"$ref\": \"#/definitions/v1ResourceRequirements\"\n" + - " },\n" + - " \"services\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiServiceConfig\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobCancelRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobIds\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"reason\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobCancelledEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"reason\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"requestor\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobCancellingEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"reason\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"requestor\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobDetails\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"cancelReason\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"cancelTs\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobRuns\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiJobRunDetails\"\n" + - " }\n" + - " },\n" + - " \"jobSpec\": {\n" + - " \"$ref\": \"#/definitions/apiJob\"\n" + - " },\n" + - " \"jobset\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"lastTransitionTs\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"latestRunId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"namespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"state\": {\n" + - " \"$ref\": \"#/definitions/apiJobState\"\n" + - " },\n" + - " \"submittedTs\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobDetailsRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"expandJobRun\": {\n" + - " \"type\": \"boolean\"\n" + - " },\n" + - " \"expandJobSpec\": {\n" + - " \"type\": \"boolean\"\n" + - " },\n" + - " \"jobIds\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobDetailsResponse\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"jobDetails\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"$ref\": \"#/definitions/apiJobDetails\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobFailedEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"cause\": {\n" + - " \"$ref\": \"#/definitions/apiCause\"\n" + - " },\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"containerStatuses\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiContainerStatus\"\n" + - " }\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"exitCodes\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " }\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"kubernetesId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"nodeName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNamespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNumber\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"reason\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobIngressInfoEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"ingressAddresses\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"kubernetesId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"nodeName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNamespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNumber\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobLeaseExpiredEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobLeaseReturnedEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"kubernetesId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNumber\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"reason\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"runAttempted\": {\n" + - " \"type\": \"boolean\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobLeasedEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobPendingEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"kubernetesId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNamespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNumber\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobPreemptRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"jobIds\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobPreemptedEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"preemptiveJobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"preemptiveRunId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"runId\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobPreemptingEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"requestor\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobQueuedEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobReprioritizeRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"jobIds\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"newPriority\": {\n" + - " \"type\": \"number\",\n" + - " \"format\": \"double\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobReprioritizeResponse\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"reprioritizationResults\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobReprioritizedEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"newPriority\": {\n" + - " \"type\": \"number\",\n" + - " \"format\": \"double\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"requestor\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobReprioritizingEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"newPriority\": {\n" + - " \"type\": \"number\",\n" + - " \"format\": \"double\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"requestor\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobRunDetails\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"cluster\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"finishedTs\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"leasedTs\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"node\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"pendingTs\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"runId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"startedTs\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"state\": {\n" + - " \"$ref\": \"#/definitions/apiJobRunState\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobRunDetailsRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"runIds\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobRunDetailsResponse\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"jobRunDetails\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"$ref\": \"#/definitions/apiJobRunDetails\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobRunState\": {\n" + - " \"type\": \"string\",\n" + - " \"default\": \"RUN_STATE_UNKNOWN\",\n" + - " \"enum\": [\n" + - " \"RUN_STATE_UNKNOWN\",\n" + - " \"RUN_STATE_LEASED\",\n" + - " \"RUN_STATE_PENDING\",\n" + - " \"RUN_STATE_RUNNING\",\n" + - " \"RUN_STATE_SUCCEEDED\",\n" + - " \"RUN_STATE_FAILED\",\n" + - " \"RUN_STATE_PREEMPTED\",\n" + - " \"RUN_STATE_CANCELLED\",\n" + - " \"RUN_STATE_LEASE_EXPIRED\",\n" + - " \"RUNS_STATE_LEASE_RETURNED\"\n" + - " ]\n" + - " },\n" + - " \"apiJobRunningEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"kubernetesId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"nodeName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNamespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNumber\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobSetCancelRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"filter\": {\n" + - " \"$ref\": \"#/definitions/apiJobSetFilter\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"reason\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobSetFilter\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"states\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiJobState\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobSetRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"errorIfMissing\": {\n" + - " \"type\": \"boolean\"\n" + - " },\n" + - " \"fromMessageId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"id\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"watch\": {\n" + - " \"type\": \"boolean\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobState\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"default\": \"QUEUED\",\n" + - " \"enum\": [\n" + - " \"QUEUED\",\n" + - " \"PENDING\",\n" + - " \"RUNNING\",\n" + - " \"SUCCEEDED\",\n" + - " \"FAILED\",\n" + - " \"UNKNOWN\",\n" + - " \"SUBMITTED\",\n" + - " \"LEASED\",\n" + - " \"PREEMPTED\",\n" + - " \"CANCELLED\",\n" + - " \"REJECTED\"\n" + - " ]\n" + - " },\n" + - " \"apiJobStatusRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"jobIds\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobStatusResponse\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"jobStates\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"$ref\": \"#/definitions/apiJobState\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobSubmitRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"jobRequestItems\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiJobSubmitRequestItem\"\n" + - " }\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobSubmitRequestItem\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"annotations\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"clientId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"ingress\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiIngressConfig\"\n" + - " }\n" + - " },\n" + - " \"labels\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"namespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podSpec\": {\n" + - " \"$ref\": \"#/definitions/v1PodSpec\"\n" + - " },\n" + - " \"podSpecs\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PodSpec\"\n" + - " }\n" + - " },\n" + - " \"priority\": {\n" + - " \"type\": \"number\",\n" + - " \"format\": \"double\"\n" + - " },\n" + - " \"requiredNodeLabels\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"scheduler\": {\n" + - " \"description\": \"Indicates which scheduler should manage this job.\\nIf empty, the default scheduler is used.\",\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"services\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiServiceConfig\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobSubmitResponse\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"jobResponseItems\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiJobSubmitResponseItem\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobSubmitResponseItem\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"error\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobSubmittedEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"job\": {\n" + - " \"$ref\": \"#/definitions/apiJob\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobSucceededEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"kubernetesId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"nodeName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNamespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNumber\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobTerminatedEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"kubernetesId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNamespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNumber\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"reason\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobUnableToScheduleEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"kubernetesId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"nodeName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNamespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNumber\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"reason\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiJobUtilisationEvent\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"MaxResourcesForPeriod\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"$ref\": \"#/definitions/resourceQuantity\"\n" + - " }\n" + - " },\n" + - " \"clusterId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"created\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\"\n" + - " },\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"jobSetId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"kubernetesId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"nodeName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podName\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNamespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNumber\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"totalCumulativeUsage\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"$ref\": \"#/definitions/resourceQuantity\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiPriorityClassPoolResourceLimits\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"maximumResourceFraction\": {\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"number\",\n" + - " \"format\": \"double\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiPriorityClassResourceLimits\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"maximumResourceFraction\": {\n" + - " \"description\": \"Limits resources assigned to jobs of this priority class.\\nSpecifically, jobs of this priority class are only scheduled if doing so does not exceed this limit.\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"number\",\n" + - " \"format\": \"double\"\n" + - " }\n" + - " },\n" + - " \"maximumResourceFractionByPool\": {\n" + - " \"description\": \"Per-pool override of maximum_resource_fraction.\\nIf missing for a particular pool, maximum_resource_fraction is used instead for that pool.\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"$ref\": \"#/definitions/apiPriorityClassPoolResourceLimits\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiQueue\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"groupOwners\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"name\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"permissions\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/QueuePermissions\"\n" + - " }\n" + - " },\n" + - " \"priorityFactor\": {\n" + - " \"type\": \"number\",\n" + - " \"format\": \"double\"\n" + - " },\n" + - " \"resourceLimits\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"These are ignored and should be removed\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"number\",\n" + - " \"format\": \"double\"\n" + - " }\n" + - " },\n" + - " \"resourceLimitsByPriorityClassName\": {\n" + - " \"description\": \"Map from priority class name to resource limit overrides for this queue and priority class.\\nIf provided for a priority class, global limits for that priority class do not apply to this queue.\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"$ref\": \"#/definitions/apiPriorityClassResourceLimits\"\n" + - " }\n" + - " },\n" + - " \"userOwners\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiQueueCreateResponse\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"error\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"$ref\": \"#/definitions/apiQueue\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiQueueList\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"queues\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/apiQueue\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiQueueUpdateResponse\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"error\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"$ref\": \"#/definitions/apiQueue\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiServiceConfig\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"ports\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\"\n" + - " }\n" + - " },\n" + - " \"type\": {\n" + - " \"$ref\": \"#/definitions/apiServiceType\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"apiServiceType\": {\n" + - " \"type\": \"string\",\n" + - " \"default\": \"NodePort\",\n" + - " \"enum\": [\n" + - " \"NodePort\",\n" + - " \"Headless\"\n" + - " ]\n" + - " },\n" + - " \"apiStreamingQueueMessage\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"end\": {\n" + - " \"$ref\": \"#/definitions/apiEndMarker\"\n" + - " },\n" + - " \"queue\": {\n" + - " \"$ref\": \"#/definitions/apiQueue\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"intstrIntOrString\": {\n" + - " \"description\": \"+protobuf=true\\n+protobuf.options.(gogoproto.goproto_stringer)=false\\n+k8s:openapi-gen=true\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"IntOrString is a type that can hold an int32 or a string. When used in\\nJSON or YAML marshalling and unmarshalling, it produces or consumes the\\ninner type. This allows you to have, for example, a JSON field that can\\naccept a name or number.\\nTODO: Rename to Int32OrString\",\n" + - " \"properties\": {\n" + - " \"IntVal\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"StrVal\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"Type\": {\n" + - " \"$ref\": \"#/definitions/intstrType\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/util/intstr\"\n" + - " },\n" + - " \"intstrType\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"title\": \"Type represents the stored type of IntOrString.\",\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/util/intstr\"\n" + - " },\n" + - " \"protobufAny\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"typeUrl\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"value\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"byte\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"resourceQuantity\": {\n" + - " \"description\": \"The serialization format is:\\n\\n```\\n\\u003cquantity\\u003e ::= \\u003csignedNumber\\u003e\\u003csuffix\\u003e\\n\\n(Note that \\u003csuffix\\u003e may be empty, from the \\\"\\\" case in \\u003cdecimalSI\\u003e.)\\n\\n\\u003cdigit\\u003e ::= 0 | 1 | ... | 9\\n\\u003cdigits\\u003e ::= \\u003cdigit\\u003e | \\u003cdigit\\u003e\\u003cdigits\\u003e\\n\\u003cnumber\\u003e ::= \\u003cdigits\\u003e | \\u003cdigits\\u003e.\\u003cdigits\\u003e | \\u003cdigits\\u003e. | .\\u003cdigits\\u003e\\n\\u003csign\\u003e ::= \\\"+\\\" | \\\"-\\\"\\n\\u003csignedNumber\\u003e ::= \\u003cnumber\\u003e | \\u003csign\\u003e\\u003cnumber\\u003e\\n\\u003csuffix\\u003e ::= \\u003cbinarySI\\u003e | \\u003cdecimalExponent\\u003e | \\u003cdecimalSI\\u003e\\n\\u003cbinarySI\\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\\n\\n(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\\n\\n\\u003cdecimalSI\\u003e ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\\n\\n\\u003cdecimalExponent\\u003e ::= \\\"e\\\" \\u003csignedNumber\\u003e | \\\"E\\\" \\u003csignedNumber\\u003e\\n```\\n\\nNo matter which of the three exponent forms is used, no quantity may represent\\na number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\\nplaces. Numbers larger or more precise will be capped or rounded up.\\n(E.g.: 0.1m will rounded up to 1m.)\\nThis may be extended in the future if we require larger or smaller quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember the type of suffix\\nit had, and will use the same type again when it is serialized.\\n\\nBefore serializing, Quantity will be put in \\\"canonical form\\\".\\nThis means that Exponent/suffix will be adjusted up or down (with a\\ncorresponding increase or decrease in Mantissa) such that:\\n\\nNo precision is lost\\nNo fractional digits will be emitted\\nThe exponent (or suffix) is as large as possible.\\n\\nThe sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n1.5 will be serialized as \\\"1500m\\\"\\n1.5Gi will be serialized as \\\"1536Mi\\\"\\n\\nNote that the quantity will NEVER be internally represented by a\\nfloating point number. That is the whole point of this exercise.\\n\\nNon-canonical values will still parse as long as they are well formed,\\nbut will be re-emitted in their canonical form. (So always use canonical\\nform, or don't diff.)\\n\\nThis format is intended to make it difficult to use these numbers without\\nwriting some sort of special handling code in the hopes that that will\\ncause implementors to also use a fixed point implementation.\\n\\n+protobuf=true\\n+protobuf.embed=string\\n+protobuf.options.marshal=false\\n+protobuf.options.(gogoproto.goproto_stringer)=false\\n+k8s:deepcopy-gen=true\\n+k8s:openapi-gen=true\",\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Quantity is a fixed-point representation of a number.\\nIt provides convenient marshaling/unmarshaling in JSON and YAML,\\nin addition to String() and AsInt64() accessors.\",\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/api/resource\"\n" + - " },\n" + - " \"runtimeError\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"code\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"details\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/protobufAny\"\n" + - " }\n" + - " },\n" + - " \"error\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"message\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"runtimeStreamError\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"details\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/protobufAny\"\n" + - " }\n" + - " },\n" + - " \"grpcCode\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"httpCode\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"httpStatus\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"message\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"typesUID\": {\n" + - " \"description\": \"UID is a type that holds unique ID values, including UUIDs. Because we\\ndon't ONLY use UUIDs, this is an alias to string. Being a type captures\\nintent and helps make sure that UIDs and names do not get conflated.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/types\"\n" + - " },\n" + - " \"v1AWSElasticBlockStoreVolumeSource\": {\n" + - " \"description\": \"An AWS EBS disk must exist before mounting to a container. The disk\\nmust also be in the same AWS zone as the kubelet. An AWS EBS disk\\ncan only be mounted as read/write once. AWS EBS volumes support\\nownership management and SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a Persistent Disk resource in AWS.\",\n" + - " \"properties\": {\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is the filesystem type of the volume that you want to mount.\\nTip: Ensure that the filesystem type is supported by the host operating system.\\nExamples: \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore\\nTODO: how do we prevent errors in the filesystem from compromising the machine\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"partition\": {\n" + - " \"description\": \"partition is the partition in the volume that you want to mount.\\nIf omitted, the default is to mount by volume name.\\nExamples: For volume /dev/sda1, you specify the partition as \\\"1\\\".\\nSimilarly, the volume partition for /dev/sda is \\\"0\\\" (or you can leave the property empty).\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"Partition\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly value true will force the readOnly setting in VolumeMounts.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"volumeID\": {\n" + - " \"description\": \"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"VolumeID\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Affinity\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Affinity is a group of affinity scheduling rules.\",\n" + - " \"properties\": {\n" + - " \"nodeAffinity\": {\n" + - " \"$ref\": \"#/definitions/v1NodeAffinity\"\n" + - " },\n" + - " \"podAffinity\": {\n" + - " \"$ref\": \"#/definitions/v1PodAffinity\"\n" + - " },\n" + - " \"podAntiAffinity\": {\n" + - " \"$ref\": \"#/definitions/v1PodAntiAffinity\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1AzureDataDiskCachingMode\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1AzureDataDiskKind\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1AzureDiskVolumeSource\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.\",\n" + - " \"properties\": {\n" + - " \"cachingMode\": {\n" + - " \"$ref\": \"#/definitions/v1AzureDataDiskCachingMode\"\n" + - " },\n" + - " \"diskName\": {\n" + - " \"description\": \"diskName is the Name of the data disk in the blob storage\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"DiskName\"\n" + - " },\n" + - " \"diskURI\": {\n" + - " \"description\": \"diskURI is the URI of data disk in the blob storage\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"DataDiskURI\"\n" + - " },\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is Filesystem type to mount.\\nMust be a filesystem type supported by the host operating system.\\nEx. \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"kind\": {\n" + - " \"$ref\": \"#/definitions/v1AzureDataDiskKind\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly Defaults to false (read/write). ReadOnly here will force\\nthe ReadOnly setting in VolumeMounts.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1AzureFileVolumeSource\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"AzureFile represents an Azure File Service mount on the host and bind mount to the pod.\",\n" + - " \"properties\": {\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly defaults to false (read/write). ReadOnly here will force\\nthe ReadOnly setting in VolumeMounts.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"secretName\": {\n" + - " \"description\": \"secretName is the name of secret that contains Azure Storage Account Name and Key\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"SecretName\"\n" + - " },\n" + - " \"shareName\": {\n" + - " \"description\": \"shareName is the azure share Name\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"ShareName\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1CSIVolumeSource\": {\n" + - " \"description\": \"Represents a source location of a volume to mount, managed by an external CSI driver\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"driver\": {\n" + - " \"description\": \"driver is the name of the CSI driver that handles this volume.\\nConsult with your admin for the correct name as registered in the cluster.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Driver\"\n" + - " },\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType to mount. Ex. \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\".\\nIf not provided, the empty value is passed to the associated CSI driver\\nwhich will determine the default filesystem to apply.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"nodePublishSecretRef\": {\n" + - " \"$ref\": \"#/definitions/v1LocalObjectReference\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly specifies a read-only configuration for the volume.\\nDefaults to false (read/write).\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"volumeAttributes\": {\n" + - " \"description\": \"volumeAttributes stores driver-specific properties that are passed to the CSI\\ndriver. Consult your driver's documentation for supported values.\\n+optional\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"VolumeAttributes\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Capabilities\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Adds and removes POSIX capabilities from running containers.\",\n" + - " \"properties\": {\n" + - " \"add\": {\n" + - " \"description\": \"Added capabilities\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1Capability\"\n" + - " },\n" + - " \"x-go-name\": \"Add\"\n" + - " },\n" + - " \"drop\": {\n" + - " \"description\": \"Removed capabilities\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1Capability\"\n" + - " },\n" + - " \"x-go-name\": \"Drop\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Capability\": {\n" + - " \"description\": \"Capability represent POSIX capabilities type\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1CephFSVolumeSource\": {\n" + - " \"description\": \"Represents a Ceph Filesystem mount that lasts the lifetime of a pod\\nCephfs volumes do not support ownership management or SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"monitors\": {\n" + - " \"description\": \"monitors is Required: Monitors is a collection of Ceph monitors\\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Monitors\"\n" + - " },\n" + - " \"path\": {\n" + - " \"description\": \"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Path\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\\nthe ReadOnly setting in VolumeMounts.\\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"secretFile\": {\n" + - " \"description\": \"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret\\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"SecretFile\"\n" + - " },\n" + - " \"secretRef\": {\n" + - " \"$ref\": \"#/definitions/v1LocalObjectReference\"\n" + - " },\n" + - " \"user\": {\n" + - " \"description\": \"user is optional: User is the rados user name, default is admin\\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"User\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1CinderVolumeSource\": {\n" + - " \"description\": \"A Cinder volume must exist before mounting to a container.\\nThe volume must also be in the same region as the kubelet.\\nCinder volumes support ownership management and SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a cinder volume resource in Openstack.\",\n" + - " \"properties\": {\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is the filesystem type to mount.\\nMust be a filesystem type supported by the host operating system.\\nExamples: \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly defaults to false (read/write). ReadOnly here will force\\nthe ReadOnly setting in VolumeMounts.\\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"secretRef\": {\n" + - " \"$ref\": \"#/definitions/v1LocalObjectReference\"\n" + - " },\n" + - " \"volumeID\": {\n" + - " \"description\": \"volumeID used to identify the volume in cinder.\\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"VolumeID\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ClaimSource\": {\n" + - " \"description\": \"Exactly one of these fields should be set. Consumers of this type must\\ntreat an empty object as if it has an unknown value.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"ClaimSource describes a reference to a ResourceClaim.\",\n" + - " \"properties\": {\n" + - " \"resourceClaimName\": {\n" + - " \"description\": \"ResourceClaimName is the name of a ResourceClaim object in the same\\nnamespace as this pod.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"ResourceClaimName\"\n" + - " },\n" + - " \"resourceClaimTemplateName\": {\n" + - " \"description\": \"ResourceClaimTemplateName is the name of a ResourceClaimTemplate\\nobject in the same namespace as this pod.\\n\\nThe template will be used to create a new ResourceClaim, which will\\nbe bound to this pod. When this pod is deleted, the ResourceClaim\\nwill also be deleted. The name of the ResourceClaim will be \\u003cpod\\nname\\u003e-\\u003cresource name\\u003e, where \\u003cresource name\\u003e is the\\nPodResourceClaim.Name. Pod validation will reject the pod if the\\nconcatenated name is not valid for a ResourceClaim (e.g. too long).\\n\\nAn existing ResourceClaim with that name that is not owned by the\\npod will not be used for the pod to avoid using an unrelated\\nresource by mistake. Scheduling and pod startup are then blocked\\nuntil the unrelated ResourceClaim is removed.\\n\\nThis field is immutable and no changes will be made to the\\ncorresponding ResourceClaim by the control plane after creating the\\nResourceClaim.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"ResourceClaimTemplateName\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ClientIPConfig\": {\n" + - " \"description\": \"ClientIPConfig represents the configurations of Client IP based session affinity.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"timeoutSeconds\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"title\": \"timeoutSeconds specifies the seconds of ClientIP type session sticky time.\\nThe value must be \\u003e0 \\u0026\\u0026 \\u003c=86400(for 1 day) if ServiceAffinity == \\\"ClientIP\\\".\\nDefault value is 10800(for 3 hours).\\n+optional\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1Condition\": {\n" + - " \"description\": \"type FooStatus struct{\\n\\t // Represents the observations of a foo's current state.\\n\\t // Known .status.conditions.type are: \\\"Available\\\", \\\"Progressing\\\", and \\\"Degraded\\\"\\n\\t // +patchMergeKey=type\\n\\t // +patchStrategy=merge\\n\\t // +listType=map\\n\\t // +listMapKey=type\\n\\t Conditions []metav1.Condition `json:\\\"conditions,omitempty\\\" patchStrategy:\\\"merge\\\" patchMergeKey:\\\"type\\\" protobuf:\\\"bytes,1,rep,name=conditions\\\"`\\n\\n\\t // other fields\\n\\t}\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Condition contains details for one aspect of the current state of this API Resource.\\n---\\nThis struct is intended for direct use as an array at the field path .status.conditions. For example,\",\n" + - " \"properties\": {\n" + - " \"lastTransitionTime\": {\n" + - " \"title\": \"lastTransitionTime is the last time the condition transitioned from one status to another.\\nThis should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.\\n+required\\n+kubebuilder:validation:Required\\n+kubebuilder:validation:Type=string\\n+kubebuilder:validation:Format=date-time\",\n" + - " \"$ref\": \"#/definitions/v1Time\"\n" + - " },\n" + - " \"message\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"message is a human readable message indicating details about the transition.\\nThis may be an empty string.\\n+required\\n+kubebuilder:validation:Required\\n+kubebuilder:validation:MaxLength=32768\"\n" + - " },\n" + - " \"observedGeneration\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"int64\",\n" + - " \"title\": \"observedGeneration represents the .metadata.generation that the condition was set based upon.\\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\\nwith respect to the current state of the instance.\\n+optional\\n+kubebuilder:validation:Minimum=0\"\n" + - " },\n" + - " \"reason\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"reason contains a programmatic identifier indicating the reason for the condition's last transition.\\nProducers of specific condition types may define expected values and meanings for this field,\\nand whether the values are considered a guaranteed API.\\nThe value should be a CamelCase string.\\nThis field may not be empty.\\n+required\\n+kubebuilder:validation:Required\\n+kubebuilder:validation:MaxLength=1024\\n+kubebuilder:validation:MinLength=1\\n+kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`\"\n" + - " },\n" + - " \"status\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"status of the condition, one of True, False, Unknown.\\n+required\\n+kubebuilder:validation:Required\\n+kubebuilder:validation:Enum=True;False;Unknown\"\n" + - " },\n" + - " \"type\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"type of condition in CamelCase or in foo.example.com/CamelCase.\\n---\\nMany .condition.type values are consistent across resources like Available, but because arbitrary conditions can be\\nuseful (see .node.status.conditions), the ability to deconflict is important.\\nThe regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)\\n+required\\n+kubebuilder:validation:Required\\n+kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`\\n+kubebuilder:validation:MaxLength=316\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1ConfigMapEnvSource\": {\n" + - " \"description\": \"The contents of the target ConfigMap's Data field will represent the\\nkey-value pairs as environment variables.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"ConfigMapEnvSource selects a ConfigMap to populate the environment\\nvariables with.\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"Name of the referent.\\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\\nTODO: Add other useful fields. apiVersion, kind, uid?\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"optional\": {\n" + - " \"description\": \"Specify whether the ConfigMap must be defined\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Optional\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ConfigMapKeySelector\": {\n" + - " \"description\": \"+structType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Selects a key from a ConfigMap.\",\n" + - " \"properties\": {\n" + - " \"key\": {\n" + - " \"description\": \"The key to select.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Key\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name of the referent.\\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\\nTODO: Add other useful fields. apiVersion, kind, uid?\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"optional\": {\n" + - " \"description\": \"Specify whether the ConfigMap or its key must be defined\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Optional\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ConfigMapProjection\": {\n" + - " \"description\": \"The contents of the target ConfigMap's Data field will be presented in a\\nprojected volume as files using the keys in the Data field as the file names,\\nunless the items element is populated with specific mappings of keys to paths.\\nNote that this is identical to a configmap volume source without the default\\nmode.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Adapts a ConfigMap into a projected volume.\",\n" + - " \"properties\": {\n" + - " \"items\": {\n" + - " \"description\": \"items if unspecified, each key-value pair in the Data field of the referenced\\nConfigMap will be projected into the volume as a file whose name is the\\nkey and content is the value. If specified, the listed keys will be\\nprojected into the specified paths, and unlisted keys will not be\\npresent. If a key is specified which is not present in the ConfigMap,\\nthe volume setup will error unless it is marked optional. Paths must be\\nrelative and may not contain the '..' path or start with '..'.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1KeyToPath\"\n" + - " },\n" + - " \"x-go-name\": \"Items\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name of the referent.\\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\\nTODO: Add other useful fields. apiVersion, kind, uid?\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"optional\": {\n" + - " \"description\": \"optional specify whether the ConfigMap or its keys must be defined\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Optional\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ConfigMapVolumeSource\": {\n" + - " \"description\": \"The contents of the target ConfigMap's Data field will be presented in a\\nvolume as files using the keys in the Data field as the file names, unless\\nthe items element is populated with specific mappings of keys to paths.\\nConfigMap volumes support ownership management and SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Adapts a ConfigMap into a volume.\",\n" + - " \"properties\": {\n" + - " \"defaultMode\": {\n" + - " \"description\": \"defaultMode is optional: mode bits used to set permissions on created files by default.\\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\\nDefaults to 0644.\\nDirectories within the path are not affected by this setting.\\nThis might be in conflict with other options that affect the file\\nmode, like fsGroup, and the result can be other mode bits set.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"DefaultMode\"\n" + - " },\n" + - " \"items\": {\n" + - " \"description\": \"items if unspecified, each key-value pair in the Data field of the referenced\\nConfigMap will be projected into the volume as a file whose name is the\\nkey and content is the value. If specified, the listed keys will be\\nprojected into the specified paths, and unlisted keys will not be\\npresent. If a key is specified which is not present in the ConfigMap,\\nthe volume setup will error unless it is marked optional. Paths must be\\nrelative and may not contain the '..' path or start with '..'.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1KeyToPath\"\n" + - " },\n" + - " \"x-go-name\": \"Items\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name of the referent.\\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\\nTODO: Add other useful fields. apiVersion, kind, uid?\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"optional\": {\n" + - " \"description\": \"optional specify whether the ConfigMap or its keys must be defined\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Optional\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Container\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"A single application container that you want to run within a pod.\",\n" + - " \"properties\": {\n" + - " \"args\": {\n" + - " \"description\": \"Arguments to the entrypoint.\\nThe container image's CMD is used if this is not provided.\\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will\\nproduce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless\\nof whether the variable exists or not. Cannot be updated.\\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Args\"\n" + - " },\n" + - " \"command\": {\n" + - " \"description\": \"Entrypoint array. Not executed within a shell.\\nThe container image's ENTRYPOINT is used if this is not provided.\\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will\\nproduce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless\\nof whether the variable exists or not. Cannot be updated.\\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Command\"\n" + - " },\n" + - " \"env\": {\n" + - " \"description\": \"List of environment variables to set in the container.\\nCannot be updated.\\n+optional\\n+patchMergeKey=name\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1EnvVar\"\n" + - " },\n" + - " \"x-go-name\": \"Env\"\n" + - " },\n" + - " \"envFrom\": {\n" + - " \"description\": \"List of sources to populate environment variables in the container.\\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\\nwill be reported as an event when the container is starting. When a key exists in multiple\\nsources, the value associated with the last source will take precedence.\\nValues defined by an Env with a duplicate key will take precedence.\\nCannot be updated.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1EnvFromSource\"\n" + - " },\n" + - " \"x-go-name\": \"EnvFrom\"\n" + - " },\n" + - " \"image\": {\n" + - " \"description\": \"Container image name.\\nMore info: https://kubernetes.io/docs/concepts/containers/images\\nThis field is optional to allow higher level config management to default or override\\ncontainer images in workload controllers like Deployments and StatefulSets.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Image\"\n" + - " },\n" + - " \"imagePullPolicy\": {\n" + - " \"$ref\": \"#/definitions/v1PullPolicy\"\n" + - " },\n" + - " \"lifecycle\": {\n" + - " \"$ref\": \"#/definitions/v1Lifecycle\"\n" + - " },\n" + - " \"livenessProbe\": {\n" + - " \"$ref\": \"#/definitions/v1Probe\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name of the container specified as a DNS_LABEL.\\nEach container in a pod must have a unique name (DNS_LABEL).\\nCannot be updated.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"ports\": {\n" + - " \"description\": \"List of ports to expose from the container. Not specifying a port here\\nDOES NOT prevent that port from being exposed. Any port which is\\nlistening on the default \\\"0.0.0.0\\\" address inside a container will be\\naccessible from the network.\\nModifying this array with strategic merge patch may corrupt the data.\\nFor more information See https://github.com/kubernetes/kubernetes/issues/108255.\\nCannot be updated.\\n+optional\\n+patchMergeKey=containerPort\\n+patchStrategy=merge\\n+listType=map\\n+listMapKey=containerPort\\n+listMapKey=protocol\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1ContainerPort\"\n" + - " },\n" + - " \"x-go-name\": \"Ports\"\n" + - " },\n" + - " \"readinessProbe\": {\n" + - " \"$ref\": \"#/definitions/v1Probe\"\n" + - " },\n" + - " \"resources\": {\n" + - " \"$ref\": \"#/definitions/v1ResourceRequirements\"\n" + - " },\n" + - " \"securityContext\": {\n" + - " \"$ref\": \"#/definitions/v1SecurityContext\"\n" + - " },\n" + - " \"startupProbe\": {\n" + - " \"$ref\": \"#/definitions/v1Probe\"\n" + - " },\n" + - " \"stdin\": {\n" + - " \"description\": \"Whether this container should allocate a buffer for stdin in the container runtime. If this\\nis not set, reads from stdin in the container will always result in EOF.\\nDefault is false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Stdin\"\n" + - " },\n" + - " \"stdinOnce\": {\n" + - " \"description\": \"Whether the container runtime should close the stdin channel after it has been opened by\\na single attach. When stdin is true the stdin stream will remain open across multiple attach\\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\\nat which time stdin is closed and remains closed until the container is restarted. If this\\nflag is false, a container processes that reads from stdin will never receive an EOF.\\nDefault is false\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"StdinOnce\"\n" + - " },\n" + - " \"terminationMessagePath\": {\n" + - " \"description\": \"Optional: Path at which the file to which the container's termination message\\nwill be written is mounted into the container's filesystem.\\nMessage written is intended to be brief final status, such as an assertion failure message.\\nWill be truncated by the node if greater than 4096 bytes. The total message length across\\nall containers will be limited to 12kb.\\nDefaults to /dev/termination-log.\\nCannot be updated.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"TerminationMessagePath\"\n" + - " },\n" + - " \"terminationMessagePolicy\": {\n" + - " \"$ref\": \"#/definitions/v1TerminationMessagePolicy\"\n" + - " },\n" + - " \"tty\": {\n" + - " \"description\": \"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\\nDefault is false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"TTY\"\n" + - " },\n" + - " \"volumeDevices\": {\n" + - " \"description\": \"volumeDevices is the list of block devices to be used by the container.\\n+patchMergeKey=devicePath\\n+patchStrategy=merge\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1VolumeDevice\"\n" + - " },\n" + - " \"x-go-name\": \"VolumeDevices\"\n" + - " },\n" + - " \"volumeMounts\": {\n" + - " \"description\": \"Pod volumes to mount into the container's filesystem.\\nCannot be updated.\\n+optional\\n+patchMergeKey=mountPath\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1VolumeMount\"\n" + - " },\n" + - " \"x-go-name\": \"VolumeMounts\"\n" + - " },\n" + - " \"workingDir\": {\n" + - " \"description\": \"Container's working directory.\\nIf not specified, the container runtime's default will be used, which\\nmight be configured in the container image.\\nCannot be updated.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"WorkingDir\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ContainerPort\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"ContainerPort represents a network port in a single container.\",\n" + - " \"properties\": {\n" + - " \"containerPort\": {\n" + - " \"description\": \"Number of port to expose on the pod's IP address.\\nThis must be a valid port number, 0 \\u003c x \\u003c 65536.\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"ContainerPort\"\n" + - " },\n" + - " \"hostIP\": {\n" + - " \"description\": \"What host IP to bind the external port to.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"HostIP\"\n" + - " },\n" + - " \"hostPort\": {\n" + - " \"description\": \"Number of port to expose on the host.\\nIf specified, this must be a valid port number, 0 \\u003c x \\u003c 65536.\\nIf HostNetwork is specified, this must match ContainerPort.\\nMost containers do not need this.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"HostPort\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\\nnamed port in a pod must have a unique name. Name for the port that can be\\nreferred to by services.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"protocol\": {\n" + - " \"$ref\": \"#/definitions/v1Protocol\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1DNSPolicy\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"title\": \"DNSPolicy defines how a pod's DNS will be configured.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1DownwardAPIProjection\": {\n" + - " \"description\": \"Note that this is identical to a downwardAPI volume source without the default\\nmode.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents downward API info for projecting into a projected volume.\",\n" + - " \"properties\": {\n" + - " \"items\": {\n" + - " \"description\": \"Items is a list of DownwardAPIVolume file\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1DownwardAPIVolumeFile\"\n" + - " },\n" + - " \"x-go-name\": \"Items\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1DownwardAPIVolumeFile\": {\n" + - " \"description\": \"DownwardAPIVolumeFile represents information to create the file containing the pod field\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"fieldRef\": {\n" + - " \"$ref\": \"#/definitions/v1ObjectFieldSelector\"\n" + - " },\n" + - " \"mode\": {\n" + - " \"description\": \"Optional: mode bits used to set permissions on this file, must be an octal value\\nbetween 0000 and 0777 or a decimal value between 0 and 511.\\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\\nIf not specified, the volume defaultMode will be used.\\nThis might be in conflict with other options that affect the file\\nmode, like fsGroup, and the result can be other mode bits set.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"Mode\"\n" + - " },\n" + - " \"path\": {\n" + - " \"description\": \"Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Path\"\n" + - " },\n" + - " \"resourceFieldRef\": {\n" + - " \"$ref\": \"#/definitions/v1ResourceFieldSelector\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1DownwardAPIVolumeSource\": {\n" + - " \"description\": \"Downward API volumes support ownership management and SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"DownwardAPIVolumeSource represents a volume containing downward API info.\",\n" + - " \"properties\": {\n" + - " \"defaultMode\": {\n" + - " \"description\": \"Optional: mode bits to use on created files by default. Must be a\\nOptional: mode bits used to set permissions on created files by default.\\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\\nDefaults to 0644.\\nDirectories within the path are not affected by this setting.\\nThis might be in conflict with other options that affect the file\\nmode, like fsGroup, and the result can be other mode bits set.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"DefaultMode\"\n" + - " },\n" + - " \"items\": {\n" + - " \"description\": \"Items is a list of downward API volume file\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1DownwardAPIVolumeFile\"\n" + - " },\n" + - " \"x-go-name\": \"Items\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1EmptyDirVolumeSource\": {\n" + - " \"description\": \"Empty directory volumes support ownership management and SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents an empty directory for a pod.\",\n" + - " \"properties\": {\n" + - " \"medium\": {\n" + - " \"$ref\": \"#/definitions/v1StorageMedium\"\n" + - " },\n" + - " \"sizeLimit\": {\n" + - " \"$ref\": \"#/definitions/resourceQuantity\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1EnvFromSource\": {\n" + - " \"description\": \"EnvFromSource represents the source of a set of ConfigMaps\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"configMapRef\": {\n" + - " \"$ref\": \"#/definitions/v1ConfigMapEnvSource\"\n" + - " },\n" + - " \"prefix\": {\n" + - " \"description\": \"An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Prefix\"\n" + - " },\n" + - " \"secretRef\": {\n" + - " \"$ref\": \"#/definitions/v1SecretEnvSource\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1EnvVar\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"EnvVar represents an environment variable present in a Container.\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"Name of the environment variable. Must be a C_IDENTIFIER.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"value\": {\n" + - " \"description\": \"Variable references $(VAR_NAME) are expanded\\nusing the previously defined environment variables in the container and\\nany service environment variables. If a variable cannot be resolved,\\nthe reference in the input string will be unchanged. Double $$ are reduced\\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\\n\\\"$$(VAR_NAME)\\\" will produce the string literal \\\"$(VAR_NAME)\\\".\\nEscaped references will never be expanded, regardless of whether the variable\\nexists or not.\\nDefaults to \\\"\\\".\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Value\"\n" + - " },\n" + - " \"valueFrom\": {\n" + - " \"$ref\": \"#/definitions/v1EnvVarSource\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1EnvVarSource\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"EnvVarSource represents a source for the value of an EnvVar.\",\n" + - " \"properties\": {\n" + - " \"configMapKeyRef\": {\n" + - " \"$ref\": \"#/definitions/v1ConfigMapKeySelector\"\n" + - " },\n" + - " \"fieldRef\": {\n" + - " \"$ref\": \"#/definitions/v1ObjectFieldSelector\"\n" + - " },\n" + - " \"resourceFieldRef\": {\n" + - " \"$ref\": \"#/definitions/v1ResourceFieldSelector\"\n" + - " },\n" + - " \"secretKeyRef\": {\n" + - " \"$ref\": \"#/definitions/v1SecretKeySelector\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1EphemeralContainer\": {\n" + - " \"description\": \"To add an ephemeral container, use the ephemeralcontainers subresource of an existing\\nPod. Ephemeral containers may not be removed or restarted.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"An EphemeralContainer is a temporary container that you may add to an existing Pod for\\nuser-initiated activities such as debugging. Ephemeral containers have no resource or\\nscheduling guarantees, and they will not be restarted when they exit or when a Pod is\\nremoved or restarted. The kubelet may evict a Pod if an ephemeral container causes the\\nPod to exceed its resource allocation.\",\n" + - " \"properties\": {\n" + - " \"args\": {\n" + - " \"description\": \"Arguments to the entrypoint.\\nThe image's CMD is used if this is not provided.\\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will\\nproduce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless\\nof whether the variable exists or not. Cannot be updated.\\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Args\"\n" + - " },\n" + - " \"command\": {\n" + - " \"description\": \"Entrypoint array. Not executed within a shell.\\nThe image's ENTRYPOINT is used if this is not provided.\\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \\\"$$(VAR_NAME)\\\" will\\nproduce the string literal \\\"$(VAR_NAME)\\\". Escaped references will never be expanded, regardless\\nof whether the variable exists or not. Cannot be updated.\\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Command\"\n" + - " },\n" + - " \"env\": {\n" + - " \"description\": \"List of environment variables to set in the container.\\nCannot be updated.\\n+optional\\n+patchMergeKey=name\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1EnvVar\"\n" + - " },\n" + - " \"x-go-name\": \"Env\"\n" + - " },\n" + - " \"envFrom\": {\n" + - " \"description\": \"List of sources to populate environment variables in the container.\\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\\nwill be reported as an event when the container is starting. When a key exists in multiple\\nsources, the value associated with the last source will take precedence.\\nValues defined by an Env with a duplicate key will take precedence.\\nCannot be updated.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1EnvFromSource\"\n" + - " },\n" + - " \"x-go-name\": \"EnvFrom\"\n" + - " },\n" + - " \"image\": {\n" + - " \"description\": \"Container image name.\\nMore info: https://kubernetes.io/docs/concepts/containers/images\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Image\"\n" + - " },\n" + - " \"imagePullPolicy\": {\n" + - " \"$ref\": \"#/definitions/v1PullPolicy\"\n" + - " },\n" + - " \"lifecycle\": {\n" + - " \"$ref\": \"#/definitions/v1Lifecycle\"\n" + - " },\n" + - " \"livenessProbe\": {\n" + - " \"$ref\": \"#/definitions/v1Probe\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name of the ephemeral container specified as a DNS_LABEL.\\nThis name must be unique among all containers, init containers and ephemeral containers.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"ports\": {\n" + - " \"description\": \"Ports are not allowed for ephemeral containers.\\n+optional\\n+patchMergeKey=containerPort\\n+patchStrategy=merge\\n+listType=map\\n+listMapKey=containerPort\\n+listMapKey=protocol\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1ContainerPort\"\n" + - " },\n" + - " \"x-go-name\": \"Ports\"\n" + - " },\n" + - " \"readinessProbe\": {\n" + - " \"$ref\": \"#/definitions/v1Probe\"\n" + - " },\n" + - " \"resources\": {\n" + - " \"$ref\": \"#/definitions/v1ResourceRequirements\"\n" + - " },\n" + - " \"securityContext\": {\n" + - " \"$ref\": \"#/definitions/v1SecurityContext\"\n" + - " },\n" + - " \"startupProbe\": {\n" + - " \"$ref\": \"#/definitions/v1Probe\"\n" + - " },\n" + - " \"stdin\": {\n" + - " \"description\": \"Whether this container should allocate a buffer for stdin in the container runtime. If this\\nis not set, reads from stdin in the container will always result in EOF.\\nDefault is false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Stdin\"\n" + - " },\n" + - " \"stdinOnce\": {\n" + - " \"description\": \"Whether the container runtime should close the stdin channel after it has been opened by\\na single attach. When stdin is true the stdin stream will remain open across multiple attach\\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\\nat which time stdin is closed and remains closed until the container is restarted. If this\\nflag is false, a container processes that reads from stdin will never receive an EOF.\\nDefault is false\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"StdinOnce\"\n" + - " },\n" + - " \"targetContainerName\": {\n" + - " \"description\": \"If set, the name of the container from PodSpec that this ephemeral container targets.\\nThe ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.\\nIf not set then the ephemeral container uses the namespaces configured in the Pod spec.\\n\\nThe container runtime must implement support for this feature. If the runtime does not\\nsupport namespace targeting then the result of setting this field is undefined.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"TargetContainerName\"\n" + - " },\n" + - " \"terminationMessagePath\": {\n" + - " \"description\": \"Optional: Path at which the file to which the container's termination message\\nwill be written is mounted into the container's filesystem.\\nMessage written is intended to be brief final status, such as an assertion failure message.\\nWill be truncated by the node if greater than 4096 bytes. The total message length across\\nall containers will be limited to 12kb.\\nDefaults to /dev/termination-log.\\nCannot be updated.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"TerminationMessagePath\"\n" + - " },\n" + - " \"terminationMessagePolicy\": {\n" + - " \"$ref\": \"#/definitions/v1TerminationMessagePolicy\"\n" + - " },\n" + - " \"tty\": {\n" + - " \"description\": \"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\\nDefault is false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"TTY\"\n" + - " },\n" + - " \"volumeDevices\": {\n" + - " \"description\": \"volumeDevices is the list of block devices to be used by the container.\\n+patchMergeKey=devicePath\\n+patchStrategy=merge\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1VolumeDevice\"\n" + - " },\n" + - " \"x-go-name\": \"VolumeDevices\"\n" + - " },\n" + - " \"volumeMounts\": {\n" + - " \"description\": \"Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.\\nCannot be updated.\\n+optional\\n+patchMergeKey=mountPath\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1VolumeMount\"\n" + - " },\n" + - " \"x-go-name\": \"VolumeMounts\"\n" + - " },\n" + - " \"workingDir\": {\n" + - " \"description\": \"Container's working directory.\\nIf not specified, the container runtime's default will be used, which\\nmight be configured in the container image.\\nCannot be updated.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"WorkingDir\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1EphemeralVolumeSource\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents an ephemeral volume that is handled by a normal storage driver.\",\n" + - " \"properties\": {\n" + - " \"volumeClaimTemplate\": {\n" + - " \"$ref\": \"#/definitions/v1PersistentVolumeClaimTemplate\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ExecAction\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"ExecAction describes a \\\"run in container\\\" action.\",\n" + - " \"properties\": {\n" + - " \"command\": {\n" + - " \"description\": \"Command is the command line to execute inside the container, the working directory for the\\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\\na shell, you need to explicitly call out to that shell.\\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Command\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1FCVolumeSource\": {\n" + - " \"description\": \"Fibre Channel volumes can only be mounted as read/write once.\\nFibre Channel volumes support ownership management and SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a Fibre Channel volume.\",\n" + - " \"properties\": {\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is the filesystem type to mount.\\nMust be a filesystem type supported by the host operating system.\\nEx. \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\\nTODO: how do we prevent errors in the filesystem from compromising the machine\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"lun\": {\n" + - " \"description\": \"lun is Optional: FC target lun number\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"Lun\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\\nthe ReadOnly setting in VolumeMounts.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"targetWWNs\": {\n" + - " \"description\": \"targetWWNs is Optional: FC target worldwide names (WWNs)\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"TargetWWNs\"\n" + - " },\n" + - " \"wwids\": {\n" + - " \"description\": \"wwids Optional: FC volume world wide identifiers (wwids)\\nEither wwids or combination of targetWWNs and lun must be set, but not both simultaneously.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"WWIDs\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1FieldsV1\": {\n" + - " \"description\": \"Each key is either a '.' representing the field itself, and will always map to an empty set,\\nor a string representing a sub-field or item. The string will follow one of these four formats:\\n'f:\\u003cname\\u003e', where \\u003cname\\u003e is the name of a field in a struct, or key in a map\\n'v:\\u003cvalue\\u003e', where \\u003cvalue\\u003e is the exact json formatted value of a list item\\n'i:\\u003cindex\\u003e', where \\u003cindex\\u003e is position of a item in a list\\n'k:\\u003ckeys\\u003e', where \\u003ckeys\\u003e is a map of a list item's key fields to their unique values\\nIf a key maps to an empty Fields value, the field that key represents is part of the set.\\n\\nThe exact format is defined in sigs.k8s.io/structured-merge-diff\\n+protobuf.options.(gogoproto.goproto_stringer)=false\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\",\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n" + - " },\n" + - " \"v1FlexVolumeSource\": {\n" + - " \"description\": \"FlexVolume represents a generic volume resource that is\\nprovisioned/attached using an exec based plugin.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"driver\": {\n" + - " \"description\": \"driver is the name of the driver to use for this volume.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Driver\"\n" + - " },\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is the filesystem type to mount.\\nMust be a filesystem type supported by the host operating system.\\nEx. \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". The default filesystem depends on FlexVolume script.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"options\": {\n" + - " \"description\": \"options is Optional: this field holds extra command options if any.\\n+optional\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Options\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly is Optional: defaults to false (read/write). ReadOnly here will force\\nthe ReadOnly setting in VolumeMounts.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"secretRef\": {\n" + - " \"$ref\": \"#/definitions/v1LocalObjectReference\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1FlockerVolumeSource\": {\n" + - " \"description\": \"One and only one of datasetName and datasetUUID should be set.\\nFlocker volumes do not support ownership management or SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a Flocker volume mounted by the Flocker agent.\",\n" + - " \"properties\": {\n" + - " \"datasetName\": {\n" + - " \"description\": \"datasetName is Name of the dataset stored as metadata -\\u003e name on the dataset for Flocker\\nshould be considered as deprecated\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"DatasetName\"\n" + - " },\n" + - " \"datasetUUID\": {\n" + - " \"description\": \"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"DatasetUUID\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1GCEPersistentDiskVolumeSource\": {\n" + - " \"description\": \"A GCE PD must exist before mounting to a container. The disk must\\nalso be in the same GCE project and zone as the kubelet. A GCE PD\\ncan only be mounted as read/write once or read-only many times. GCE\\nPDs support ownership management and SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a Persistent Disk resource in Google Compute Engine.\",\n" + - " \"properties\": {\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is filesystem type of the volume that you want to mount.\\nTip: Ensure that the filesystem type is supported by the host operating system.\\nExamples: \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\\nTODO: how do we prevent errors in the filesystem from compromising the machine\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"partition\": {\n" + - " \"description\": \"partition is the partition in the volume that you want to mount.\\nIf omitted, the default is to mount by volume name.\\nExamples: For volume /dev/sda1, you specify the partition as \\\"1\\\".\\nSimilarly, the volume partition for /dev/sda is \\\"0\\\" (or you can leave the property empty).\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"Partition\"\n" + - " },\n" + - " \"pdName\": {\n" + - " \"description\": \"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"PDName\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly here will force the ReadOnly setting in VolumeMounts.\\nDefaults to false.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1GRPCAction\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"port\": {\n" + - " \"description\": \"Port number of the gRPC service. Number must be in the range 1 to 65535.\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"Port\"\n" + - " },\n" + - " \"service\": {\n" + - " \"description\": \"Service is the name of the service to place in the gRPC HealthCheckRequest\\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\\n\\nIf this is not specified, the default behavior is defined by gRPC.\\n+optional\\n+default=\\\"\\\"\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Service\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1GitRepoVolumeSource\": {\n" + - " \"description\": \"DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an\\nEmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir\\ninto the Pod's container.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a volume that is populated with the contents of a git repository.\\nGit repo volumes do not support ownership management.\\nGit repo volumes support SELinux relabeling.\",\n" + - " \"properties\": {\n" + - " \"directory\": {\n" + - " \"description\": \"directory is the target directory name.\\nMust not contain or start with '..'. If '.' is supplied, the volume directory will be the\\ngit repository. Otherwise, if specified, the volume will contain the git repository in\\nthe subdirectory with the given name.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Directory\"\n" + - " },\n" + - " \"repository\": {\n" + - " \"description\": \"repository is the URL\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Repository\"\n" + - " },\n" + - " \"revision\": {\n" + - " \"description\": \"revision is the commit hash for the specified revision.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Revision\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1GlusterfsVolumeSource\": {\n" + - " \"description\": \"Glusterfs volumes do not support ownership management or SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a Glusterfs mount that lasts the lifetime of a pod.\",\n" + - " \"properties\": {\n" + - " \"endpoints\": {\n" + - " \"description\": \"endpoints is the endpoint name that details Glusterfs topology.\\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"EndpointsName\"\n" + - " },\n" + - " \"path\": {\n" + - " \"description\": \"path is the Glusterfs volume path.\\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Path\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly here will force the Glusterfs volume to be mounted with read-only permissions.\\nDefaults to false.\\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1HTTPGetAction\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"HTTPGetAction describes an action based on HTTP Get requests.\",\n" + - " \"properties\": {\n" + - " \"host\": {\n" + - " \"description\": \"Host name to connect to, defaults to the pod IP. You probably want to set\\n\\\"Host\\\" in httpHeaders instead.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Host\"\n" + - " },\n" + - " \"httpHeaders\": {\n" + - " \"description\": \"Custom headers to set in the request. HTTP allows repeated headers.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1HTTPHeader\"\n" + - " },\n" + - " \"x-go-name\": \"HTTPHeaders\"\n" + - " },\n" + - " \"path\": {\n" + - " \"description\": \"Path to access on the HTTP server.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Path\"\n" + - " },\n" + - " \"port\": {\n" + - " \"$ref\": \"#/definitions/intstrIntOrString\"\n" + - " },\n" + - " \"scheme\": {\n" + - " \"$ref\": \"#/definitions/v1URIScheme\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1HTTPHeader\": {\n" + - " \"description\": \"HTTPHeader describes a custom header to be used in HTTP probes\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"The header field name.\\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"value\": {\n" + - " \"description\": \"The header field value\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Value\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1HTTPIngressPath\": {\n" + - " \"description\": \"HTTPIngressPath associates a path with a backend. Incoming urls matching the\\npath are forwarded to the backend.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"backend\": {\n" + - " \"description\": \"Backend defines the referenced service endpoint to which the traffic\\nwill be forwarded to.\",\n" + - " \"$ref\": \"#/definitions/v1IngressBackend\"\n" + - " },\n" + - " \"path\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Path is matched against the path of an incoming request. Currently it can\\ncontain characters disallowed from the conventional \\\"path\\\" part of a URL\\nas defined by RFC 3986. Paths must begin with a '/' and must be present\\nwhen using PathType with value \\\"Exact\\\" or \\\"Prefix\\\".\\n+optional\"\n" + - " },\n" + - " \"pathType\": {\n" + - " \"description\": \"PathType determines the interpretation of the Path matching. PathType can\\nbe one of the following values:\\n* Exact: Matches the URL path exactly.\\n* Prefix: Matches based on a URL path prefix split by '/'. Matching is\\n done on a path element by element basis. A path element refers is the\\n list of labels in the path split by the '/' separator. A request is a\\n match for path p if every p is an element-wise prefix of p of the\\n request path. Note that if the last element of the path is a substring\\n of the last element in request path, it is not a match (e.g. /foo/bar\\n matches /foo/bar/baz, but does not match /foo/barbaz).\\n* ImplementationSpecific: Interpretation of the Path matching is up to\\n the IngressClass. Implementations can treat this as a separate PathType\\n or treat it identically to Prefix or Exact path types.\\nImplementations are required to support all path types.\",\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1HTTPIngressRuleValue\": {\n" + - " \"description\": \"HTTPIngressRuleValue is a list of http selectors pointing to backends.\\nIn the example: http://\\u003chost\\u003e/\\u003cpath\\u003e?\\u003csearchpart\\u003e -\\u003e backend where\\nwhere parts of the url correspond to RFC 3986, this resource will be used\\nto match against everything after the last '/' and before the first '?'\\nor '#'.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"paths\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"A collection of paths that map requests to backends.\\n+listType=atomic\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1HTTPIngressPath\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1HostAlias\": {\n" + - " \"description\": \"HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the\\npod's hosts file.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"hostnames\": {\n" + - " \"description\": \"Hostnames for the above IP address.\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Hostnames\"\n" + - " },\n" + - " \"ip\": {\n" + - " \"description\": \"IP address of the host file entry.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"IP\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1HostPathType\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1HostPathVolumeSource\": {\n" + - " \"description\": \"Host path volumes do not support ownership management or SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a host path mapped into a pod.\",\n" + - " \"properties\": {\n" + - " \"path\": {\n" + - " \"description\": \"path of the directory on the host.\\nIf the path is a symlink, it will follow the link to the real path.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Path\"\n" + - " },\n" + - " \"type\": {\n" + - " \"$ref\": \"#/definitions/v1HostPathType\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ISCSIVolumeSource\": {\n" + - " \"description\": \"ISCSI volumes can only be mounted as read/write once.\\nISCSI volumes support ownership management and SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents an ISCSI disk.\",\n" + - " \"properties\": {\n" + - " \"chapAuthDiscovery\": {\n" + - " \"description\": \"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"DiscoveryCHAPAuth\"\n" + - " },\n" + - " \"chapAuthSession\": {\n" + - " \"description\": \"chapAuthSession defines whether support iSCSI Session CHAP authentication\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"SessionCHAPAuth\"\n" + - " },\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is the filesystem type of the volume that you want to mount.\\nTip: Ensure that the filesystem type is supported by the host operating system.\\nExamples: \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi\\nTODO: how do we prevent errors in the filesystem from compromising the machine\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"initiatorName\": {\n" + - " \"description\": \"initiatorName is the custom iSCSI Initiator Name.\\nIf initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface\\n\\u003ctarget portal\\u003e:\\u003cvolume name\\u003e will be created for the connection.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"InitiatorName\"\n" + - " },\n" + - " \"iqn\": {\n" + - " \"description\": \"iqn is the target iSCSI Qualified Name.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"IQN\"\n" + - " },\n" + - " \"iscsiInterface\": {\n" + - " \"description\": \"iscsiInterface is the interface Name that uses an iSCSI transport.\\nDefaults to 'default' (tcp).\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"ISCSIInterface\"\n" + - " },\n" + - " \"lun\": {\n" + - " \"description\": \"lun represents iSCSI Target Lun number.\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"Lun\"\n" + - " },\n" + - " \"portals\": {\n" + - " \"description\": \"portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port\\nis other than default (typically TCP ports 860 and 3260).\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Portals\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly here will force the ReadOnly setting in VolumeMounts.\\nDefaults to false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"secretRef\": {\n" + - " \"$ref\": \"#/definitions/v1LocalObjectReference\"\n" + - " },\n" + - " \"targetPortal\": {\n" + - " \"description\": \"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port\\nis other than default (typically TCP ports 860 and 3260).\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"TargetPortal\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Ingress\": {\n" + - " \"description\": \"Ingress is a collection of rules that allow inbound connections to reach the\\nendpoints defined by a backend. An Ingress can be configured to give services\\nexternally-reachable urls, load balance traffic, terminate SSL, offer name\\nbased virtual hosting etc.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"metadata\": {\n" + - " \"title\": \"Standard object's metadata.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1ObjectMeta\"\n" + - " },\n" + - " \"spec\": {\n" + - " \"title\": \"Spec is the desired state of the Ingress.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1IngressSpec\"\n" + - " },\n" + - " \"status\": {\n" + - " \"title\": \"Status is the current state of the Ingress.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1IngressStatus\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1IngressBackend\": {\n" + - " \"description\": \"IngressBackend describes all endpoints for a given service and port.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"resource\": {\n" + - " \"title\": \"Resource is an ObjectRef to another Kubernetes resource in the namespace\\nof the Ingress object. If resource is specified, a service.Name and\\nservice.Port must not be specified.\\nThis is a mutually exclusive setting with \\\"Service\\\".\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1TypedLocalObjectReference\"\n" + - " },\n" + - " \"service\": {\n" + - " \"title\": \"Service references a Service as a Backend.\\nThis is a mutually exclusive setting with \\\"Resource\\\".\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1IngressServiceBackend\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1IngressLoadBalancerIngress\": {\n" + - " \"description\": \"IngressLoadBalancerIngress represents the status of a load-balancer ingress point.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"hostname\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Hostname is set for load-balancer ingress points that are DNS based.\\n+optional\"\n" + - " },\n" + - " \"ip\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"IP is set for load-balancer ingress points that are IP based.\\n+optional\"\n" + - " },\n" + - " \"ports\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"Ports provides information about the ports exposed by this LoadBalancer.\\n+listType=atomic\\n+optional\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1IngressPortStatus\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1IngressLoadBalancerStatus\": {\n" + - " \"description\": \"IngressLoadBalancerStatus represents the status of a load-balancer.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"ingress\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"Ingress is a list containing ingress points for the load-balancer.\\n+optional\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1IngressLoadBalancerIngress\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1IngressPortStatus\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"IngressPortStatus represents the error condition of a service port\",\n" + - " \"properties\": {\n" + - " \"error\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Error is to record the problem with the service port\\nThe format of the error shall comply with the following rules:\\n- built-in error values shall be specified in this file and those shall use\\n CamelCase names\\n- cloud provider specific error values must have names that comply with the\\n format foo.example.com/CamelCase.\\n---\\nThe regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)\\n+optional\\n+kubebuilder:validation:Required\\n+kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`\\n+kubebuilder:validation:MaxLength=316\"\n" + - " },\n" + - " \"port\": {\n" + - " \"description\": \"Port is the port number of the ingress port.\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"protocol\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Protocol is the protocol of the ingress port.\\nThe supported values are: \\\"TCP\\\", \\\"UDP\\\", \\\"SCTP\\\"\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1IngressRule\": {\n" + - " \"description\": \"IngressRule represents the rules mapping the paths under a specified host to\\nthe related backend services. Incoming requests are first evaluated for a host\\nmatch, then routed to the backend associated with the matching IngressRuleValue.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"host\": {\n" + - " \"description\": \"Host is the fully qualified domain name of a network host, as defined by RFC 3986.\\nNote the following deviations from the \\\"host\\\" part of the\\nURI as defined in RFC 3986:\\n1. IPs are not allowed. Currently an IngressRuleValue can only apply to\\n the IP in the Spec of the parent Ingress.\\n2. The `:` delimiter is not respected because ports are not allowed.\\n\\t Currently the port of an Ingress is implicitly :80 for http and\\n\\t :443 for https.\\nBoth these may change in the future.\\nIncoming requests are matched against the host before the\\nIngressRuleValue. If the host is unspecified, the Ingress routes all\\ntraffic based on the specified IngressRuleValue.\\n\\nHost can be \\\"precise\\\" which is a domain name without the terminating dot of\\na network host (e.g. \\\"foo.bar.com\\\") or \\\"wildcard\\\", which is a domain name\\nprefixed with a single wildcard label (e.g. \\\"*.foo.com\\\").\\nThe wildcard character '*' must appear by itself as the first DNS label and\\nmatches only a single label. You cannot have a wildcard label by itself (e.g. Host == \\\"*\\\").\\nRequests will be matched against the Host field in the following way:\\n1. If Host is precise, the request matches this rule if the http host header is equal to Host.\\n2. If Host is a wildcard, then the request matches this rule if the http host header\\nis to equal to the suffix (removing the first label) of the wildcard rule.\\n+optional\",\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"ingressRuleValue\": {\n" + - " \"title\": \"IngressRuleValue represents a rule to route requests for this IngressRule.\\nIf unspecified, the rule defaults to a http catch-all. Whether that sends\\njust traffic matching the host to the default backend or all traffic to the\\ndefault backend, is left to the controller fulfilling the Ingress. Http is\\ncurrently the only supported IngressRuleValue.\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1IngressRuleValue\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1IngressRuleValue\": {\n" + - " \"description\": \"IngressRuleValue represents a rule to apply against incoming requests. If the\\nrule is satisfied, the request is routed to the specified backend. Currently\\nmixing different types of rules in a single Ingress is disallowed, so exactly\\none of the following must be set.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"http\": {\n" + - " \"title\": \"+optional\",\n" + - " \"$ref\": \"#/definitions/v1HTTPIngressRuleValue\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1IngressServiceBackend\": {\n" + - " \"description\": \"IngressServiceBackend references a Kubernetes Service as a Backend.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"Name is the referenced service. The service must exist in\\nthe same namespace as the Ingress object.\",\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"port\": {\n" + - " \"description\": \"Port of the referenced service. A port name or port number\\nis required for a IngressServiceBackend.\",\n" + - " \"$ref\": \"#/definitions/v1ServiceBackendPort\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1IngressSpec\": {\n" + - " \"description\": \"IngressSpec describes the Ingress the user wishes to exist.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"defaultBackend\": {\n" + - " \"title\": \"DefaultBackend is the backend that should handle requests that don't\\nmatch any rule. If Rules are not specified, DefaultBackend must be specified.\\nIf DefaultBackend is not set, the handling of requests that do not match any\\nof the rules will be up to the Ingress controller.\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1IngressBackend\"\n" + - " },\n" + - " \"ingressClassName\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"IngressClassName is the name of an IngressClass cluster resource. Ingress\\ncontroller implementations use this field to know whether they should be\\nserving this Ingress resource, by a transitive connection\\n(controller -\\u003e IngressClass -\\u003e Ingress resource). Although the\\n`kubernetes.io/ingress.class` annotation (simple constant name) was never\\nformally defined, it was widely supported by Ingress controllers to create\\na direct binding between Ingress controller and Ingress resources. Newly\\ncreated Ingress resources should prefer using the field. However, even\\nthough the annotation is officially deprecated, for backwards compatibility\\nreasons, ingress controllers should still honor that annotation if present.\\n+optional\"\n" + - " },\n" + - " \"rules\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"A list of host rules used to configure the Ingress. If unspecified, or\\nno rule matches, all traffic is sent to the default backend.\\n+listType=atomic\\n+optional\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1IngressRule\"\n" + - " }\n" + - " },\n" + - " \"tls\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"TLS configuration. Currently the Ingress only supports a single TLS\\nport, 443. If multiple members of this list specify different hosts, they\\nwill be multiplexed on the same port according to the hostname specified\\nthrough the SNI TLS extension, if the ingress controller fulfilling the\\ningress supports SNI.\\n+listType=atomic\\n+optional\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1IngressTLS\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1IngressStatus\": {\n" + - " \"description\": \"IngressStatus describe the current state of the Ingress.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"loadBalancer\": {\n" + - " \"title\": \"LoadBalancer contains the current status of the load-balancer.\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1IngressLoadBalancerStatus\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1IngressTLS\": {\n" + - " \"description\": \"IngressTLS describes the transport layer security associated with an Ingress.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"hosts\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"Hosts are a list of hosts included in the TLS certificate. The values in\\nthis list must match the name/s used in the tlsSecret. Defaults to the\\nwildcard host setting for the loadbalancer controller fulfilling this\\nIngress, if left unspecified.\\n+listType=atomic\\n+optional\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"secretName\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"SecretName is the name of the secret used to terminate TLS traffic on\\nport 443. Field is left optional to allow TLS routing based on SNI\\nhostname alone. If the SNI host in a listener conflicts with the \\\"Host\\\"\\nheader field used by an IngressRule, the SNI host is used for termination\\nand value of the Host header is used for routing.\\n+optional\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1KeyToPath\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Maps a string key to a path within a volume.\",\n" + - " \"properties\": {\n" + - " \"key\": {\n" + - " \"description\": \"key is the key to project.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Key\"\n" + - " },\n" + - " \"mode\": {\n" + - " \"description\": \"mode is Optional: mode bits used to set permissions on this file.\\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\\nIf not specified, the volume defaultMode will be used.\\nThis might be in conflict with other options that affect the file\\nmode, like fsGroup, and the result can be other mode bits set.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"Mode\"\n" + - " },\n" + - " \"path\": {\n" + - " \"description\": \"path is the relative path of the file to map the key to.\\nMay not be an absolute path.\\nMay not contain the path element '..'.\\nMay not start with the string '..'.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Path\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1LabelSelector\": {\n" + - " \"description\": \"A label selector is a label query over a set of resources. The result of matchLabels and\\nmatchExpressions are ANDed. An empty label selector matches all objects. A null\\nlabel selector matches no objects.\\n+structType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"matchExpressions\": {\n" + - " \"description\": \"matchExpressions is a list of label selector requirements. The requirements are ANDed.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1LabelSelectorRequirement\"\n" + - " },\n" + - " \"x-go-name\": \"MatchExpressions\"\n" + - " },\n" + - " \"matchLabels\": {\n" + - " \"description\": \"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\\nmap is equivalent to an element of matchExpressions, whose key field is \\\"key\\\", the\\noperator is \\\"In\\\", and the values array contains only \\\"value\\\". The requirements are ANDed.\\n+optional\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"MatchLabels\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n" + - " },\n" + - " \"v1LabelSelectorOperator\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"A label selector operator is the set of operators that can be used in a selector requirement.\",\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n" + - " },\n" + - " \"v1LabelSelectorRequirement\": {\n" + - " \"description\": \"A label selector requirement is a selector that contains values, a key, and an operator that\\nrelates the key and values.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"key\": {\n" + - " \"description\": \"key is the label key that the selector applies to.\\n+patchMergeKey=key\\n+patchStrategy=merge\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Key\"\n" + - " },\n" + - " \"operator\": {\n" + - " \"$ref\": \"#/definitions/v1LabelSelectorOperator\"\n" + - " },\n" + - " \"values\": {\n" + - " \"description\": \"values is an array of string values. If the operator is In or NotIn,\\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\\nthe values array must be empty. This array is replaced during a strategic\\nmerge patch.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Values\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n" + - " },\n" + - " \"v1Lifecycle\": {\n" + - " \"description\": \"Lifecycle describes actions that the management system should take in response to container lifecycle\\nevents. For the PostStart and PreStop lifecycle handlers, management of the container blocks\\nuntil the action is complete, unless the container process fails, in which case the handler is aborted.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"postStart\": {\n" + - " \"$ref\": \"#/definitions/v1LifecycleHandler\"\n" + - " },\n" + - " \"preStop\": {\n" + - " \"$ref\": \"#/definitions/v1LifecycleHandler\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1LifecycleHandler\": {\n" + - " \"description\": \"LifecycleHandler defines a specific action that should be taken in a lifecycle\\nhook. One and only one of the fields, except TCPSocket must be specified.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"exec\": {\n" + - " \"$ref\": \"#/definitions/v1ExecAction\"\n" + - " },\n" + - " \"httpGet\": {\n" + - " \"$ref\": \"#/definitions/v1HTTPGetAction\"\n" + - " },\n" + - " \"tcpSocket\": {\n" + - " \"$ref\": \"#/definitions/v1TCPSocketAction\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1LoadBalancerIngress\": {\n" + - " \"description\": \"LoadBalancerIngress represents the status of a load-balancer ingress point:\\ntraffic intended for the service should be sent to an ingress point.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"hostname\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Hostname is set for load-balancer ingress points that are DNS based\\n(typically AWS load-balancers)\\n+optional\"\n" + - " },\n" + - " \"ip\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"IP is set for load-balancer ingress points that are IP based\\n(typically GCE or OpenStack load-balancers)\\n+optional\"\n" + - " },\n" + - " \"ports\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"Ports is a list of records of service ports\\nIf used, every port defined in the service should have an entry in it\\n+listType=atomic\\n+optional\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PortStatus\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1LoadBalancerStatus\": {\n" + - " \"description\": \"LoadBalancerStatus represents the status of a load-balancer.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"ingress\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"Ingress is a list containing ingress points for the load-balancer.\\nTraffic intended for the service should be sent to these ingress points.\\n+optional\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1LoadBalancerIngress\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1LocalObjectReference\": {\n" + - " \"description\": \"LocalObjectReference contains enough information to let you locate the\\nreferenced object inside the same namespace.\\n+structType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"Name of the referent.\\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\\nTODO: Add other useful fields. apiVersion, kind, uid?\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ManagedFieldsEntry\": {\n" + - " \"description\": \"ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource\\nthat the fieldset applies to.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"apiVersion\": {\n" + - " \"description\": \"APIVersion defines the version of this resource that this field set\\napplies to. The format is \\\"group/version\\\" just like the top-level\\nAPIVersion field. It is necessary to track the version of a field\\nset because it cannot be automatically converted.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"APIVersion\"\n" + - " },\n" + - " \"fieldsType\": {\n" + - " \"description\": \"FieldsType is the discriminator for the different fields format and version.\\nThere is currently only one possible value: \\\"FieldsV1\\\"\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FieldsType\"\n" + - " },\n" + - " \"fieldsV1\": {\n" + - " \"$ref\": \"#/definitions/v1FieldsV1\"\n" + - " },\n" + - " \"manager\": {\n" + - " \"description\": \"Manager is an identifier of the workflow managing these fields.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Manager\"\n" + - " },\n" + - " \"operation\": {\n" + - " \"$ref\": \"#/definitions/v1ManagedFieldsOperationType\"\n" + - " },\n" + - " \"subresource\": {\n" + - " \"description\": \"Subresource is the name of the subresource used to update that object, or\\nempty string if the object was updated through the main resource. The\\nvalue of this field is used to distinguish between managers, even if they\\nshare the same name. For example, a status update will be distinct from a\\nregular update using the same manager name.\\nNote that the APIVersion field is not related to the Subresource field and\\nit always corresponds to the version of the main resource.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Subresource\"\n" + - " },\n" + - " \"time\": {\n" + - " \"$ref\": \"#/definitions/v1Time\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n" + - " },\n" + - " \"v1ManagedFieldsOperationType\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"ManagedFieldsOperationType is the type of operation which lead to a ManagedFieldsEntry being created.\",\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n" + - " },\n" + - " \"v1MountPropagationMode\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"title\": \"MountPropagationMode describes mount propagation.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1NFSVolumeSource\": {\n" + - " \"description\": \"NFS volumes do not support ownership management or SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents an NFS mount that lasts the lifetime of a pod.\",\n" + - " \"properties\": {\n" + - " \"path\": {\n" + - " \"description\": \"path that is exported by the NFS server.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Path\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly here will force the NFS export to be mounted with read-only permissions.\\nDefaults to false.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"server\": {\n" + - " \"description\": \"server is the hostname or IP address of the NFS server.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Server\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1NodeAffinity\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Node affinity is a group of node affinity scheduling rules.\",\n" + - " \"properties\": {\n" + - " \"preferredDuringSchedulingIgnoredDuringExecution\": {\n" + - " \"description\": \"The scheduler will prefer to schedule pods to nodes that satisfy\\nthe affinity expressions specified by this field, but it may choose\\na node that violates one or more of the expressions. The node that is\\nmost preferred is the one with the greatest sum of weights, i.e.\\nfor each node that meets all of the scheduling requirements (resource\\nrequest, requiredDuringScheduling affinity expressions, etc.),\\ncompute a sum by iterating through the elements of this field and adding\\n\\\"weight\\\" to the sum if the node matches the corresponding matchExpressions; the\\nnode(s) with the highest sum are the most preferred.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PreferredSchedulingTerm\"\n" + - " },\n" + - " \"x-go-name\": \"PreferredDuringSchedulingIgnoredDuringExecution\"\n" + - " },\n" + - " \"requiredDuringSchedulingIgnoredDuringExecution\": {\n" + - " \"$ref\": \"#/definitions/v1NodeSelector\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1NodeInclusionPolicy\": {\n" + - " \"description\": \"NodeInclusionPolicy defines the type of node inclusion policy\\n+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1NodeSelector\": {\n" + - " \"description\": \"A node selector represents the union of the results of one or more label queries\\nover a set of nodes; that is, it represents the OR of the selectors represented\\nby the node selector terms.\\n+structType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"nodeSelectorTerms\": {\n" + - " \"description\": \"Required. A list of node selector terms. The terms are ORed.\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1NodeSelectorTerm\"\n" + - " },\n" + - " \"x-go-name\": \"NodeSelectorTerms\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1NodeSelectorOperator\": {\n" + - " \"description\": \"A node selector operator is the set of operators that can be used in\\na node selector requirement.\\n+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1NodeSelectorRequirement\": {\n" + - " \"description\": \"A node selector requirement is a selector that contains values, a key, and an operator\\nthat relates the key and values.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"key\": {\n" + - " \"description\": \"The label key that the selector applies to.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Key\"\n" + - " },\n" + - " \"operator\": {\n" + - " \"$ref\": \"#/definitions/v1NodeSelectorOperator\"\n" + - " },\n" + - " \"values\": {\n" + - " \"description\": \"An array of string values. If the operator is In or NotIn,\\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\\nthe values array must be empty. If the operator is Gt or Lt, the values\\narray must have a single element, which will be interpreted as an integer.\\nThis array is replaced during a strategic merge patch.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Values\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1NodeSelectorTerm\": {\n" + - " \"description\": \"A null or empty node selector term matches no objects. The requirements of\\nthem are ANDed.\\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.\\n+structType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"matchExpressions\": {\n" + - " \"description\": \"A list of node selector requirements by node's labels.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1NodeSelectorRequirement\"\n" + - " },\n" + - " \"x-go-name\": \"MatchExpressions\"\n" + - " },\n" + - " \"matchFields\": {\n" + - " \"description\": \"A list of node selector requirements by node's fields.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1NodeSelectorRequirement\"\n" + - " },\n" + - " \"x-go-name\": \"MatchFields\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1OSName\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"OSName is the set of OS'es that can be used in OS.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ObjectFieldSelector\": {\n" + - " \"description\": \"+structType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"ObjectFieldSelector selects an APIVersioned field of an object.\",\n" + - " \"properties\": {\n" + - " \"apiVersion\": {\n" + - " \"description\": \"Version of the schema the FieldPath is written in terms of, defaults to \\\"v1\\\".\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"APIVersion\"\n" + - " },\n" + - " \"fieldPath\": {\n" + - " \"description\": \"Path of the field to select in the specified API version.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FieldPath\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ObjectMeta\": {\n" + - " \"description\": \"ObjectMeta is metadata that all persisted resources must have, which includes all objects\\nusers must create.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"annotations\": {\n" + - " \"description\": \"Annotations is an unstructured key value map stored with a resource that may be\\nset by external tools to store and retrieve arbitrary metadata. They are not\\nqueryable and should be preserved when modifying objects.\\nMore info: http://kubernetes.io/docs/user-guide/annotations\\n+optional\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Annotations\"\n" + - " },\n" + - " \"creationTimestamp\": {\n" + - " \"$ref\": \"#/definitions/v1Time\"\n" + - " },\n" + - " \"deletionGracePeriodSeconds\": {\n" + - " \"description\": \"Number of seconds allowed for this object to gracefully terminate before\\nit will be removed from the system. Only set when deletionTimestamp is also set.\\nMay only be shortened.\\nRead-only.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"DeletionGracePeriodSeconds\"\n" + - " },\n" + - " \"deletionTimestamp\": {\n" + - " \"$ref\": \"#/definitions/v1Time\"\n" + - " },\n" + - " \"finalizers\": {\n" + - " \"description\": \"Must be empty before the object is deleted from the registry. Each entry\\nis an identifier for the responsible component that will remove the entry\\nfrom the list. If the deletionTimestamp of the object is non-nil, entries\\nin this list can only be removed.\\nFinalizers may be processed and removed in any order. Order is NOT enforced\\nbecause it introduces significant risk of stuck finalizers.\\nfinalizers is a shared field, any actor with permission can reorder it.\\nIf the finalizer list is processed in order, then this can lead to a situation\\nin which the component responsible for the first finalizer in the list is\\nwaiting for a signal (field value, external system, or other) produced by a\\ncomponent responsible for a finalizer later in the list, resulting in a deadlock.\\nWithout enforced ordering finalizers are free to order amongst themselves and\\nare not vulnerable to ordering changes in the list.\\n+optional\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Finalizers\"\n" + - " },\n" + - " \"generateName\": {\n" + - " \"description\": \"GenerateName is an optional prefix, used by the server, to generate a unique\\nname ONLY IF the Name field has not been provided.\\nIf this field is used, the name returned to the client will be different\\nthan the name passed. This value will also be combined with a unique suffix.\\nThe provided value has the same validation rules as the Name field,\\nand may be truncated by the length of the suffix required to make the value\\nunique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"GenerateName\"\n" + - " },\n" + - " \"generation\": {\n" + - " \"description\": \"A sequence number representing a specific generation of the desired state.\\nPopulated by the system. Read-only.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"Generation\"\n" + - " },\n" + - " \"labels\": {\n" + - " \"description\": \"Map of string keys and values that can be used to organize and categorize\\n(scope and select) objects. May match selectors of replication controllers\\nand services.\\nMore info: http://kubernetes.io/docs/user-guide/labels\\n+optional\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Labels\"\n" + - " },\n" + - " \"managedFields\": {\n" + - " \"description\": \"ManagedFields maps workflow-id and version to the set of fields\\nthat are managed by that workflow. This is mostly for internal\\nhousekeeping, and users typically shouldn't need to set or\\nunderstand this field. A workflow can be the user's name, a\\ncontroller's name, or the name of a specific apply path like\\n\\\"ci-cd\\\". The set of fields is always in the version that the\\nworkflow used when modifying the object.\\n\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1ManagedFieldsEntry\"\n" + - " },\n" + - " \"x-go-name\": \"ManagedFields\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name must be unique within a namespace. Is required when creating resources, although\\nsome resources may allow a client to request the generation of an appropriate name\\nautomatically. Name is primarily intended for creation idempotence and configuration\\ndefinition.\\nCannot be updated.\\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"namespace\": {\n" + - " \"description\": \"Namespace defines the space within which each name must be unique. An empty namespace is\\nequivalent to the \\\"default\\\" namespace, but \\\"default\\\" is the canonical representation.\\nNot all objects are required to be scoped to a namespace - the value of this field for\\nthose objects will be empty.\\n\\nMust be a DNS_LABEL.\\nCannot be updated.\\nMore info: http://kubernetes.io/docs/user-guide/namespaces\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Namespace\"\n" + - " },\n" + - " \"ownerReferences\": {\n" + - " \"description\": \"List of objects depended by this object. If ALL objects in the list have\\nbeen deleted, this object will be garbage collected. If this object is managed by a controller,\\nthen an entry in this list will point to this controller, with the controller field set to true.\\nThere cannot be more than one managing controller.\\n+optional\\n+patchMergeKey=uid\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1OwnerReference\"\n" + - " },\n" + - " \"x-go-name\": \"OwnerReferences\"\n" + - " },\n" + - " \"resourceVersion\": {\n" + - " \"description\": \"An opaque value that represents the internal version of this object that can\\nbe used by clients to determine when objects have changed. May be used for optimistic\\nconcurrency, change detection, and the watch operation on a resource or set of resources.\\nClients must treat these values as opaque and passed unmodified back to the server.\\nThey may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system.\\nRead-only.\\nValue must be treated as opaque by clients and .\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"ResourceVersion\"\n" + - " },\n" + - " \"selfLink\": {\n" + - " \"description\": \"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"SelfLink\"\n" + - " },\n" + - " \"uid\": {\n" + - " \"$ref\": \"#/definitions/typesUID\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n" + - " },\n" + - " \"v1OwnerReference\": {\n" + - " \"description\": \"OwnerReference contains enough information to let you identify an owning\\nobject. An owning object must be in the same namespace as the dependent, or\\nbe cluster-scoped, so there is no namespace field.\\n+structType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"apiVersion\": {\n" + - " \"description\": \"API version of the referent.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"APIVersion\"\n" + - " },\n" + - " \"blockOwnerDeletion\": {\n" + - " \"description\": \"If true, AND if the owner has the \\\"foregroundDeletion\\\" finalizer, then\\nthe owner cannot be deleted from the key-value store until this\\nreference is removed.\\nSee https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion\\nfor how the garbage collector interacts with this field and enforces the foreground deletion.\\nDefaults to false.\\nTo set this field, a user needs \\\"delete\\\" permission of the owner,\\notherwise 422 (Unprocessable Entity) will be returned.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"BlockOwnerDeletion\"\n" + - " },\n" + - " \"controller\": {\n" + - " \"description\": \"If true, this reference points to the managing controller.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Controller\"\n" + - " },\n" + - " \"kind\": {\n" + - " \"description\": \"Kind of the referent.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Kind\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name of the referent.\\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"uid\": {\n" + - " \"$ref\": \"#/definitions/typesUID\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n" + - " },\n" + - " \"v1PersistentVolumeAccessMode\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PersistentVolumeClaimSpec\": {\n" + - " \"description\": \"PersistentVolumeClaimSpec describes the common attributes of storage devices\\nand allows a Source for provider-specific attributes\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"accessModes\": {\n" + - " \"description\": \"accessModes contains the desired access modes the volume should have.\\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PersistentVolumeAccessMode\"\n" + - " },\n" + - " \"x-go-name\": \"AccessModes\"\n" + - " },\n" + - " \"dataSource\": {\n" + - " \"$ref\": \"#/definitions/v1TypedLocalObjectReference\"\n" + - " },\n" + - " \"dataSourceRef\": {\n" + - " \"$ref\": \"#/definitions/v1TypedObjectReference\"\n" + - " },\n" + - " \"resources\": {\n" + - " \"$ref\": \"#/definitions/v1ResourceRequirements\"\n" + - " },\n" + - " \"selector\": {\n" + - " \"$ref\": \"#/definitions/v1LabelSelector\"\n" + - " },\n" + - " \"storageClassName\": {\n" + - " \"description\": \"storageClassName is the name of the StorageClass required by the claim.\\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"StorageClassName\"\n" + - " },\n" + - " \"volumeMode\": {\n" + - " \"$ref\": \"#/definitions/v1PersistentVolumeMode\"\n" + - " },\n" + - " \"volumeName\": {\n" + - " \"description\": \"volumeName is the binding reference to the PersistentVolume backing this claim.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"VolumeName\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PersistentVolumeClaimTemplate\": {\n" + - " \"description\": \"PersistentVolumeClaimTemplate is used to produce\\nPersistentVolumeClaim objects as part of an EphemeralVolumeSource.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"annotations\": {\n" + - " \"description\": \"Annotations is an unstructured key value map stored with a resource that may be\\nset by external tools to store and retrieve arbitrary metadata. They are not\\nqueryable and should be preserved when modifying objects.\\nMore info: http://kubernetes.io/docs/user-guide/annotations\\n+optional\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Annotations\"\n" + - " },\n" + - " \"creationTimestamp\": {\n" + - " \"$ref\": \"#/definitions/v1Time\"\n" + - " },\n" + - " \"deletionGracePeriodSeconds\": {\n" + - " \"description\": \"Number of seconds allowed for this object to gracefully terminate before\\nit will be removed from the system. Only set when deletionTimestamp is also set.\\nMay only be shortened.\\nRead-only.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"DeletionGracePeriodSeconds\"\n" + - " },\n" + - " \"deletionTimestamp\": {\n" + - " \"$ref\": \"#/definitions/v1Time\"\n" + - " },\n" + - " \"finalizers\": {\n" + - " \"description\": \"Must be empty before the object is deleted from the registry. Each entry\\nis an identifier for the responsible component that will remove the entry\\nfrom the list. If the deletionTimestamp of the object is non-nil, entries\\nin this list can only be removed.\\nFinalizers may be processed and removed in any order. Order is NOT enforced\\nbecause it introduces significant risk of stuck finalizers.\\nfinalizers is a shared field, any actor with permission can reorder it.\\nIf the finalizer list is processed in order, then this can lead to a situation\\nin which the component responsible for the first finalizer in the list is\\nwaiting for a signal (field value, external system, or other) produced by a\\ncomponent responsible for a finalizer later in the list, resulting in a deadlock.\\nWithout enforced ordering finalizers are free to order amongst themselves and\\nare not vulnerable to ordering changes in the list.\\n+optional\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Finalizers\"\n" + - " },\n" + - " \"generateName\": {\n" + - " \"description\": \"GenerateName is an optional prefix, used by the server, to generate a unique\\nname ONLY IF the Name field has not been provided.\\nIf this field is used, the name returned to the client will be different\\nthan the name passed. This value will also be combined with a unique suffix.\\nThe provided value has the same validation rules as the Name field,\\nand may be truncated by the length of the suffix required to make the value\\nunique on the server.\\n\\nIf this field is specified and the generated name exists, the server will return a 409.\\n\\nApplied only if Name is not specified.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"GenerateName\"\n" + - " },\n" + - " \"generation\": {\n" + - " \"description\": \"A sequence number representing a specific generation of the desired state.\\nPopulated by the system. Read-only.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"Generation\"\n" + - " },\n" + - " \"labels\": {\n" + - " \"description\": \"Map of string keys and values that can be used to organize and categorize\\n(scope and select) objects. May match selectors of replication controllers\\nand services.\\nMore info: http://kubernetes.io/docs/user-guide/labels\\n+optional\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Labels\"\n" + - " },\n" + - " \"managedFields\": {\n" + - " \"description\": \"ManagedFields maps workflow-id and version to the set of fields\\nthat are managed by that workflow. This is mostly for internal\\nhousekeeping, and users typically shouldn't need to set or\\nunderstand this field. A workflow can be the user's name, a\\ncontroller's name, or the name of a specific apply path like\\n\\\"ci-cd\\\". The set of fields is always in the version that the\\nworkflow used when modifying the object.\\n\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1ManagedFieldsEntry\"\n" + - " },\n" + - " \"x-go-name\": \"ManagedFields\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name must be unique within a namespace. Is required when creating resources, although\\nsome resources may allow a client to request the generation of an appropriate name\\nautomatically. Name is primarily intended for creation idempotence and configuration\\ndefinition.\\nCannot be updated.\\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"namespace\": {\n" + - " \"description\": \"Namespace defines the space within which each name must be unique. An empty namespace is\\nequivalent to the \\\"default\\\" namespace, but \\\"default\\\" is the canonical representation.\\nNot all objects are required to be scoped to a namespace - the value of this field for\\nthose objects will be empty.\\n\\nMust be a DNS_LABEL.\\nCannot be updated.\\nMore info: http://kubernetes.io/docs/user-guide/namespaces\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Namespace\"\n" + - " },\n" + - " \"ownerReferences\": {\n" + - " \"description\": \"List of objects depended by this object. If ALL objects in the list have\\nbeen deleted, this object will be garbage collected. If this object is managed by a controller,\\nthen an entry in this list will point to this controller, with the controller field set to true.\\nThere cannot be more than one managing controller.\\n+optional\\n+patchMergeKey=uid\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1OwnerReference\"\n" + - " },\n" + - " \"x-go-name\": \"OwnerReferences\"\n" + - " },\n" + - " \"resourceVersion\": {\n" + - " \"description\": \"An opaque value that represents the internal version of this object that can\\nbe used by clients to determine when objects have changed. May be used for optimistic\\nconcurrency, change detection, and the watch operation on a resource or set of resources.\\nClients must treat these values as opaque and passed unmodified back to the server.\\nThey may only be valid for a particular resource or set of resources.\\n\\nPopulated by the system.\\nRead-only.\\nValue must be treated as opaque by clients and .\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"ResourceVersion\"\n" + - " },\n" + - " \"selfLink\": {\n" + - " \"description\": \"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"SelfLink\"\n" + - " },\n" + - " \"spec\": {\n" + - " \"$ref\": \"#/definitions/v1PersistentVolumeClaimSpec\"\n" + - " },\n" + - " \"uid\": {\n" + - " \"$ref\": \"#/definitions/typesUID\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PersistentVolumeClaimVolumeSource\": {\n" + - " \"description\": \"This volume finds the bound PV and mounts that volume for the pod. A\\nPersistentVolumeClaimVolumeSource is, essentially, a wrapper around another\\ntype of volume that is owned by someone else (the system).\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace.\",\n" + - " \"properties\": {\n" + - " \"claimName\": {\n" + - " \"description\": \"claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.\\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"ClaimName\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly Will force the ReadOnly setting in VolumeMounts.\\nDefault false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PersistentVolumeMode\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"title\": \"PersistentVolumeMode describes how a volume is intended to be consumed, either Block or Filesystem.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PhotonPersistentDiskVolumeSource\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a Photon Controller persistent disk resource.\",\n" + - " \"properties\": {\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is the filesystem type to mount.\\nMust be a filesystem type supported by the host operating system.\\nEx. \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"pdID\": {\n" + - " \"description\": \"pdID is the ID that identifies Photon Controller persistent disk\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"PdID\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodAffinity\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Pod affinity is a group of inter pod affinity scheduling rules.\",\n" + - " \"properties\": {\n" + - " \"preferredDuringSchedulingIgnoredDuringExecution\": {\n" + - " \"description\": \"The scheduler will prefer to schedule pods to nodes that satisfy\\nthe affinity expressions specified by this field, but it may choose\\na node that violates one or more of the expressions. The node that is\\nmost preferred is the one with the greatest sum of weights, i.e.\\nfor each node that meets all of the scheduling requirements (resource\\nrequest, requiredDuringScheduling affinity expressions, etc.),\\ncompute a sum by iterating through the elements of this field and adding\\n\\\"weight\\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\\nnode(s) with the highest sum are the most preferred.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1WeightedPodAffinityTerm\"\n" + - " },\n" + - " \"x-go-name\": \"PreferredDuringSchedulingIgnoredDuringExecution\"\n" + - " },\n" + - " \"requiredDuringSchedulingIgnoredDuringExecution\": {\n" + - " \"description\": \"If the affinity requirements specified by this field are not met at\\nscheduling time, the pod will not be scheduled onto the node.\\nIf the affinity requirements specified by this field cease to be met\\nat some point during pod execution (e.g. due to a pod label update), the\\nsystem may or may not try to eventually evict the pod from its node.\\nWhen there are multiple elements, the lists of nodes corresponding to each\\npodAffinityTerm are intersected, i.e. all terms must be satisfied.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PodAffinityTerm\"\n" + - " },\n" + - " \"x-go-name\": \"RequiredDuringSchedulingIgnoredDuringExecution\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodAffinityTerm\": {\n" + - " \"description\": \"Defines a set of pods (namely those matching the labelSelector\\nrelative to the given namespace(s)) that this pod should be\\nco-located (affinity) or not co-located (anti-affinity) with,\\nwhere co-located is defined as running on a node whose value of\\nthe label with key \\u003ctopologyKey\\u003e matches that of any node on which\\na pod of the set of pods is running\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"labelSelector\": {\n" + - " \"$ref\": \"#/definitions/v1LabelSelector\"\n" + - " },\n" + - " \"namespaceSelector\": {\n" + - " \"$ref\": \"#/definitions/v1LabelSelector\"\n" + - " },\n" + - " \"namespaces\": {\n" + - " \"description\": \"namespaces specifies a static list of namespace names that the term applies to.\\nThe term is applied to the union of the namespaces listed in this field\\nand the ones selected by namespaceSelector.\\nnull or empty namespaces list and null namespaceSelector means \\\"this pod's namespace\\\".\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Namespaces\"\n" + - " },\n" + - " \"topologyKey\": {\n" + - " \"description\": \"This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\\nwhose value of the label with key topologyKey matches that of any node on which any of the\\nselected pods is running.\\nEmpty topologyKey is not allowed.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"TopologyKey\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodAntiAffinity\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Pod anti affinity is a group of inter pod anti affinity scheduling rules.\",\n" + - " \"properties\": {\n" + - " \"preferredDuringSchedulingIgnoredDuringExecution\": {\n" + - " \"description\": \"The scheduler will prefer to schedule pods to nodes that satisfy\\nthe anti-affinity expressions specified by this field, but it may choose\\na node that violates one or more of the expressions. The node that is\\nmost preferred is the one with the greatest sum of weights, i.e.\\nfor each node that meets all of the scheduling requirements (resource\\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\\ncompute a sum by iterating through the elements of this field and adding\\n\\\"weight\\\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\\nnode(s) with the highest sum are the most preferred.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1WeightedPodAffinityTerm\"\n" + - " },\n" + - " \"x-go-name\": \"PreferredDuringSchedulingIgnoredDuringExecution\"\n" + - " },\n" + - " \"requiredDuringSchedulingIgnoredDuringExecution\": {\n" + - " \"description\": \"If the anti-affinity requirements specified by this field are not met at\\nscheduling time, the pod will not be scheduled onto the node.\\nIf the anti-affinity requirements specified by this field cease to be met\\nat some point during pod execution (e.g. due to a pod label update), the\\nsystem may or may not try to eventually evict the pod from its node.\\nWhen there are multiple elements, the lists of nodes corresponding to each\\npodAffinityTerm are intersected, i.e. all terms must be satisfied.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PodAffinityTerm\"\n" + - " },\n" + - " \"x-go-name\": \"RequiredDuringSchedulingIgnoredDuringExecution\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodConditionType\": {\n" + - " \"description\": \"PodConditionType is a valid value for PodCondition.Type\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodDNSConfig\": {\n" + - " \"description\": \"PodDNSConfig defines the DNS parameters of a pod in addition to\\nthose generated from DNSPolicy.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"nameservers\": {\n" + - " \"description\": \"A list of DNS name server IP addresses.\\nThis will be appended to the base nameservers generated from DNSPolicy.\\nDuplicated nameservers will be removed.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Nameservers\"\n" + - " },\n" + - " \"options\": {\n" + - " \"description\": \"A list of DNS resolver options.\\nThis will be merged with the base options generated from DNSPolicy.\\nDuplicated entries will be removed. Resolution options given in Options\\nwill override those that appear in the base DNSPolicy.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PodDNSConfigOption\"\n" + - " },\n" + - " \"x-go-name\": \"Options\"\n" + - " },\n" + - " \"searches\": {\n" + - " \"description\": \"A list of DNS search domains for host-name lookup.\\nThis will be appended to the base search paths generated from DNSPolicy.\\nDuplicated search paths will be removed.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"Searches\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodDNSConfigOption\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"PodDNSConfigOption defines DNS resolver options of a pod.\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"Required.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"value\": {\n" + - " \"description\": \"+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Value\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodFSGroupChangePolicy\": {\n" + - " \"description\": \"PodFSGroupChangePolicy holds policies that will be used for applying fsGroup to a volume\\nwhen volume is mounted.\\n+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodOS\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"PodOS defines the OS parameters of a pod.\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"$ref\": \"#/definitions/v1OSName\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodReadinessGate\": {\n" + - " \"description\": \"PodReadinessGate contains the reference to a pod condition\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"conditionType\": {\n" + - " \"$ref\": \"#/definitions/v1PodConditionType\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodResourceClaim\": {\n" + - " \"description\": \"It adds a name to it that uniquely identifies the ResourceClaim inside the Pod.\\nContainers that need access to the ResourceClaim reference it with this name.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"PodResourceClaim references exactly one ResourceClaim through a ClaimSource.\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"Name uniquely identifies this resource claim inside the pod.\\nThis must be a DNS_LABEL.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"source\": {\n" + - " \"$ref\": \"#/definitions/v1ClaimSource\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodSchedulingGate\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"PodSchedulingGate is associated to a Pod to guard its scheduling.\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"Name of the scheduling gate.\\nEach scheduling gate must have a unique name field.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodSecurityContext\": {\n" + - " \"description\": \"Some fields are also present in container.securityContext. Field values of\\ncontainer.securityContext take precedence over field values of PodSecurityContext.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"PodSecurityContext holds pod-level security attributes and common container settings.\",\n" + - " \"properties\": {\n" + - " \"fsGroup\": {\n" + - " \"description\": \"A special supplemental group that applies to all containers in a pod.\\nSome volume types allow the Kubelet to change the ownership of that volume\\nto be owned by the pod:\\n\\n1. The owning GID will be the FSGroup\\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\\n3. The permission bits are OR'd with rw-rw----\\n\\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\\nNote that this field cannot be set when spec.os.name is windows.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"FSGroup\"\n" + - " },\n" + - " \"fsGroupChangePolicy\": {\n" + - " \"$ref\": \"#/definitions/v1PodFSGroupChangePolicy\"\n" + - " },\n" + - " \"runAsGroup\": {\n" + - " \"description\": \"The GID to run the entrypoint of the container process.\\nUses runtime default if unset.\\nMay also be set in SecurityContext. If set in both SecurityContext and\\nPodSecurityContext, the value specified in SecurityContext takes precedence\\nfor that container.\\nNote that this field cannot be set when spec.os.name is windows.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"RunAsGroup\"\n" + - " },\n" + - " \"runAsNonRoot\": {\n" + - " \"description\": \"Indicates that the container must run as a non-root user.\\nIf true, the Kubelet will validate the image at runtime to ensure that it\\ndoes not run as UID 0 (root) and fail to start the container if it does.\\nIf unset or false, no such validation will be performed.\\nMay also be set in SecurityContext. If set in both SecurityContext and\\nPodSecurityContext, the value specified in SecurityContext takes precedence.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"RunAsNonRoot\"\n" + - " },\n" + - " \"runAsUser\": {\n" + - " \"description\": \"The UID to run the entrypoint of the container process.\\nDefaults to user specified in image metadata if unspecified.\\nMay also be set in SecurityContext. If set in both SecurityContext and\\nPodSecurityContext, the value specified in SecurityContext takes precedence\\nfor that container.\\nNote that this field cannot be set when spec.os.name is windows.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"RunAsUser\"\n" + - " },\n" + - " \"seLinuxOptions\": {\n" + - " \"$ref\": \"#/definitions/v1SELinuxOptions\"\n" + - " },\n" + - " \"seccompProfile\": {\n" + - " \"$ref\": \"#/definitions/v1SeccompProfile\"\n" + - " },\n" + - " \"supplementalGroups\": {\n" + - " \"description\": \"A list of groups applied to the first process run in each container, in addition\\nto the container's primary GID, the fsGroup (if specified), and group memberships\\ndefined in the container image for the uid of the container process. If unspecified,\\nno additional groups are added to any container. Note that group memberships\\ndefined in the container image for the uid of the container process are still effective,\\neven if they are not included in this list.\\nNote that this field cannot be set when spec.os.name is windows.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\"\n" + - " },\n" + - " \"x-go-name\": \"SupplementalGroups\"\n" + - " },\n" + - " \"sysctls\": {\n" + - " \"description\": \"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\\nsysctls (by the container runtime) might fail to launch.\\nNote that this field cannot be set when spec.os.name is windows.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1Sysctl\"\n" + - " },\n" + - " \"x-go-name\": \"Sysctls\"\n" + - " },\n" + - " \"windowsOptions\": {\n" + - " \"$ref\": \"#/definitions/v1WindowsSecurityContextOptions\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PodSpec\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"PodSpec is a description of a pod.\",\n" + - " \"properties\": {\n" + - " \"activeDeadlineSeconds\": {\n" + - " \"description\": \"Optional duration in seconds the pod may be active on the node relative to\\nStartTime before the system will actively try to mark it failed and kill associated containers.\\nValue must be a positive integer.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"ActiveDeadlineSeconds\"\n" + - " },\n" + - " \"affinity\": {\n" + - " \"$ref\": \"#/definitions/v1Affinity\"\n" + - " },\n" + - " \"automountServiceAccountToken\": {\n" + - " \"description\": \"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"AutomountServiceAccountToken\"\n" + - " },\n" + - " \"containers\": {\n" + - " \"description\": \"List of containers belonging to the pod.\\nContainers cannot currently be added or removed.\\nThere must be at least one container in a Pod.\\nCannot be updated.\\n+patchMergeKey=name\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1Container\"\n" + - " },\n" + - " \"x-go-name\": \"Containers\"\n" + - " },\n" + - " \"dnsConfig\": {\n" + - " \"$ref\": \"#/definitions/v1PodDNSConfig\"\n" + - " },\n" + - " \"dnsPolicy\": {\n" + - " \"$ref\": \"#/definitions/v1DNSPolicy\"\n" + - " },\n" + - " \"enableServiceLinks\": {\n" + - " \"description\": \"EnableServiceLinks indicates whether information about services should be injected into pod's\\nenvironment variables, matching the syntax of Docker links.\\nOptional: Defaults to true.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"EnableServiceLinks\"\n" + - " },\n" + - " \"ephemeralContainers\": {\n" + - " \"description\": \"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing\\npod to perform user-initiated actions such as debugging. This list cannot be specified when\\ncreating a pod, and it cannot be modified by updating the pod spec. In order to add an\\nephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\\n+optional\\n+patchMergeKey=name\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1EphemeralContainer\"\n" + - " },\n" + - " \"x-go-name\": \"EphemeralContainers\"\n" + - " },\n" + - " \"hostAliases\": {\n" + - " \"description\": \"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts\\nfile if specified. This is only valid for non-hostNetwork pods.\\n+optional\\n+patchMergeKey=ip\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1HostAlias\"\n" + - " },\n" + - " \"x-go-name\": \"HostAliases\"\n" + - " },\n" + - " \"hostIPC\": {\n" + - " \"description\": \"Use the host's ipc namespace.\\nOptional: Default to false.\\n+k8s:conversion-gen=false\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"HostIPC\"\n" + - " },\n" + - " \"hostNetwork\": {\n" + - " \"description\": \"Host networking requested for this pod. Use the host's network namespace.\\nIf this option is set, the ports that will be used must be specified.\\nDefault to false.\\n+k8s:conversion-gen=false\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"HostNetwork\"\n" + - " },\n" + - " \"hostPID\": {\n" + - " \"description\": \"Use the host's pid namespace.\\nOptional: Default to false.\\n+k8s:conversion-gen=false\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"HostPID\"\n" + - " },\n" + - " \"hostUsers\": {\n" + - " \"description\": \"Use the host's user namespace.\\nOptional: Default to true.\\nIf set to true or not present, the pod will be run in the host user namespace, useful\\nfor when the pod needs a feature only available to the host user namespace, such as\\nloading a kernel module with CAP_SYS_MODULE.\\nWhen set to false, a new userns is created for the pod. Setting false is useful for\\nmitigating container breakout vulnerabilities even allowing users to run their\\ncontainers as root without actually having root privileges on the host.\\nThis field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\\n+k8s:conversion-gen=false\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"HostUsers\"\n" + - " },\n" + - " \"hostname\": {\n" + - " \"description\": \"Specifies the hostname of the Pod\\nIf not specified, the pod's hostname will be set to a system-defined value.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Hostname\"\n" + - " },\n" + - " \"imagePullSecrets\": {\n" + - " \"description\": \"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.\\nIf specified, these secrets will be passed to individual puller implementations for them to use.\\nMore info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod\\n+optional\\n+patchMergeKey=name\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1LocalObjectReference\"\n" + - " },\n" + - " \"x-go-name\": \"ImagePullSecrets\"\n" + - " },\n" + - " \"initContainers\": {\n" + - " \"description\": \"List of initialization containers belonging to the pod.\\nInit containers are executed in order prior to containers being started. If any\\ninit container fails, the pod is considered to have failed and is handled according\\nto its restartPolicy. The name for an init container or normal container must be\\nunique among all containers.\\nInit containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.\\nThe resourceRequirements of an init container are taken into account during scheduling\\nby finding the highest request/limit for each resource type, and then using the max of\\nof that value or the sum of the normal containers. Limits are applied to init containers\\nin a similar fashion.\\nInit containers cannot currently be added or removed.\\nCannot be updated.\\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/\\n+patchMergeKey=name\\n+patchStrategy=merge\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1Container\"\n" + - " },\n" + - " \"x-go-name\": \"InitContainers\"\n" + - " },\n" + - " \"nodeName\": {\n" + - " \"description\": \"NodeName is a request to schedule this pod onto a specific node. If it is non-empty,\\nthe scheduler simply schedules this pod onto that node, assuming that it fits resource\\nrequirements.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"NodeName\"\n" + - " },\n" + - " \"nodeSelector\": {\n" + - " \"description\": \"NodeSelector is a selector which must be true for the pod to fit on a node.\\nSelector which must match a node's labels for the pod to be scheduled on that node.\\nMore info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\\n+optional\\n+mapType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"NodeSelector\"\n" + - " },\n" + - " \"os\": {\n" + - " \"$ref\": \"#/definitions/v1PodOS\"\n" + - " },\n" + - " \"overhead\": {\n" + - " \"$ref\": \"#/definitions/v1ResourceList\"\n" + - " },\n" + - " \"preemptionPolicy\": {\n" + - " \"$ref\": \"#/definitions/v1PreemptionPolicy\"\n" + - " },\n" + - " \"priority\": {\n" + - " \"description\": \"The priority value. Various system components use this field to find the\\npriority of the pod. When Priority Admission Controller is enabled, it\\nprevents users from setting this field. The admission controller populates\\nthis field from PriorityClassName.\\nThe higher the value, the higher the priority.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"Priority\"\n" + - " },\n" + - " \"priorityClassName\": {\n" + - " \"description\": \"If specified, indicates the pod's priority. \\\"system-node-critical\\\" and\\n\\\"system-cluster-critical\\\" are two special keywords which indicate the\\nhighest priorities with the former being the highest priority. Any other\\nname must be defined by creating a PriorityClass object with that name.\\nIf not specified, the pod priority will be default or zero if there is no\\ndefault.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"PriorityClassName\"\n" + - " },\n" + - " \"readinessGates\": {\n" + - " \"description\": \"If specified, all readiness gates will be evaluated for pod readiness.\\nA pod is ready when all its containers are ready AND\\nall conditions specified in the readiness gates have status equal to \\\"True\\\"\\nMore info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PodReadinessGate\"\n" + - " },\n" + - " \"x-go-name\": \"ReadinessGates\"\n" + - " },\n" + - " \"resourceClaims\": {\n" + - " \"description\": \"ResourceClaims defines which ResourceClaims must be allocated\\nand reserved before the Pod is allowed to start. The resources\\nwill be made available to those containers which consume them\\nby name.\\n\\nThis is an alpha field and requires enabling the\\nDynamicResourceAllocation feature gate.\\n\\nThis field is immutable.\\n\\n+patchMergeKey=name\\n+patchStrategy=merge,retainKeys\\n+listType=map\\n+listMapKey=name\\n+featureGate=DynamicResourceAllocation\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PodResourceClaim\"\n" + - " },\n" + - " \"x-go-name\": \"ResourceClaims\"\n" + - " },\n" + - " \"restartPolicy\": {\n" + - " \"$ref\": \"#/definitions/v1RestartPolicy\"\n" + - " },\n" + - " \"runtimeClassName\": {\n" + - " \"description\": \"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used\\nto run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.\\nIf unset or empty, the \\\"legacy\\\" RuntimeClass will be used, which is an implicit class with an\\nempty definition that uses the default runtime handler.\\nMore info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"RuntimeClassName\"\n" + - " },\n" + - " \"schedulerName\": {\n" + - " \"description\": \"If specified, the pod will be dispatched by specified scheduler.\\nIf not specified, the pod will be dispatched by default scheduler.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"SchedulerName\"\n" + - " },\n" + - " \"schedulingGates\": {\n" + - " \"description\": \"SchedulingGates is an opaque list of values that if specified will block scheduling the pod.\\nMore info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\\n\\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.\\n+optional\\n+patchMergeKey=name\\n+patchStrategy=merge\\n+listType=map\\n+listMapKey=name\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1PodSchedulingGate\"\n" + - " },\n" + - " \"x-go-name\": \"SchedulingGates\"\n" + - " },\n" + - " \"securityContext\": {\n" + - " \"$ref\": \"#/definitions/v1PodSecurityContext\"\n" + - " },\n" + - " \"serviceAccount\": {\n" + - " \"description\": \"DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.\\nDeprecated: Use serviceAccountName instead.\\n+k8s:conversion-gen=false\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"DeprecatedServiceAccount\"\n" + - " },\n" + - " \"serviceAccountName\": {\n" + - " \"description\": \"ServiceAccountName is the name of the ServiceAccount to use to run this pod.\\nMore info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"ServiceAccountName\"\n" + - " },\n" + - " \"setHostnameAsFQDN\": {\n" + - " \"description\": \"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).\\nIn Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).\\nIn Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\\\\\SYSTEM\\\\\\\\CurrentControlSet\\\\\\\\Services\\\\\\\\Tcpip\\\\\\\\Parameters to FQDN.\\nIf a pod does not have FQDN, this has no effect.\\nDefault to false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"SetHostnameAsFQDN\"\n" + - " },\n" + - " \"shareProcessNamespace\": {\n" + - " \"description\": \"Share a single process namespace between all of the containers in a pod.\\nWhen this is set containers will be able to view and signal processes from other containers\\nin the same pod, and the first process in each container will not be assigned PID 1.\\nHostPID and ShareProcessNamespace cannot both be set.\\nOptional: Default to false.\\n+k8s:conversion-gen=false\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ShareProcessNamespace\"\n" + - " },\n" + - " \"subdomain\": {\n" + - " \"description\": \"If specified, the fully qualified Pod hostname will be \\\"\\u003chostname\\u003e.\\u003csubdomain\\u003e.\\u003cpod namespace\\u003e.svc.\\u003ccluster domain\\u003e\\\".\\nIf not specified, the pod will not have a domainname at all.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Subdomain\"\n" + - " },\n" + - " \"terminationGracePeriodSeconds\": {\n" + - " \"description\": \"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.\\nValue must be non-negative integer. The value zero indicates stop immediately via\\nthe kill signal (no opportunity to shut down).\\nIf this value is nil, the default grace period will be used instead.\\nThe grace period is the duration in seconds after the processes running in the pod are sent\\na termination signal and the time when the processes are forcibly halted with a kill signal.\\nSet this value longer than the expected cleanup time for your process.\\nDefaults to 30 seconds.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"TerminationGracePeriodSeconds\"\n" + - " },\n" + - " \"tolerations\": {\n" + - " \"description\": \"If specified, the pod's tolerations.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1Toleration\"\n" + - " },\n" + - " \"x-go-name\": \"Tolerations\"\n" + - " },\n" + - " \"topologySpreadConstraints\": {\n" + - " \"description\": \"TopologySpreadConstraints describes how a group of pods ought to spread across topology\\ndomains. Scheduler will schedule pods in a way which abides by the constraints.\\nAll topologySpreadConstraints are ANDed.\\n+optional\\n+patchMergeKey=topologyKey\\n+patchStrategy=merge\\n+listType=map\\n+listMapKey=topologyKey\\n+listMapKey=whenUnsatisfiable\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1TopologySpreadConstraint\"\n" + - " },\n" + - " \"x-go-name\": \"TopologySpreadConstraints\"\n" + - " },\n" + - " \"volumes\": {\n" + - " \"description\": \"List of volumes that can be mounted by containers belonging to the pod.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes\\n+optional\\n+patchMergeKey=name\\n+patchStrategy=merge,retainKeys\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1Volume\"\n" + - " },\n" + - " \"x-go-name\": \"Volumes\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PortStatus\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"error\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Error is to record the problem with the service port\\nThe format of the error shall comply with the following rules:\\n- built-in error values shall be specified in this file and those shall use\\n CamelCase names\\n- cloud provider specific error values must have names that comply with the\\n format foo.example.com/CamelCase.\\n---\\nThe regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)\\n+optional\\n+kubebuilder:validation:Required\\n+kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`\\n+kubebuilder:validation:MaxLength=316\"\n" + - " },\n" + - " \"port\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"title\": \"Port is the port number of the service port of which status is recorded here\"\n" + - " },\n" + - " \"protocol\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Protocol is the protocol of the service port of which status is recorded here\\nThe supported values are: \\\"TCP\\\", \\\"UDP\\\", \\\"SCTP\\\"\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1PortworxVolumeSource\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"PortworxVolumeSource represents a Portworx volume resource.\",\n" + - " \"properties\": {\n" + - " \"fsType\": {\n" + - " \"description\": \"fSType represents the filesystem type to mount\\nMust be a filesystem type supported by the host operating system.\\nEx. \\\"ext4\\\", \\\"xfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly defaults to false (read/write). ReadOnly here will force\\nthe ReadOnly setting in VolumeMounts.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"volumeID\": {\n" + - " \"description\": \"volumeID uniquely identifies a Portworx volume\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"VolumeID\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PreemptionPolicy\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"title\": \"PreemptionPolicy describes a policy for if/when to preempt a pod.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PreferredSchedulingTerm\": {\n" + - " \"description\": \"An empty preferred scheduling term matches all objects with implicit weight 0\\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"preference\": {\n" + - " \"$ref\": \"#/definitions/v1NodeSelectorTerm\"\n" + - " },\n" + - " \"weight\": {\n" + - " \"description\": \"Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"Weight\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Probe\": {\n" + - " \"description\": \"Probe describes a health check to be performed against a container to determine whether it is\\nalive or ready to receive traffic.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"exec\": {\n" + - " \"$ref\": \"#/definitions/v1ExecAction\"\n" + - " },\n" + - " \"failureThreshold\": {\n" + - " \"description\": \"Minimum consecutive failures for the probe to be considered failed after having succeeded.\\nDefaults to 3. Minimum value is 1.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"FailureThreshold\"\n" + - " },\n" + - " \"grpc\": {\n" + - " \"$ref\": \"#/definitions/v1GRPCAction\"\n" + - " },\n" + - " \"httpGet\": {\n" + - " \"$ref\": \"#/definitions/v1HTTPGetAction\"\n" + - " },\n" + - " \"initialDelaySeconds\": {\n" + - " \"description\": \"Number of seconds after the container has started before liveness probes are initiated.\\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"InitialDelaySeconds\"\n" + - " },\n" + - " \"periodSeconds\": {\n" + - " \"description\": \"How often (in seconds) to perform the probe.\\nDefault to 10 seconds. Minimum value is 1.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"PeriodSeconds\"\n" + - " },\n" + - " \"successThreshold\": {\n" + - " \"description\": \"Minimum consecutive successes for the probe to be considered successful after having failed.\\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"SuccessThreshold\"\n" + - " },\n" + - " \"tcpSocket\": {\n" + - " \"$ref\": \"#/definitions/v1TCPSocketAction\"\n" + - " },\n" + - " \"terminationGracePeriodSeconds\": {\n" + - " \"description\": \"Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\\nThe grace period is the duration in seconds after the processes running in the pod are sent\\na termination signal and the time when the processes are forcibly halted with a kill signal.\\nSet this value longer than the expected cleanup time for your process.\\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\\nvalue overrides the value provided by the pod spec.\\nValue must be non-negative integer. The value zero indicates stop immediately via\\nthe kill signal (no opportunity to shut down).\\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"TerminationGracePeriodSeconds\"\n" + - " },\n" + - " \"timeoutSeconds\": {\n" + - " \"description\": \"Number of seconds after which the probe times out.\\nDefaults to 1 second. Minimum value is 1.\\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"TimeoutSeconds\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ProcMountType\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ProjectedVolumeSource\": {\n" + - " \"description\": \"Represents a projected volume source\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"defaultMode\": {\n" + - " \"description\": \"defaultMode are the mode bits used to set permissions on created files by default.\\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\\nDirectories within the path are not affected by this setting.\\nThis might be in conflict with other options that affect the file\\nmode, like fsGroup, and the result can be other mode bits set.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"DefaultMode\"\n" + - " },\n" + - " \"sources\": {\n" + - " \"description\": \"sources is the list of volume projections\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1VolumeProjection\"\n" + - " },\n" + - " \"x-go-name\": \"Sources\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Protocol\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Protocol defines network protocols supported for things like container ports.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1PullPolicy\": {\n" + - " \"description\": \"PullPolicy describes a policy for if/when to pull a container image\\n+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1QuobyteVolumeSource\": {\n" + - " \"description\": \"Quobyte volumes do not support ownership management or SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a Quobyte mount that lasts the lifetime of a pod.\",\n" + - " \"properties\": {\n" + - " \"group\": {\n" + - " \"description\": \"group to map volume access to\\nDefault is no group\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Group\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly here will force the Quobyte volume to be mounted with read-only permissions.\\nDefaults to false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"registry\": {\n" + - " \"description\": \"registry represents a single or multiple Quobyte Registry services\\nspecified as a string as host:port pair (multiple entries are separated with commas)\\nwhich acts as the central registry for volumes\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Registry\"\n" + - " },\n" + - " \"tenant\": {\n" + - " \"description\": \"tenant owning the given Quobyte volume in the Backend\\nUsed with dynamically provisioned Quobyte volumes, value is set by the plugin\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Tenant\"\n" + - " },\n" + - " \"user\": {\n" + - " \"description\": \"user to map volume access to\\nDefaults to serivceaccount user\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"User\"\n" + - " },\n" + - " \"volume\": {\n" + - " \"description\": \"volume is a string that references an already created Quobyte volume by name.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Volume\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1RBDVolumeSource\": {\n" + - " \"description\": \"RBD volumes support ownership management and SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a Rados Block Device mount that lasts the lifetime of a pod.\",\n" + - " \"properties\": {\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is the filesystem type of the volume that you want to mount.\\nTip: Ensure that the filesystem type is supported by the host operating system.\\nExamples: \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#rbd\\nTODO: how do we prevent errors in the filesystem from compromising the machine\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"image\": {\n" + - " \"description\": \"image is the rados image name.\\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"RBDImage\"\n" + - " },\n" + - " \"keyring\": {\n" + - " \"description\": \"keyring is the path to key ring for RBDUser.\\nDefault is /etc/ceph/keyring.\\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Keyring\"\n" + - " },\n" + - " \"monitors\": {\n" + - " \"description\": \"monitors is a collection of Ceph monitors.\\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"CephMonitors\"\n" + - " },\n" + - " \"pool\": {\n" + - " \"description\": \"pool is the rados pool name.\\nDefault is rbd.\\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"RBDPool\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly here will force the ReadOnly setting in VolumeMounts.\\nDefaults to false.\\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"secretRef\": {\n" + - " \"$ref\": \"#/definitions/v1LocalObjectReference\"\n" + - " },\n" + - " \"user\": {\n" + - " \"description\": \"user is the rados user name.\\nDefault is admin.\\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"RadosUser\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ResourceClaim\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"ResourceClaim references one entry in PodSpec.ResourceClaims.\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"Name must match the name of one entry in pod.spec.resourceClaims of\\nthe Pod where this field is used. It makes that resource available\\ninside a container.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ResourceFieldSelector\": {\n" + - " \"description\": \"ResourceFieldSelector represents container resources (cpu, memory) and their output format\\n+structType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"containerName\": {\n" + - " \"description\": \"Container name: required for volumes, optional for env vars\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"ContainerName\"\n" + - " },\n" + - " \"divisor\": {\n" + - " \"$ref\": \"#/definitions/resourceQuantity\"\n" + - " },\n" + - " \"resource\": {\n" + - " \"description\": \"Required: resource to select\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Resource\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ResourceList\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"ResourceList is a set of (resource name, quantity) pairs.\",\n" + - " \"additionalProperties\": {\n" + - " \"$ref\": \"#/definitions/resourceQuantity\"\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ResourceRequirements\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"ResourceRequirements describes the compute resource requirements.\",\n" + - " \"properties\": {\n" + - " \"claims\": {\n" + - " \"description\": \"Claims lists the names of resources, defined in spec.resourceClaims,\\nthat are used by this container.\\n\\nThis is an alpha field and requires enabling the\\nDynamicResourceAllocation feature gate.\\n\\nThis field is immutable. It can only be set for containers.\\n\\n+listType=map\\n+listMapKey=name\\n+featureGate=DynamicResourceAllocation\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1ResourceClaim\"\n" + - " },\n" + - " \"x-go-name\": \"Claims\"\n" + - " },\n" + - " \"limits\": {\n" + - " \"$ref\": \"#/definitions/v1ResourceList\"\n" + - " },\n" + - " \"requests\": {\n" + - " \"$ref\": \"#/definitions/v1ResourceList\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1RestartPolicy\": {\n" + - " \"description\": \"Only one of the following restart policies may be specified.\\nIf none of the following policies is specified, the default one\\nis RestartPolicyAlways.\\n+enum\",\n" + - " \"type\": \"string\",\n" + - " \"title\": \"RestartPolicy describes how the container should be restarted.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1SELinuxOptions\": {\n" + - " \"description\": \"SELinuxOptions are the labels to be applied to the container\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"level\": {\n" + - " \"description\": \"Level is SELinux level label that applies to the container.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Level\"\n" + - " },\n" + - " \"role\": {\n" + - " \"description\": \"Role is a SELinux role label that applies to the container.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Role\"\n" + - " },\n" + - " \"type\": {\n" + - " \"description\": \"Type is a SELinux type label that applies to the container.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Type\"\n" + - " },\n" + - " \"user\": {\n" + - " \"description\": \"User is a SELinux user label that applies to the container.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"User\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ScaleIOVolumeSource\": {\n" + - " \"description\": \"ScaleIOVolumeSource represents a persistent ScaleIO volume\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is the filesystem type to mount.\\nMust be a filesystem type supported by the host operating system.\\nEx. \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\".\\nDefault is \\\"xfs\\\".\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"gateway\": {\n" + - " \"description\": \"gateway is the host address of the ScaleIO API Gateway.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Gateway\"\n" + - " },\n" + - " \"protectionDomain\": {\n" + - " \"description\": \"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"ProtectionDomain\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly Defaults to false (read/write). ReadOnly here will force\\nthe ReadOnly setting in VolumeMounts.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"secretRef\": {\n" + - " \"$ref\": \"#/definitions/v1LocalObjectReference\"\n" + - " },\n" + - " \"sslEnabled\": {\n" + - " \"description\": \"sslEnabled Flag enable/disable SSL communication with Gateway, default false\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"SSLEnabled\"\n" + - " },\n" + - " \"storageMode\": {\n" + - " \"description\": \"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.\\nDefault is ThinProvisioned.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"StorageMode\"\n" + - " },\n" + - " \"storagePool\": {\n" + - " \"description\": \"storagePool is the ScaleIO Storage Pool associated with the protection domain.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"StoragePool\"\n" + - " },\n" + - " \"system\": {\n" + - " \"description\": \"system is the name of the storage system as configured in ScaleIO.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"System\"\n" + - " },\n" + - " \"volumeName\": {\n" + - " \"description\": \"volumeName is the name of a volume already created in the ScaleIO system\\nthat is associated with this volume source.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"VolumeName\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1SeccompProfile\": {\n" + - " \"description\": \"Only one profile source may be set.\\n+union\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"SeccompProfile defines a pod/container's seccomp profile settings.\",\n" + - " \"properties\": {\n" + - " \"localhostProfile\": {\n" + - " \"description\": \"localhostProfile indicates a profile defined in a file on the node should be used.\\nThe profile must be preconfigured on the node to work.\\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\\nMust only be set if type is \\\"Localhost\\\".\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"LocalhostProfile\"\n" + - " },\n" + - " \"type\": {\n" + - " \"$ref\": \"#/definitions/v1SeccompProfileType\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1SeccompProfileType\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"title\": \"SeccompProfileType defines the supported seccomp profile types.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1SecretEnvSource\": {\n" + - " \"description\": \"The contents of the target Secret's Data field will represent the\\nkey-value pairs as environment variables.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"SecretEnvSource selects a Secret to populate the environment\\nvariables with.\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"Name of the referent.\\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\\nTODO: Add other useful fields. apiVersion, kind, uid?\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"optional\": {\n" + - " \"description\": \"Specify whether the Secret must be defined\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Optional\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1SecretKeySelector\": {\n" + - " \"description\": \"+structType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"SecretKeySelector selects a key of a Secret.\",\n" + - " \"properties\": {\n" + - " \"key\": {\n" + - " \"description\": \"The key of the secret to select from. Must be a valid secret key.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Key\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name of the referent.\\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\\nTODO: Add other useful fields. apiVersion, kind, uid?\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"optional\": {\n" + - " \"description\": \"Specify whether the Secret or its key must be defined\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Optional\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1SecretProjection\": {\n" + - " \"description\": \"The contents of the target Secret's Data field will be presented in a\\nprojected volume as files using the keys in the Data field as the file names.\\nNote that this is identical to a secret volume source without the default\\nmode.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Adapts a secret into a projected volume.\",\n" + - " \"properties\": {\n" + - " \"items\": {\n" + - " \"description\": \"items if unspecified, each key-value pair in the Data field of the referenced\\nSecret will be projected into the volume as a file whose name is the\\nkey and content is the value. If specified, the listed keys will be\\nprojected into the specified paths, and unlisted keys will not be\\npresent. If a key is specified which is not present in the Secret,\\nthe volume setup will error unless it is marked optional. Paths must be\\nrelative and may not contain the '..' path or start with '..'.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1KeyToPath\"\n" + - " },\n" + - " \"x-go-name\": \"Items\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name of the referent.\\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\\nTODO: Add other useful fields. apiVersion, kind, uid?\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"optional\": {\n" + - " \"description\": \"optional field specify whether the Secret or its key must be defined\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Optional\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1SecretVolumeSource\": {\n" + - " \"description\": \"The contents of the target Secret's Data field will be presented in a volume\\nas files using the keys in the Data field as the file names.\\nSecret volumes support ownership management and SELinux relabeling.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Adapts a Secret into a volume.\",\n" + - " \"properties\": {\n" + - " \"defaultMode\": {\n" + - " \"description\": \"defaultMode is Optional: mode bits used to set permissions on created files by default.\\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\\nYAML accepts both octal and decimal values, JSON requires decimal values\\nfor mode bits. Defaults to 0644.\\nDirectories within the path are not affected by this setting.\\nThis might be in conflict with other options that affect the file\\nmode, like fsGroup, and the result can be other mode bits set.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"DefaultMode\"\n" + - " },\n" + - " \"items\": {\n" + - " \"description\": \"items If unspecified, each key-value pair in the Data field of the referenced\\nSecret will be projected into the volume as a file whose name is the\\nkey and content is the value. If specified, the listed keys will be\\nprojected into the specified paths, and unlisted keys will not be\\npresent. If a key is specified which is not present in the Secret,\\nthe volume setup will error unless it is marked optional. Paths must be\\nrelative and may not contain the '..' path or start with '..'.\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1KeyToPath\"\n" + - " },\n" + - " \"x-go-name\": \"Items\"\n" + - " },\n" + - " \"optional\": {\n" + - " \"description\": \"optional field specify whether the Secret or its keys must be defined\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Optional\"\n" + - " },\n" + - " \"secretName\": {\n" + - " \"description\": \"secretName is the name of the secret in the pod's namespace to use.\\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"SecretName\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1SecurityContext\": {\n" + - " \"description\": \"Some fields are present in both SecurityContext and PodSecurityContext. When both\\nare set, the values in SecurityContext take precedence.\",\n" + - " \"type\": \"object\",\n" + - " \"title\": \"SecurityContext holds security configuration that will be applied to a container.\",\n" + - " \"properties\": {\n" + - " \"allowPrivilegeEscalation\": {\n" + - " \"description\": \"AllowPrivilegeEscalation controls whether a process can gain more\\nprivileges than its parent process. This bool directly controls if\\nthe no_new_privs flag will be set on the container process.\\nAllowPrivilegeEscalation is true always when the container is:\\n1) run as Privileged\\n2) has CAP_SYS_ADMIN\\nNote that this field cannot be set when spec.os.name is windows.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"AllowPrivilegeEscalation\"\n" + - " },\n" + - " \"capabilities\": {\n" + - " \"$ref\": \"#/definitions/v1Capabilities\"\n" + - " },\n" + - " \"privileged\": {\n" + - " \"description\": \"Run container in privileged mode.\\nProcesses in privileged containers are essentially equivalent to root on the host.\\nDefaults to false.\\nNote that this field cannot be set when spec.os.name is windows.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Privileged\"\n" + - " },\n" + - " \"procMount\": {\n" + - " \"$ref\": \"#/definitions/v1ProcMountType\"\n" + - " },\n" + - " \"readOnlyRootFilesystem\": {\n" + - " \"description\": \"Whether this container has a read-only root filesystem.\\nDefault is false.\\nNote that this field cannot be set when spec.os.name is windows.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnlyRootFilesystem\"\n" + - " },\n" + - " \"runAsGroup\": {\n" + - " \"description\": \"The GID to run the entrypoint of the container process.\\nUses runtime default if unset.\\nMay also be set in PodSecurityContext. If set in both SecurityContext and\\nPodSecurityContext, the value specified in SecurityContext takes precedence.\\nNote that this field cannot be set when spec.os.name is windows.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"RunAsGroup\"\n" + - " },\n" + - " \"runAsNonRoot\": {\n" + - " \"description\": \"Indicates that the container must run as a non-root user.\\nIf true, the Kubelet will validate the image at runtime to ensure that it\\ndoes not run as UID 0 (root) and fail to start the container if it does.\\nIf unset or false, no such validation will be performed.\\nMay also be set in PodSecurityContext. If set in both SecurityContext and\\nPodSecurityContext, the value specified in SecurityContext takes precedence.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"RunAsNonRoot\"\n" + - " },\n" + - " \"runAsUser\": {\n" + - " \"description\": \"The UID to run the entrypoint of the container process.\\nDefaults to user specified in image metadata if unspecified.\\nMay also be set in PodSecurityContext. If set in both SecurityContext and\\nPodSecurityContext, the value specified in SecurityContext takes precedence.\\nNote that this field cannot be set when spec.os.name is windows.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"RunAsUser\"\n" + - " },\n" + - " \"seLinuxOptions\": {\n" + - " \"$ref\": \"#/definitions/v1SELinuxOptions\"\n" + - " },\n" + - " \"seccompProfile\": {\n" + - " \"$ref\": \"#/definitions/v1SeccompProfile\"\n" + - " },\n" + - " \"windowsOptions\": {\n" + - " \"$ref\": \"#/definitions/v1WindowsSecurityContextOptions\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Service\": {\n" + - " \"description\": \"Service is a named abstraction of software service (for example, mysql) consisting of local port\\n(for example 3306) that the proxy listens on, and the selector that determines which pods\\nwill answer requests sent through the proxy.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"metadata\": {\n" + - " \"title\": \"Standard object's metadata.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1ObjectMeta\"\n" + - " },\n" + - " \"spec\": {\n" + - " \"title\": \"Spec defines the behavior of a service.\\nhttps://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1ServiceSpec\"\n" + - " },\n" + - " \"status\": {\n" + - " \"title\": \"Most recently observed status of the service.\\nPopulated by the system.\\nRead-only.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1ServiceStatus\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1ServiceAccountTokenProjection\": {\n" + - " \"description\": \"ServiceAccountTokenProjection represents a projected service account token\\nvolume. This projection can be used to insert a service account token into\\nthe pods runtime filesystem for use against APIs (Kubernetes API Server or\\notherwise).\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"audience\": {\n" + - " \"description\": \"audience is the intended audience of the token. A recipient of a token\\nmust identify itself with an identifier specified in the audience of the\\ntoken, and otherwise should reject the token. The audience defaults to the\\nidentifier of the apiserver.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Audience\"\n" + - " },\n" + - " \"expirationSeconds\": {\n" + - " \"description\": \"expirationSeconds is the requested duration of validity of the service\\naccount token. As the token approaches expiration, the kubelet volume\\nplugin will proactively rotate the service account token. The kubelet will\\nstart trying to rotate the token if the token is older than 80 percent of\\nits time to live or if the token is older than 24 hours.Defaults to 1 hour\\nand must be at least 10 minutes.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"ExpirationSeconds\"\n" + - " },\n" + - " \"path\": {\n" + - " \"description\": \"path is the path relative to the mount point of the file to project the\\ntoken into.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Path\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1ServiceBackendPort\": {\n" + - " \"description\": \"ServiceBackendPort is the service port being referenced.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Name is the name of the port on the Service.\\nThis is a mutually exclusive setting with \\\"Number\\\".\\n+optional\"\n" + - " },\n" + - " \"number\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"title\": \"Number is the numerical port number (e.g. 80) on the Service.\\nThis is a mutually exclusive setting with \\\"Name\\\".\\n+optional\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1ServicePort\": {\n" + - " \"description\": \"ServicePort contains information on service's port.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"appProtocol\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"The application protocol for this port.\\nThis field follows standard Kubernetes label syntax.\\nUn-prefixed names are reserved for IANA standard service names (as per\\nRFC-6335 and https://www.iana.org/assignments/service-names).\\nNon-standard protocols should use prefixed names such as\\nmycompany.com/my-custom-protocol.\\n+optional\"\n" + - " },\n" + - " \"name\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"The name of this port within the service. This must be a DNS_LABEL.\\nAll ports within a ServiceSpec must have unique names. When considering\\nthe endpoints for a Service, this must match the 'name' field in the\\nEndpointPort.\\nOptional if only one ServicePort is defined on this service.\\n+optional\"\n" + - " },\n" + - " \"nodePort\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"title\": \"The port on each node on which this service is exposed when type is\\nNodePort or LoadBalancer. Usually assigned by the system. If a value is\\nspecified, in-range, and not in use it will be used, otherwise the\\noperation will fail. If not specified, a port will be allocated if this\\nService requires one. If this field is specified when creating a\\nService which does not need it, creation will fail. This field will be\\nwiped when updating a Service to no longer need it (e.g. changing type\\nfrom NodePort to ClusterIP).\\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport\\n+optional\"\n" + - " },\n" + - " \"port\": {\n" + - " \"description\": \"The port that will be exposed by this service.\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"protocol\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"The IP protocol for this port. Supports \\\"TCP\\\", \\\"UDP\\\", and \\\"SCTP\\\".\\nDefault is TCP.\\n+default=\\\"TCP\\\"\\n+optional\"\n" + - " },\n" + - " \"targetPort\": {\n" + - " \"title\": \"Number or name of the port to access on the pods targeted by the service.\\nNumber must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.\\nIf this is a string, it will be looked up as a named port in the\\ntarget Pod's container ports. If this is not specified, the value\\nof the 'port' field is used (an identity map).\\nThis field is ignored for services with clusterIP=None, and should be\\nomitted or set equal to the 'port' field.\\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service\\n+optional\",\n" + - " \"$ref\": \"#/definitions/intstrIntOrString\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1ServiceSpec\": {\n" + - " \"description\": \"ServiceSpec describes the attributes that a user creates on a service.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"allocateLoadBalancerNodePorts\": {\n" + - " \"type\": \"boolean\",\n" + - " \"title\": \"allocateLoadBalancerNodePorts defines if NodePorts will be automatically\\nallocated for services with type LoadBalancer. Default is \\\"true\\\". It\\nmay be set to \\\"false\\\" if the cluster load-balancer does not rely on\\nNodePorts. If the caller requests specific NodePorts (by specifying a\\nvalue), those requests will be respected, regardless of this field.\\nThis field may only be set for services with type LoadBalancer and will\\nbe cleared if the type is changed to any other type.\\n+optional\"\n" + - " },\n" + - " \"clusterIP\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"clusterIP is the IP address of the service and is usually assigned\\nrandomly. If an address is specified manually, is in-range (as per\\nsystem configuration), and is not in use, it will be allocated to the\\nservice; otherwise creation of the service will fail. This field may not\\nbe changed through updates unless the type field is also being changed\\nto ExternalName (which requires this field to be blank) or the type\\nfield is being changed from ExternalName (in which case this field may\\noptionally be specified, as describe above). Valid values are \\\"None\\\",\\nempty string (\\\"\\\"), or a valid IP address. Setting this to \\\"None\\\" makes a\\n\\\"headless service\\\" (no virtual IP), which is useful when direct endpoint\\nconnections are preferred and proxying is not required. Only applies to\\ntypes ClusterIP, NodePort, and LoadBalancer. If this field is specified\\nwhen creating a Service of type ExternalName, creation will fail. This\\nfield will be wiped when updating a Service to type ExternalName.\\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\\n+optional\"\n" + - " },\n" + - " \"clusterIPs\": {\n" + - " \"description\": \"ClusterIPs is a list of IP addresses assigned to this service, and are\\nusually assigned randomly. If an address is specified manually, is\\nin-range (as per system configuration), and is not in use, it will be\\nallocated to the service; otherwise creation of the service will fail.\\nThis field may not be changed through updates unless the type field is\\nalso being changed to ExternalName (which requires this field to be\\nempty) or the type field is being changed from ExternalName (in which\\ncase this field may optionally be specified, as describe above). Valid\\nvalues are \\\"None\\\", empty string (\\\"\\\"), or a valid IP address. Setting\\nthis to \\\"None\\\" makes a \\\"headless service\\\" (no virtual IP), which is\\nuseful when direct endpoint connections are preferred and proxying is\\nnot required. Only applies to types ClusterIP, NodePort, and\\nLoadBalancer. If this field is specified when creating a Service of type\\nExternalName, creation will fail. This field will be wiped when updating\\na Service to type ExternalName. If this field is not specified, it will\\nbe initialized from the clusterIP field. If this field is specified,\\nclients must ensure that clusterIPs[0] and clusterIP have the same\\nvalue.\\n\\nThis field may hold a maximum of two entries (dual-stack IPs, in either order).\\nThese IPs must correspond to the values of the ipFamilies field. Both\\nclusterIPs and ipFamilies are governed by the ipFamilyPolicy field.\\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\\n+listType=atomic\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"externalIPs\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"externalIPs is a list of IP addresses for which nodes in the cluster\\nwill also accept traffic for this service. These IPs are not managed by\\nKubernetes. The user is responsible for ensuring that traffic arrives\\nat a node with this IP. A common example is external load-balancers\\nthat are not part of the Kubernetes system.\\n+optional\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"externalName\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"externalName is the external reference that discovery mechanisms will\\nreturn as an alias for this service (e.g. a DNS CNAME record). No\\nproxying will be involved. Must be a lowercase RFC-1123 hostname\\n(https://tools.ietf.org/html/rfc1123) and requires `type` to be \\\"ExternalName\\\".\\n+optional\"\n" + - " },\n" + - " \"externalTrafficPolicy\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"externalTrafficPolicy describes how nodes distribute service traffic they\\nreceive on one of the Service's \\\"externally-facing\\\" addresses (NodePorts,\\nExternalIPs, and LoadBalancer IPs). If set to \\\"Local\\\", the proxy will configure\\nthe service in a way that assumes that external load balancers will take care\\nof balancing the service traffic between nodes, and so each node will deliver\\ntraffic only to the node-local endpoints of the service, without masquerading\\nthe client source IP. (Traffic mistakenly sent to a node with no endpoints will\\nbe dropped.) The default value, \\\"Cluster\\\", uses the standard behavior of\\nrouting to all endpoints evenly (possibly modified by topology and other\\nfeatures). Note that traffic sent to an External IP or LoadBalancer IP from\\nwithin the cluster will always get \\\"Cluster\\\" semantics, but clients sending to\\na NodePort from within the cluster may need to take traffic policy into account\\nwhen picking a node.\\n+optional\"\n" + - " },\n" + - " \"healthCheckNodePort\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"title\": \"healthCheckNodePort specifies the healthcheck nodePort for the service.\\nThis only applies when type is set to LoadBalancer and\\nexternalTrafficPolicy is set to Local. If a value is specified, is\\nin-range, and is not in use, it will be used. If not specified, a value\\nwill be automatically allocated. External systems (e.g. load-balancers)\\ncan use this port to determine if a given node holds endpoints for this\\nservice or not. If this field is specified when creating a Service\\nwhich does not need it, creation will fail. This field will be wiped\\nwhen updating a Service to no longer need it (e.g. changing type).\\nThis field cannot be updated once set.\\n+optional\"\n" + - " },\n" + - " \"internalTrafficPolicy\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"InternalTrafficPolicy describes how nodes distribute service traffic they\\nreceive on the ClusterIP. If set to \\\"Local\\\", the proxy will assume that pods\\nonly want to talk to endpoints of the service on the same node as the pod,\\ndropping the traffic if there are no local endpoints. The default value,\\n\\\"Cluster\\\", uses the standard behavior of routing to all endpoints evenly\\n(possibly modified by topology and other features).\\n+optional\"\n" + - " },\n" + - " \"ipFamilies\": {\n" + - " \"description\": \"IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this\\nservice. This field is usually assigned automatically based on cluster\\nconfiguration and the ipFamilyPolicy field. If this field is specified\\nmanually, the requested family is available in the cluster,\\nand ipFamilyPolicy allows it, it will be used; otherwise creation of\\nthe service will fail. This field is conditionally mutable: it allows\\nfor adding or removing a secondary IP family, but it does not allow\\nchanging the primary IP family of the Service. Valid values are \\\"IPv4\\\"\\nand \\\"IPv6\\\". This field only applies to Services of types ClusterIP,\\nNodePort, and LoadBalancer, and does apply to \\\"headless\\\" services.\\nThis field will be wiped when updating a Service to type ExternalName.\\n\\nThis field may hold a maximum of two entries (dual-stack families, in\\neither order). These families must correspond to the values of the\\nclusterIPs field, if specified. Both clusterIPs and ipFamilies are\\ngoverned by the ipFamilyPolicy field.\\n+listType=atomic\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"ipFamilyPolicy\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"IPFamilyPolicy represents the dual-stack-ness requested or required by\\nthis Service. If there is no value provided, then this field will be set\\nto SingleStack. Services can be \\\"SingleStack\\\" (a single IP family),\\n\\\"PreferDualStack\\\" (two IP families on dual-stack configured clusters or\\na single IP family on single-stack clusters), or \\\"RequireDualStack\\\"\\n(two IP families on dual-stack configured clusters, otherwise fail). The\\nipFamilies and clusterIPs fields depend on the value of this field. This\\nfield will be wiped when updating a service to type ExternalName.\\n+optional\"\n" + - " },\n" + - " \"loadBalancerClass\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"loadBalancerClass is the class of the load balancer implementation this Service belongs to.\\nIf specified, the value of this field must be a label-style identifier, with an optional prefix,\\ne.g. \\\"internal-vip\\\" or \\\"example.com/internal-vip\\\". Unprefixed names are reserved for end-users.\\nThis field can only be set when the Service type is 'LoadBalancer'. If not set, the default load\\nbalancer implementation is used, today this is typically done through the cloud provider integration,\\nbut should apply for any default implementation. If set, it is assumed that a load balancer\\nimplementation is watching for Services with a matching class. Any default load balancer\\nimplementation (e.g. cloud providers) should ignore Services that set this field.\\nThis field can only be set when creating or updating a Service to type 'LoadBalancer'.\\nOnce set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.\\n+optional\"\n" + - " },\n" + - " \"loadBalancerIP\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Only applies to Service Type: LoadBalancer.\\nThis feature depends on whether the underlying cloud-provider supports specifying\\nthe loadBalancerIP when a load balancer is created.\\nThis field will be ignored if the cloud-provider does not support the feature.\\nDeprecated: This field was under-specified and its meaning varies across implementations,\\nand it cannot support dual-stack.\\nAs of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available.\\nThis field may be removed in a future API version.\\n+optional\"\n" + - " },\n" + - " \"loadBalancerSourceRanges\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"If specified and supported by the platform, this will restrict traffic through the cloud-provider\\nload-balancer will be restricted to the specified client IPs. This field will be ignored if the\\ncloud-provider does not support the feature.\\\"\\nMore info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/\\n+optional\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"ports\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"The list of ports that are exposed by this service.\\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\\n+patchMergeKey=port\\n+patchStrategy=merge\\n+listType=map\\n+listMapKey=port\\n+listMapKey=protocol\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1ServicePort\"\n" + - " }\n" + - " },\n" + - " \"publishNotReadyAddresses\": {\n" + - " \"type\": \"boolean\",\n" + - " \"title\": \"publishNotReadyAddresses indicates that any agent which deals with endpoints for this\\nService should disregard any indications of ready/not-ready.\\nThe primary use case for setting this field is for a StatefulSet's Headless Service to\\npropagate SRV DNS records for its Pods for the purpose of peer discovery.\\nThe Kubernetes controllers that generate Endpoints and EndpointSlice resources for\\nServices interpret this to mean that all endpoints are considered \\\"ready\\\" even if the\\nPods themselves are not. Agents which consume only Kubernetes generated endpoints\\nthrough the Endpoints or EndpointSlice resources can safely assume this behavior.\\n+optional\"\n" + - " },\n" + - " \"selector\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Route service traffic to pods with label keys and values matching this\\nselector. If empty or not present, the service is assumed to have an\\nexternal process managing its endpoints, which Kubernetes will not\\nmodify. Only applies to types ClusterIP, NodePort, and LoadBalancer.\\nIgnored if type is ExternalName.\\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/\\n+optional\\n+mapType=atomic\",\n" + - " \"additionalProperties\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " },\n" + - " \"sessionAffinity\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"Supports \\\"ClientIP\\\" and \\\"None\\\". Used to maintain session affinity.\\nEnable client IP based session affinity.\\nMust be ClientIP or None.\\nDefaults to None.\\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\\n+optional\"\n" + - " },\n" + - " \"sessionAffinityConfig\": {\n" + - " \"title\": \"sessionAffinityConfig contains the configurations of session affinity.\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1SessionAffinityConfig\"\n" + - " },\n" + - " \"type\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"type determines how the Service is exposed. Defaults to ClusterIP. Valid\\noptions are ExternalName, ClusterIP, NodePort, and LoadBalancer.\\n\\\"ClusterIP\\\" allocates a cluster-internal IP address for load-balancing\\nto endpoints. Endpoints are determined by the selector or if that is not\\nspecified, by manual construction of an Endpoints object or\\nEndpointSlice objects. If clusterIP is \\\"None\\\", no virtual IP is\\nallocated and the endpoints are published as a set of endpoints rather\\nthan a virtual IP.\\n\\\"NodePort\\\" builds on ClusterIP and allocates a port on every node which\\nroutes to the same endpoints as the clusterIP.\\n\\\"LoadBalancer\\\" builds on NodePort and creates an external load-balancer\\n(if supported in the current cloud) which routes to the same endpoints\\nas the clusterIP.\\n\\\"ExternalName\\\" aliases this service to the specified externalName.\\nSeveral other fields do not apply to ExternalName services.\\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types\\n+optional\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1ServiceStatus\": {\n" + - " \"description\": \"ServiceStatus represents the current status of a service.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"conditions\": {\n" + - " \"type\": \"array\",\n" + - " \"title\": \"Current service state\\n+optional\\n+patchMergeKey=type\\n+patchStrategy=merge\\n+listType=map\\n+listMapKey=type\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/v1Condition\"\n" + - " }\n" + - " },\n" + - " \"loadBalancer\": {\n" + - " \"title\": \"LoadBalancer contains the current status of the load-balancer,\\nif one is present.\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1LoadBalancerStatus\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1SessionAffinityConfig\": {\n" + - " \"description\": \"SessionAffinityConfig represents the configurations of session affinity.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"clientIP\": {\n" + - " \"title\": \"clientIP contains the configurations of Client IP based session affinity.\\n+optional\",\n" + - " \"$ref\": \"#/definitions/v1ClientIPConfig\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1StorageMedium\": {\n" + - " \"type\": \"string\",\n" + - " \"title\": \"StorageMedium defines ways that storage can be allocated to a volume.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1StorageOSVolumeSource\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a StorageOS persistent volume resource.\",\n" + - " \"properties\": {\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is the filesystem type to mount.\\nMust be a filesystem type supported by the host operating system.\\nEx. \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"readOnly defaults to false (read/write). ReadOnly here will force\\nthe ReadOnly setting in VolumeMounts.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"secretRef\": {\n" + - " \"$ref\": \"#/definitions/v1LocalObjectReference\"\n" + - " },\n" + - " \"volumeName\": {\n" + - " \"description\": \"volumeName is the human-readable name of the StorageOS volume. Volume\\nnames are only unique within a namespace.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"VolumeName\"\n" + - " },\n" + - " \"volumeNamespace\": {\n" + - " \"description\": \"volumeNamespace specifies the scope of the volume within StorageOS. If no\\nnamespace is specified then the Pod's namespace will be used. This allows the\\nKubernetes name scoping to be mirrored within StorageOS for tighter integration.\\nSet VolumeName to any name to override the default behaviour.\\nSet to \\\"default\\\" if you are not using namespaces within StorageOS.\\nNamespaces that do not pre-exist within StorageOS will be created.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"VolumeNamespace\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Sysctl\": {\n" + - " \"description\": \"Sysctl defines a kernel parameter to be set\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"name\": {\n" + - " \"description\": \"Name of a property to set\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"value\": {\n" + - " \"description\": \"Value of a property to set\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Value\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1TCPSocketAction\": {\n" + - " \"description\": \"TCPSocketAction describes an action based on opening a socket\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"host\": {\n" + - " \"description\": \"Optional: Host name to connect to, defaults to the pod IP.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Host\"\n" + - " },\n" + - " \"port\": {\n" + - " \"$ref\": \"#/definitions/intstrIntOrString\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1TaintEffect\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1TerminationMessagePolicy\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"title\": \"TerminationMessagePolicy describes how termination messages are retrieved from a container.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Time\": {\n" + - " \"description\": \"Programs using times should typically store and pass them as values,\\nnot pointers. That is, time variables and struct fields should be of\\ntype time.Time, not *time.Time.\\n\\nA Time value can be used by multiple goroutines simultaneously except\\nthat the methods GobDecode, UnmarshalBinary, UnmarshalJSON and\\nUnmarshalText are not concurrency-safe.\\n\\nTime instants can be compared using the Before, After, and Equal methods.\\nThe Sub method subtracts two instants, producing a Duration.\\nThe Add method adds a Time and a Duration, producing a Time.\\n\\nThe zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC.\\nAs this time is unlikely to come up in practice, the IsZero method gives\\na simple way of detecting a time that has not been initialized explicitly.\\n\\nEach Time has associated with it a Location, consulted when computing the\\npresentation form of the time, such as in the Format, Hour, and Year methods.\\nThe methods Local, UTC, and In return a Time with a specific location.\\nChanging the location in this way changes only the presentation; it does not\\nchange the instant in time being denoted and therefore does not affect the\\ncomputations described in earlier paragraphs.\\n\\nRepresentations of a Time value saved by the GobEncode, MarshalBinary,\\nMarshalJSON, and MarshalText methods store the Time.Location's offset, but not\\nthe location name. They therefore lose information about Daylight Saving Time.\\n\\nIn addition to the required “wall clock” reading, a Time may contain an optional\\nreading of the current process's monotonic clock, to provide additional precision\\nfor comparison or subtraction.\\nSee the “Monotonic Clocks” section in the package documentation for details.\\n\\nNote that the Go == operator compares not just the time instant but also the\\nLocation and the monotonic clock reading. Therefore, Time values should not\\nbe used as map or database keys without first guaranteeing that the\\nidentical Location has been set for all values, which can be achieved\\nthrough use of the UTC or Local method, and that the monotonic clock reading\\nhas been stripped by setting t = t.Round(0). In general, prefer t.Equal(u)\\nto t == u, since t.Equal uses the most accurate comparison available and\\ncorrectly handles the case when only one of its arguments has a monotonic\\nclock reading.\",\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\",\n" + - " \"title\": \"A Time represents an instant in time with nanosecond precision.\",\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n" + - " },\n" + - " \"v1Toleration\": {\n" + - " \"description\": \"The pod this Toleration is attached to tolerates any taint that matches\\nthe triple \\u003ckey,value,effect\\u003e using the matching operator \\u003coperator\\u003e.\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"effect\": {\n" + - " \"$ref\": \"#/definitions/v1TaintEffect\"\n" + - " },\n" + - " \"key\": {\n" + - " \"description\": \"Key is the taint key that the toleration applies to. Empty means match all taint keys.\\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Key\"\n" + - " },\n" + - " \"operator\": {\n" + - " \"$ref\": \"#/definitions/v1TolerationOperator\"\n" + - " },\n" + - " \"tolerationSeconds\": {\n" + - " \"description\": \"TolerationSeconds represents the period of time the toleration (which must be\\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\\nit is not set, which means tolerate the taint forever (do not evict). Zero and\\nnegative values will be treated as 0 (evict immediately) by the system.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"TolerationSeconds\"\n" + - " },\n" + - " \"value\": {\n" + - " \"description\": \"Value is the taint value the toleration matches to.\\nIf the operator is Exists, the value should be empty, otherwise just a regular string.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Value\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1TolerationOperator\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"title\": \"A toleration operator is the set of operators that can be used in a toleration.\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1TopologySpreadConstraint\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"TopologySpreadConstraint specifies how to spread matching pods among the given topology.\",\n" + - " \"properties\": {\n" + - " \"labelSelector\": {\n" + - " \"$ref\": \"#/definitions/v1LabelSelector\"\n" + - " },\n" + - " \"matchLabelKeys\": {\n" + - " \"description\": \"MatchLabelKeys is a set of pod label keys to select the pods over which\\nspreading will be calculated. The keys are used to lookup values from the\\nincoming pod labels, those key-value labels are ANDed with labelSelector\\nto select the group of existing pods over which spreading will be calculated\\nfor the incoming pod. Keys that don't exist in the incoming pod labels will\\nbe ignored. A null or empty list means only match against labelSelector.\\n+listType=atomic\\n+optional\",\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"x-go-name\": \"MatchLabelKeys\"\n" + - " },\n" + - " \"maxSkew\": {\n" + - " \"description\": \"MaxSkew describes the degree to which pods may be unevenly distributed.\\nWhen `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference\\nbetween the number of matching pods in the target topology and the global minimum.\\nThe global minimum is the minimum number of matching pods in an eligible domain\\nor zero if the number of eligible domains is less than MinDomains.\\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\\nlabelSelector spread as 2/2/1:\\nIn this case, the global minimum is 1.\\n+-------+-------+-------+\\n zone1 | zone2 | zone3 |\\n+-------+-------+-------+\\n P P | P P | P |\\n+-------+-------+-------+\\nif MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;\\nscheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)\\nviolate MaxSkew(1).\\nif MaxSkew is 2, incoming pod can be scheduled onto any zone.\\nWhen `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence\\nto topologies that satisfy it.\\nIt's a required field. Default value is 1 and 0 is not allowed.\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"MaxSkew\"\n" + - " },\n" + - " \"minDomains\": {\n" + - " \"description\": \"MinDomains indicates a minimum number of eligible domains.\\nWhen the number of eligible domains with matching topology keys is less than minDomains,\\nPod Topology Spread treats \\\"global minimum\\\" as 0, and then the calculation of Skew is performed.\\nAnd when the number of eligible domains with matching topology keys equals or greater than minDomains,\\nthis value has no effect on scheduling.\\nAs a result, when the number of eligible domains is less than minDomains,\\nscheduler won't schedule more than maxSkew Pods to those domains.\\nIf value is nil, the constraint behaves as if MinDomains is equal to 1.\\nValid values are integers greater than 0.\\nWhen value is not nil, WhenUnsatisfiable must be DoNotSchedule.\\n\\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same\\nlabelSelector spread as 2/2/2:\\n+-------+-------+-------+\\n zone1 | zone2 | zone3 |\\n+-------+-------+-------+\\n P P | P P | P P |\\n+-------+-------+-------+\\nThe number of domains is less than 5(MinDomains), so \\\"global minimum\\\" is treated as 0.\\nIn this situation, new pod with the same labelSelector cannot be scheduled,\\nbecause computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,\\nit will violate MaxSkew.\\n\\nThis is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"MinDomains\"\n" + - " },\n" + - " \"nodeAffinityPolicy\": {\n" + - " \"$ref\": \"#/definitions/v1NodeInclusionPolicy\"\n" + - " },\n" + - " \"nodeTaintsPolicy\": {\n" + - " \"$ref\": \"#/definitions/v1NodeInclusionPolicy\"\n" + - " },\n" + - " \"topologyKey\": {\n" + - " \"description\": \"TopologyKey is the key of node labels. Nodes that have a label with this key\\nand identical values are considered to be in the same topology.\\nWe consider each \\u003ckey, value\\u003e as a \\\"bucket\\\", and try to put balanced number\\nof pods into each bucket.\\nWe define a domain as a particular instance of a topology.\\nAlso, we define an eligible domain as a domain whose nodes meet the requirements of\\nnodeAffinityPolicy and nodeTaintsPolicy.\\ne.g. If TopologyKey is \\\"kubernetes.io/hostname\\\", each Node is a domain of that topology.\\nAnd, if TopologyKey is \\\"topology.kubernetes.io/zone\\\", each zone is a domain of that topology.\\nIt's a required field.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"TopologyKey\"\n" + - " },\n" + - " \"whenUnsatisfiable\": {\n" + - " \"$ref\": \"#/definitions/v1UnsatisfiableConstraintAction\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1TypedLocalObjectReference\": {\n" + - " \"description\": \"TypedLocalObjectReference contains enough information to let you locate the\\ntyped referenced object inside the same namespace.\\n+structType=atomic\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"apiGroup\": {\n" + - " \"description\": \"APIGroup is the group for the resource being referenced.\\nIf APIGroup is not specified, the specified Kind must be in the core API group.\\nFor any other third-party types, APIGroup is required.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"APIGroup\"\n" + - " },\n" + - " \"kind\": {\n" + - " \"description\": \"Kind is the type of resource being referenced\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Kind\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name is the name of resource being referenced\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1TypedObjectReference\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"apiGroup\": {\n" + - " \"description\": \"APIGroup is the group for the resource being referenced.\\nIf APIGroup is not specified, the specified Kind must be in the core API group.\\nFor any other third-party types, APIGroup is required.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"APIGroup\"\n" + - " },\n" + - " \"kind\": {\n" + - " \"description\": \"Kind is the type of resource being referenced\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Kind\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"Name is the name of resource being referenced\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"namespace\": {\n" + - " \"description\": \"Namespace is the namespace of resource being referenced\\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\\n+featureGate=CrossNamespaceVolumeDataSource\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Namespace\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1URIScheme\": {\n" + - " \"description\": \"URIScheme identifies the scheme used for connection to a host for Get actions\\n+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1UnsatisfiableConstraintAction\": {\n" + - " \"description\": \"+enum\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Volume\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Volume represents a named volume in a pod that may be accessed by any container in the pod.\",\n" + - " \"properties\": {\n" + - " \"awsElasticBlockStore\": {\n" + - " \"$ref\": \"#/definitions/v1AWSElasticBlockStoreVolumeSource\"\n" + - " },\n" + - " \"azureDisk\": {\n" + - " \"$ref\": \"#/definitions/v1AzureDiskVolumeSource\"\n" + - " },\n" + - " \"azureFile\": {\n" + - " \"$ref\": \"#/definitions/v1AzureFileVolumeSource\"\n" + - " },\n" + - " \"cephfs\": {\n" + - " \"$ref\": \"#/definitions/v1CephFSVolumeSource\"\n" + - " },\n" + - " \"cinder\": {\n" + - " \"$ref\": \"#/definitions/v1CinderVolumeSource\"\n" + - " },\n" + - " \"configMap\": {\n" + - " \"$ref\": \"#/definitions/v1ConfigMapVolumeSource\"\n" + - " },\n" + - " \"csi\": {\n" + - " \"$ref\": \"#/definitions/v1CSIVolumeSource\"\n" + - " },\n" + - " \"downwardAPI\": {\n" + - " \"$ref\": \"#/definitions/v1DownwardAPIVolumeSource\"\n" + - " },\n" + - " \"emptyDir\": {\n" + - " \"$ref\": \"#/definitions/v1EmptyDirVolumeSource\"\n" + - " },\n" + - " \"ephemeral\": {\n" + - " \"$ref\": \"#/definitions/v1EphemeralVolumeSource\"\n" + - " },\n" + - " \"fc\": {\n" + - " \"$ref\": \"#/definitions/v1FCVolumeSource\"\n" + - " },\n" + - " \"flexVolume\": {\n" + - " \"$ref\": \"#/definitions/v1FlexVolumeSource\"\n" + - " },\n" + - " \"flocker\": {\n" + - " \"$ref\": \"#/definitions/v1FlockerVolumeSource\"\n" + - " },\n" + - " \"gcePersistentDisk\": {\n" + - " \"$ref\": \"#/definitions/v1GCEPersistentDiskVolumeSource\"\n" + - " },\n" + - " \"gitRepo\": {\n" + - " \"$ref\": \"#/definitions/v1GitRepoVolumeSource\"\n" + - " },\n" + - " \"glusterfs\": {\n" + - " \"$ref\": \"#/definitions/v1GlusterfsVolumeSource\"\n" + - " },\n" + - " \"hostPath\": {\n" + - " \"$ref\": \"#/definitions/v1HostPathVolumeSource\"\n" + - " },\n" + - " \"iscsi\": {\n" + - " \"$ref\": \"#/definitions/v1ISCSIVolumeSource\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"name of the volume.\\nMust be a DNS_LABEL and unique within the pod.\\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"nfs\": {\n" + - " \"$ref\": \"#/definitions/v1NFSVolumeSource\"\n" + - " },\n" + - " \"persistentVolumeClaim\": {\n" + - " \"$ref\": \"#/definitions/v1PersistentVolumeClaimVolumeSource\"\n" + - " },\n" + - " \"photonPersistentDisk\": {\n" + - " \"$ref\": \"#/definitions/v1PhotonPersistentDiskVolumeSource\"\n" + - " },\n" + - " \"portworxVolume\": {\n" + - " \"$ref\": \"#/definitions/v1PortworxVolumeSource\"\n" + - " },\n" + - " \"projected\": {\n" + - " \"$ref\": \"#/definitions/v1ProjectedVolumeSource\"\n" + - " },\n" + - " \"quobyte\": {\n" + - " \"$ref\": \"#/definitions/v1QuobyteVolumeSource\"\n" + - " },\n" + - " \"rbd\": {\n" + - " \"$ref\": \"#/definitions/v1RBDVolumeSource\"\n" + - " },\n" + - " \"scaleIO\": {\n" + - " \"$ref\": \"#/definitions/v1ScaleIOVolumeSource\"\n" + - " },\n" + - " \"secret\": {\n" + - " \"$ref\": \"#/definitions/v1SecretVolumeSource\"\n" + - " },\n" + - " \"storageos\": {\n" + - " \"$ref\": \"#/definitions/v1StorageOSVolumeSource\"\n" + - " },\n" + - " \"vsphereVolume\": {\n" + - " \"$ref\": \"#/definitions/v1VsphereVirtualDiskVolumeSource\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1VolumeDevice\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"volumeDevice describes a mapping of a raw block device within a container.\",\n" + - " \"properties\": {\n" + - " \"devicePath\": {\n" + - " \"description\": \"devicePath is the path inside of the container that the device will be mapped to.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"DevicePath\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"name must match the name of a persistentVolumeClaim in the pod\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1VolumeMount\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"VolumeMount describes a mounting of a Volume within a container.\",\n" + - " \"properties\": {\n" + - " \"mountPath\": {\n" + - " \"description\": \"Path within the container at which the volume should be mounted. Must\\nnot contain ':'.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"MountPath\"\n" + - " },\n" + - " \"mountPropagation\": {\n" + - " \"$ref\": \"#/definitions/v1MountPropagationMode\"\n" + - " },\n" + - " \"name\": {\n" + - " \"description\": \"This must match the Name of a Volume.\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Name\"\n" + - " },\n" + - " \"readOnly\": {\n" + - " \"description\": \"Mounted read-only if true, read-write otherwise (false or unspecified).\\nDefaults to false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"ReadOnly\"\n" + - " },\n" + - " \"subPath\": {\n" + - " \"description\": \"Path within the volume from which the container's volume should be mounted.\\nDefaults to \\\"\\\" (volume's root).\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"SubPath\"\n" + - " },\n" + - " \"subPathExpr\": {\n" + - " \"description\": \"Expanded path within the volume from which the container's volume should be mounted.\\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\\nDefaults to \\\"\\\" (volume's root).\\nSubPathExpr and SubPath are mutually exclusive.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"SubPathExpr\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1VolumeProjection\": {\n" + - " \"description\": \"Projection that may be projected along with other supported volume types\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"configMap\": {\n" + - " \"$ref\": \"#/definitions/v1ConfigMapProjection\"\n" + - " },\n" + - " \"downwardAPI\": {\n" + - " \"$ref\": \"#/definitions/v1DownwardAPIProjection\"\n" + - " },\n" + - " \"secret\": {\n" + - " \"$ref\": \"#/definitions/v1SecretProjection\"\n" + - " },\n" + - " \"serviceAccountToken\": {\n" + - " \"$ref\": \"#/definitions/v1ServiceAccountTokenProjection\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1VsphereVirtualDiskVolumeSource\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"Represents a vSphere volume resource.\",\n" + - " \"properties\": {\n" + - " \"fsType\": {\n" + - " \"description\": \"fsType is filesystem type to mount.\\nMust be a filesystem type supported by the host operating system.\\nEx. \\\"ext4\\\", \\\"xfs\\\", \\\"ntfs\\\". Implicitly inferred to be \\\"ext4\\\" if unspecified.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"FSType\"\n" + - " },\n" + - " \"storagePolicyID\": {\n" + - " \"description\": \"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"StoragePolicyID\"\n" + - " },\n" + - " \"storagePolicyName\": {\n" + - " \"description\": \"storagePolicyName is the storage Policy Based Management (SPBM) profile name.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"StoragePolicyName\"\n" + - " },\n" + - " \"volumePath\": {\n" + - " \"description\": \"volumePath is the path that identifies vSphere volume vmdk\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"VolumePath\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1WeightedPodAffinityTerm\": {\n" + - " \"description\": \"The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)\",\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"podAffinityTerm\": {\n" + - " \"$ref\": \"#/definitions/v1PodAffinityTerm\"\n" + - " },\n" + - " \"weight\": {\n" + - " \"description\": \"weight associated with matching the corresponding podAffinityTerm,\\nin the range 1-100.\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\",\n" + - " \"x-go-name\": \"Weight\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1WindowsSecurityContextOptions\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"WindowsSecurityContextOptions contain Windows-specific options and credentials.\",\n" + - " \"properties\": {\n" + - " \"gmsaCredentialSpec\": {\n" + - " \"description\": \"GMSACredentialSpec is where the GMSA admission webhook\\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\\nGMSA credential spec named by the GMSACredentialSpecName field.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"GMSACredentialSpec\"\n" + - " },\n" + - " \"gmsaCredentialSpecName\": {\n" + - " \"description\": \"GMSACredentialSpecName is the name of the GMSA credential spec to use.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"GMSACredentialSpecName\"\n" + - " },\n" + - " \"hostProcess\": {\n" + - " \"description\": \"HostProcess determines if a container should be run as a 'Host Process' container.\\nThis field is alpha-level and will only be honored by components that enable the\\nWindowsHostProcessContainers feature flag. Setting this field without the feature\\nflag will result in errors when validating the Pod. All of a Pod's containers must\\nhave the same effective HostProcess value (it is not allowed to have a mix of HostProcess\\ncontainers and non-HostProcess containers). In addition, if HostProcess is true\\nthen HostNetwork must also be set to true.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"HostProcess\"\n" + - " },\n" + - " \"runAsUserName\": {\n" + - " \"description\": \"The UserName in Windows to run the entrypoint of the container process.\\nDefaults to the user specified in image metadata if unspecified.\\nMay also be set in PodSecurityContext. If set in both SecurityContext and\\nPodSecurityContext, the value specified in SecurityContext takes precedence.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"RunAsUserName\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " }\n" + - " }\n" + - "}" - return tmpl -} diff --git a/pkg/api/api.swagger.json b/pkg/api/api.swagger.json deleted file mode 100644 index f5091b05734..00000000000 --- a/pkg/api/api.swagger.json +++ /dev/null @@ -1,5854 +0,0 @@ -{ - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "swagger": "2.0", - "info": { - "title": "pkg/api/event.proto", - "version": "version not set" - }, - "paths": { - "/v1/batched/create_queues": { - "post": { - "tags": [ - "Submit" - ], - "operationId": "CreateQueues", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiQueueList" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/apiBatchQueueCreateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/batched/queues": { - "get": { - "tags": [ - "Submit" - ], - "operationId": "GetQueues", - "parameters": [ - { - "type": "integer", - "format": "int64", - "name": "num", - "in": "query" - } - ], - "responses": { - "200": { - "description": "A successful response.(streaming responses)", - "schema": { - "type": "object", - "title": "Stream result of apiStreamingQueueMessage", - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/apiStreamingQueueMessage" - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/batched/update_queues": { - "put": { - "tags": [ - "Submit" - ], - "operationId": "UpdateQueues", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiQueueList" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/apiBatchQueueUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/job-set/{queue}/{id}": { - "post": { - "produces": [ - "application/ndjson-stream" - ], - "tags": [ - "Event" - ], - "operationId": "GetJobSetEvents", - "parameters": [ - { - "type": "string", - "name": "queue", - "in": "path", - "required": true - }, - { - "type": "string", - "name": "id", - "in": "path", - "required": true - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiJobSetRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.(streaming responses)", - "schema": { - "type": "file", - "title": "Stream result of apiEventStreamMessage", - "properties": { - "error": { - "$ref": "#/definitions/runtimeStreamError" - }, - "result": { - "$ref": "#/definitions/apiEventStreamMessage" - } - } - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/job/cancel": { - "post": { - "tags": [ - "Submit" - ], - "operationId": "CancelJobs", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiJobCancelRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/apiCancellationResult" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/job/details": { - "post": { - "tags": [ - "Jobs" - ], - "operationId": "GetJobDetails", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiJobDetailsRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/apiJobDetailsResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/job/preempt": { - "post": { - "tags": [ - "Submit" - ], - "operationId": "PreemptJobs", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiJobPreemptRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/job/reprioritize": { - "post": { - "tags": [ - "Submit" - ], - "operationId": "ReprioritizeJobs", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiJobReprioritizeRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/apiJobReprioritizeResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/job/status": { - "post": { - "tags": [ - "Jobs" - ], - "operationId": "GetJobStatus", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiJobStatusRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/apiJobStatusResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/job/submit": { - "post": { - "tags": [ - "Submit" - ], - "operationId": "SubmitJobs", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiJobSubmitRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/apiJobSubmitResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/jobset/cancel": { - "post": { - "tags": [ - "Submit" - ], - "operationId": "CancelJobSet", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiJobSetCancelRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/queue": { - "post": { - "tags": [ - "Submit" - ], - "operationId": "CreateQueue", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiQueue" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/queue/{name}": { - "get": { - "tags": [ - "Submit" - ], - "operationId": "GetQueue", - "parameters": [ - { - "type": "string", - "name": "name", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/apiQueue" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - }, - "put": { - "tags": [ - "Submit" - ], - "operationId": "UpdateQueue", - "parameters": [ - { - "type": "string", - "name": "name", - "in": "path", - "required": true - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiQueue" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - }, - "delete": { - "tags": [ - "Submit" - ], - "operationId": "DeleteQueue", - "parameters": [ - { - "type": "string", - "name": "name", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/run/details": { - "post": { - "tags": [ - "Jobs" - ], - "operationId": "GetJobRunDetails", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/apiJobRunDetailsRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/apiJobRunDetailsResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - } - }, - "definitions": { - "PermissionsSubject": { - "type": "object", - "properties": { - "kind": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "QueuePermissions": { - "type": "object", - "properties": { - "subjects": { - "type": "array", - "items": { - "$ref": "#/definitions/PermissionsSubject" - } - }, - "verbs": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "apiBatchQueueCreateResponse": { - "type": "object", - "properties": { - "failedQueues": { - "type": "array", - "items": { - "$ref": "#/definitions/apiQueueCreateResponse" - } - } - } - }, - "apiBatchQueueUpdateResponse": { - "type": "object", - "properties": { - "failedQueues": { - "type": "array", - "items": { - "$ref": "#/definitions/apiQueueUpdateResponse" - } - } - } - }, - "apiCancellationResult": { - "type": "object", - "title": "swagger:model", - "properties": { - "cancelledIds": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "apiCause": { - "type": "string", - "default": "Error", - "enum": [ - "Error", - "Evicted", - "OOM", - "DeadlineExceeded", - "Rejected" - ] - }, - "apiContainerStatus": { - "type": "object", - "properties": { - "cause": { - "$ref": "#/definitions/apiCause" - }, - "exitCode": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - }, - "name": { - "type": "string" - }, - "reason": { - "type": "string" - } - } - }, - "apiEndMarker": { - "type": "object", - "title": "Indicates the end of streams" - }, - "apiEventMessage": { - "type": "object", - "properties": { - "cancelled": { - "$ref": "#/definitions/apiJobCancelledEvent" - }, - "cancelling": { - "$ref": "#/definitions/apiJobCancellingEvent" - }, - "failed": { - "$ref": "#/definitions/apiJobFailedEvent" - }, - "ingressInfo": { - "$ref": "#/definitions/apiJobIngressInfoEvent" - }, - "leaseExpired": { - "$ref": "#/definitions/apiJobLeaseExpiredEvent" - }, - "leaseReturned": { - "$ref": "#/definitions/apiJobLeaseReturnedEvent" - }, - "leased": { - "$ref": "#/definitions/apiJobLeasedEvent" - }, - "pending": { - "$ref": "#/definitions/apiJobPendingEvent" - }, - "preempted": { - "$ref": "#/definitions/apiJobPreemptedEvent" - }, - "preempting": { - "$ref": "#/definitions/apiJobPreemptingEvent" - }, - "queued": { - "$ref": "#/definitions/apiJobQueuedEvent" - }, - "reprioritized": { - "$ref": "#/definitions/apiJobReprioritizedEvent" - }, - "reprioritizing": { - "$ref": "#/definitions/apiJobReprioritizingEvent" - }, - "running": { - "$ref": "#/definitions/apiJobRunningEvent" - }, - "submitted": { - "$ref": "#/definitions/apiJobSubmittedEvent" - }, - "succeeded": { - "$ref": "#/definitions/apiJobSucceededEvent" - }, - "terminated": { - "$ref": "#/definitions/apiJobTerminatedEvent" - }, - "unableToSchedule": { - "$ref": "#/definitions/apiJobUnableToScheduleEvent" - }, - "utilisation": { - "$ref": "#/definitions/apiJobUtilisationEvent" - } - } - }, - "apiEventStreamMessage": { - "type": "object", - "title": "swagger:model", - "properties": { - "id": { - "type": "string" - }, - "message": { - "$ref": "#/definitions/apiEventMessage" - } - } - }, - "apiIngressConfig": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "certName": { - "type": "string" - }, - "ports": { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - } - }, - "tlsEnabled": { - "type": "boolean" - }, - "type": { - "$ref": "#/definitions/apiIngressType" - }, - "useClusterIP": { - "type": "boolean" - } - } - }, - "apiIngressType": { - "description": "Ingress type is being kept here to maintain backwards compatibility for a while.", - "type": "string", - "default": "Ingress", - "enum": [ - "Ingress" - ] - }, - "apiJob": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "clientId": { - "type": "string" - }, - "compressedQueueOwnershipUserGroups": { - "type": "string", - "format": "byte" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "id": { - "type": "string" - }, - "ingress": { - "description": "Services can be provided either as Armada-specific config objects or as proper k8s objects.\nThese options are exclusive, i.e., if either ingress or services is provided,\nthen neither of k8s_ingress or k8s_service can be provided, and vice versa.", - "type": "array", - "items": { - "$ref": "#/definitions/apiIngressConfig" - } - }, - "jobSetId": { - "type": "string" - }, - "k8sIngress": { - "type": "array", - "items": { - "$ref": "#/definitions/v1Ingress" - } - }, - "k8sService": { - "type": "array", - "items": { - "$ref": "#/definitions/v1Service" - } - }, - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "namespace": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "podSpec": { - "$ref": "#/definitions/v1PodSpec" - }, - "podSpecs": { - "type": "array", - "items": { - "$ref": "#/definitions/v1PodSpec" - } - }, - "priority": { - "type": "number", - "format": "double" - }, - "queue": { - "type": "string" - }, - "queueOwnershipUserGroups": { - "type": "array", - "items": { - "type": "string" - } - }, - "queueTtlSeconds": { - "description": "Queuing TTL for this job in seconds. If this job queues for more than this duration it will be cancelled. Zero indicates an infinite lifetime.", - "type": "string", - "format": "int64" - }, - "requiredNodeLabels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "scheduler": { - "description": "Indicates which scheduler should manage this job.\nIf empty, the default scheduler is used.", - "type": "string" - }, - "schedulingResourceRequirements": { - "description": "max(\n\n\tsum across all containers,\n\tmax over all init containers,\n\n)\n\nThis is because containers run in parallel, whereas initContainers run serially.\nThis field is populated automatically at submission.\nSubmitting a job with this field already populated results in an error.", - "title": "Resource requests and limits necessary for scheduling the main pod of this job.\nThe requests and limits herein are set to:", - "$ref": "#/definitions/v1ResourceRequirements" - }, - "services": { - "type": "array", - "items": { - "$ref": "#/definitions/apiServiceConfig" - } - } - } - }, - "apiJobCancelRequest": { - "type": "object", - "title": "swagger:model", - "properties": { - "jobId": { - "type": "string" - }, - "jobIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - }, - "reason": { - "type": "string" - } - } - }, - "apiJobCancelledEvent": { - "type": "object", - "properties": { - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "requestor": { - "type": "string" - } - } - }, - "apiJobCancellingEvent": { - "type": "object", - "properties": { - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "requestor": { - "type": "string" - } - } - }, - "apiJobDetails": { - "type": "object", - "properties": { - "cancelReason": { - "type": "string" - }, - "cancelTs": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobRuns": { - "type": "array", - "items": { - "$ref": "#/definitions/apiJobRunDetails" - } - }, - "jobSpec": { - "$ref": "#/definitions/apiJob" - }, - "jobset": { - "type": "string" - }, - "lastTransitionTs": { - "type": "string", - "format": "date-time" - }, - "latestRunId": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "queue": { - "type": "string" - }, - "state": { - "$ref": "#/definitions/apiJobState" - }, - "submittedTs": { - "type": "string", - "format": "date-time" - } - } - }, - "apiJobDetailsRequest": { - "type": "object", - "properties": { - "expandJobRun": { - "type": "boolean" - }, - "expandJobSpec": { - "type": "boolean" - }, - "jobIds": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "apiJobDetailsResponse": { - "type": "object", - "properties": { - "jobDetails": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/apiJobDetails" - } - } - } - }, - "apiJobFailedEvent": { - "type": "object", - "properties": { - "cause": { - "$ref": "#/definitions/apiCause" - }, - "clusterId": { - "type": "string" - }, - "containerStatuses": { - "type": "array", - "items": { - "$ref": "#/definitions/apiContainerStatus" - } - }, - "created": { - "type": "string", - "format": "date-time" - }, - "exitCodes": { - "type": "object", - "additionalProperties": { - "type": "integer", - "format": "int32" - } - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "kubernetesId": { - "type": "string" - }, - "nodeName": { - "type": "string" - }, - "podName": { - "type": "string" - }, - "podNamespace": { - "type": "string" - }, - "podNumber": { - "type": "integer", - "format": "int32" - }, - "queue": { - "type": "string" - }, - "reason": { - "type": "string" - } - } - }, - "apiJobIngressInfoEvent": { - "type": "object", - "properties": { - "clusterId": { - "type": "string" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "ingressAddresses": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "kubernetesId": { - "type": "string" - }, - "nodeName": { - "type": "string" - }, - "podName": { - "type": "string" - }, - "podNamespace": { - "type": "string" - }, - "podNumber": { - "type": "integer", - "format": "int32" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobLeaseExpiredEvent": { - "type": "object", - "properties": { - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobLeaseReturnedEvent": { - "type": "object", - "properties": { - "clusterId": { - "type": "string" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "kubernetesId": { - "type": "string" - }, - "podNumber": { - "type": "integer", - "format": "int32" - }, - "queue": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "runAttempted": { - "type": "boolean" - } - } - }, - "apiJobLeasedEvent": { - "type": "object", - "properties": { - "clusterId": { - "type": "string" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobPendingEvent": { - "type": "object", - "properties": { - "clusterId": { - "type": "string" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "kubernetesId": { - "type": "string" - }, - "podName": { - "type": "string" - }, - "podNamespace": { - "type": "string" - }, - "podNumber": { - "type": "integer", - "format": "int32" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobPreemptRequest": { - "type": "object", - "title": "swagger:model", - "properties": { - "jobIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobPreemptedEvent": { - "type": "object", - "properties": { - "clusterId": { - "type": "string" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "preemptiveJobId": { - "type": "string" - }, - "preemptiveRunId": { - "type": "string" - }, - "queue": { - "type": "string" - }, - "runId": { - "type": "string" - } - } - }, - "apiJobPreemptingEvent": { - "type": "object", - "properties": { - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - }, - "requestor": { - "type": "string" - } - } - }, - "apiJobQueuedEvent": { - "type": "object", - "properties": { - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobReprioritizeRequest": { - "type": "object", - "title": "swagger:model", - "properties": { - "jobIds": { - "type": "array", - "items": { - "type": "string" - } - }, - "jobSetId": { - "type": "string" - }, - "newPriority": { - "type": "number", - "format": "double" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobReprioritizeResponse": { - "type": "object", - "title": "swagger:model", - "properties": { - "reprioritizationResults": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "apiJobReprioritizedEvent": { - "type": "object", - "properties": { - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "newPriority": { - "type": "number", - "format": "double" - }, - "queue": { - "type": "string" - }, - "requestor": { - "type": "string" - } - } - }, - "apiJobReprioritizingEvent": { - "type": "object", - "properties": { - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "newPriority": { - "type": "number", - "format": "double" - }, - "queue": { - "type": "string" - }, - "requestor": { - "type": "string" - } - } - }, - "apiJobRunDetails": { - "type": "object", - "properties": { - "cluster": { - "type": "string" - }, - "finishedTs": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "leasedTs": { - "type": "string", - "format": "date-time" - }, - "node": { - "type": "string" - }, - "pendingTs": { - "type": "string", - "format": "date-time" - }, - "runId": { - "type": "string" - }, - "startedTs": { - "type": "string", - "format": "date-time" - }, - "state": { - "$ref": "#/definitions/apiJobRunState" - } - } - }, - "apiJobRunDetailsRequest": { - "type": "object", - "properties": { - "runIds": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "apiJobRunDetailsResponse": { - "type": "object", - "properties": { - "jobRunDetails": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/apiJobRunDetails" - } - } - } - }, - "apiJobRunState": { - "type": "string", - "default": "RUN_STATE_UNKNOWN", - "enum": [ - "RUN_STATE_UNKNOWN", - "RUN_STATE_LEASED", - "RUN_STATE_PENDING", - "RUN_STATE_RUNNING", - "RUN_STATE_SUCCEEDED", - "RUN_STATE_FAILED", - "RUN_STATE_PREEMPTED", - "RUN_STATE_CANCELLED", - "RUN_STATE_LEASE_EXPIRED", - "RUNS_STATE_LEASE_RETURNED" - ] - }, - "apiJobRunningEvent": { - "type": "object", - "properties": { - "clusterId": { - "type": "string" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "kubernetesId": { - "type": "string" - }, - "nodeName": { - "type": "string" - }, - "podName": { - "type": "string" - }, - "podNamespace": { - "type": "string" - }, - "podNumber": { - "type": "integer", - "format": "int32" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobSetCancelRequest": { - "type": "object", - "title": "swagger:model", - "properties": { - "filter": { - "$ref": "#/definitions/apiJobSetFilter" - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - }, - "reason": { - "type": "string" - } - } - }, - "apiJobSetFilter": { - "type": "object", - "title": "swagger:model", - "properties": { - "states": { - "type": "array", - "items": { - "$ref": "#/definitions/apiJobState" - } - } - } - }, - "apiJobSetRequest": { - "type": "object", - "title": "swagger:model", - "properties": { - "errorIfMissing": { - "type": "boolean" - }, - "fromMessageId": { - "type": "string" - }, - "id": { - "type": "string" - }, - "queue": { - "type": "string" - }, - "watch": { - "type": "boolean" - } - } - }, - "apiJobState": { - "type": "string", - "title": "swagger:model", - "default": "QUEUED", - "enum": [ - "QUEUED", - "PENDING", - "RUNNING", - "SUCCEEDED", - "FAILED", - "UNKNOWN", - "SUBMITTED", - "LEASED", - "PREEMPTED", - "CANCELLED", - "REJECTED" - ] - }, - "apiJobStatusRequest": { - "type": "object", - "properties": { - "jobIds": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "apiJobStatusResponse": { - "type": "object", - "properties": { - "jobStates": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/apiJobState" - } - } - } - }, - "apiJobSubmitRequest": { - "type": "object", - "title": "swagger:model", - "properties": { - "jobRequestItems": { - "type": "array", - "items": { - "$ref": "#/definitions/apiJobSubmitRequestItem" - } - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobSubmitRequestItem": { - "type": "object", - "properties": { - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "clientId": { - "type": "string" - }, - "ingress": { - "type": "array", - "items": { - "$ref": "#/definitions/apiIngressConfig" - } - }, - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "namespace": { - "type": "string" - }, - "podSpec": { - "$ref": "#/definitions/v1PodSpec" - }, - "podSpecs": { - "type": "array", - "items": { - "$ref": "#/definitions/v1PodSpec" - } - }, - "priority": { - "type": "number", - "format": "double" - }, - "requiredNodeLabels": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "scheduler": { - "description": "Indicates which scheduler should manage this job.\nIf empty, the default scheduler is used.", - "type": "string" - }, - "services": { - "type": "array", - "items": { - "$ref": "#/definitions/apiServiceConfig" - } - } - } - }, - "apiJobSubmitResponse": { - "type": "object", - "title": "swagger:model", - "properties": { - "jobResponseItems": { - "type": "array", - "items": { - "$ref": "#/definitions/apiJobSubmitResponseItem" - } - } - } - }, - "apiJobSubmitResponseItem": { - "type": "object", - "properties": { - "error": { - "type": "string" - }, - "jobId": { - "type": "string" - } - } - }, - "apiJobSubmittedEvent": { - "type": "object", - "properties": { - "created": { - "type": "string", - "format": "date-time" - }, - "job": { - "$ref": "#/definitions/apiJob" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobSucceededEvent": { - "type": "object", - "properties": { - "clusterId": { - "type": "string" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "kubernetesId": { - "type": "string" - }, - "nodeName": { - "type": "string" - }, - "podName": { - "type": "string" - }, - "podNamespace": { - "type": "string" - }, - "podNumber": { - "type": "integer", - "format": "int32" - }, - "queue": { - "type": "string" - } - } - }, - "apiJobTerminatedEvent": { - "type": "object", - "properties": { - "clusterId": { - "type": "string" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "kubernetesId": { - "type": "string" - }, - "podName": { - "type": "string" - }, - "podNamespace": { - "type": "string" - }, - "podNumber": { - "type": "integer", - "format": "int32" - }, - "queue": { - "type": "string" - }, - "reason": { - "type": "string" - } - } - }, - "apiJobUnableToScheduleEvent": { - "type": "object", - "properties": { - "clusterId": { - "type": "string" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "kubernetesId": { - "type": "string" - }, - "nodeName": { - "type": "string" - }, - "podName": { - "type": "string" - }, - "podNamespace": { - "type": "string" - }, - "podNumber": { - "type": "integer", - "format": "int32" - }, - "queue": { - "type": "string" - }, - "reason": { - "type": "string" - } - } - }, - "apiJobUtilisationEvent": { - "type": "object", - "properties": { - "MaxResourcesForPeriod": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resourceQuantity" - } - }, - "clusterId": { - "type": "string" - }, - "created": { - "type": "string", - "format": "date-time" - }, - "jobId": { - "type": "string" - }, - "jobSetId": { - "type": "string" - }, - "kubernetesId": { - "type": "string" - }, - "nodeName": { - "type": "string" - }, - "podName": { - "type": "string" - }, - "podNamespace": { - "type": "string" - }, - "podNumber": { - "type": "integer", - "format": "int32" - }, - "queue": { - "type": "string" - }, - "totalCumulativeUsage": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/resourceQuantity" - } - } - } - }, - "apiPriorityClassPoolResourceLimits": { - "type": "object", - "properties": { - "maximumResourceFraction": { - "type": "object", - "additionalProperties": { - "type": "number", - "format": "double" - } - } - } - }, - "apiPriorityClassResourceLimits": { - "type": "object", - "properties": { - "maximumResourceFraction": { - "description": "Limits resources assigned to jobs of this priority class.\nSpecifically, jobs of this priority class are only scheduled if doing so does not exceed this limit.", - "type": "object", - "additionalProperties": { - "type": "number", - "format": "double" - } - }, - "maximumResourceFractionByPool": { - "description": "Per-pool override of maximum_resource_fraction.\nIf missing for a particular pool, maximum_resource_fraction is used instead for that pool.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/apiPriorityClassPoolResourceLimits" - } - } - } - }, - "apiQueue": { - "type": "object", - "title": "swagger:model", - "properties": { - "groupOwners": { - "type": "array", - "items": { - "type": "string" - } - }, - "name": { - "type": "string" - }, - "permissions": { - "type": "array", - "items": { - "$ref": "#/definitions/QueuePermissions" - } - }, - "priorityFactor": { - "type": "number", - "format": "double" - }, - "resourceLimits": { - "type": "object", - "title": "These are ignored and should be removed", - "additionalProperties": { - "type": "number", - "format": "double" - } - }, - "resourceLimitsByPriorityClassName": { - "description": "Map from priority class name to resource limit overrides for this queue and priority class.\nIf provided for a priority class, global limits for that priority class do not apply to this queue.", - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/apiPriorityClassResourceLimits" - } - }, - "userOwners": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "apiQueueCreateResponse": { - "type": "object", - "properties": { - "error": { - "type": "string" - }, - "queue": { - "$ref": "#/definitions/apiQueue" - } - } - }, - "apiQueueList": { - "type": "object", - "title": "swagger:model", - "properties": { - "queues": { - "type": "array", - "items": { - "$ref": "#/definitions/apiQueue" - } - } - } - }, - "apiQueueUpdateResponse": { - "type": "object", - "properties": { - "error": { - "type": "string" - }, - "queue": { - "$ref": "#/definitions/apiQueue" - } - } - }, - "apiServiceConfig": { - "type": "object", - "properties": { - "ports": { - "type": "array", - "items": { - "type": "integer", - "format": "int64" - } - }, - "type": { - "$ref": "#/definitions/apiServiceType" - } - } - }, - "apiServiceType": { - "type": "string", - "default": "NodePort", - "enum": [ - "NodePort", - "Headless" - ] - }, - "apiStreamingQueueMessage": { - "type": "object", - "properties": { - "end": { - "$ref": "#/definitions/apiEndMarker" - }, - "queue": { - "$ref": "#/definitions/apiQueue" - } - } - }, - "intstrIntOrString": { - "description": "+protobuf=true\n+protobuf.options.(gogoproto.goproto_stringer)=false\n+k8s:openapi-gen=true", - "type": "object", - "title": "IntOrString is a type that can hold an int32 or a string. When used in\nJSON or YAML marshalling and unmarshalling, it produces or consumes the\ninner type. This allows you to have, for example, a JSON field that can\naccept a name or number.\nTODO: Rename to Int32OrString", - "properties": { - "IntVal": { - "type": "integer", - "format": "int32" - }, - "StrVal": { - "type": "string" - }, - "Type": { - "$ref": "#/definitions/intstrType" - } - }, - "x-go-package": "k8s.io/apimachinery/pkg/util/intstr" - }, - "intstrType": { - "type": "integer", - "format": "int64", - "title": "Type represents the stored type of IntOrString.", - "x-go-package": "k8s.io/apimachinery/pkg/util/intstr" - }, - "protobufAny": { - "type": "object", - "properties": { - "typeUrl": { - "type": "string" - }, - "value": { - "type": "string", - "format": "byte" - } - } - }, - "resourceQuantity": { - "description": "The serialization format is:\n\n```\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n\n(Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\n\u003cdigit\u003e ::= 0 | 1 | ... | 9\n\u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e\n\u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e\n\u003csign\u003e ::= \"+\" | \"-\"\n\u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e\n\u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e\n\u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n\n(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n```\n\nNo matter which of the three exponent forms is used, no quantity may represent\na number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\nplaces. Numbers larger or more precise will be capped or rounded up.\n(E.g.: 0.1m will rounded up to 1m.)\nThis may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix\nit had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\".\nThis means that Exponent/suffix will be adjusted up or down (with a\ncorresponding increase or decrease in Mantissa) such that:\n\nNo precision is lost\nNo fractional digits will be emitted\nThe exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n1.5 will be serialized as \"1500m\"\n1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a\nfloating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed,\nbut will be re-emitted in their canonical form. (So always use canonical\nform, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without\nwriting some sort of special handling code in the hopes that that will\ncause implementors to also use a fixed point implementation.\n\n+protobuf=true\n+protobuf.embed=string\n+protobuf.options.marshal=false\n+protobuf.options.(gogoproto.goproto_stringer)=false\n+k8s:deepcopy-gen=true\n+k8s:openapi-gen=true", - "type": "string", - "title": "Quantity is a fixed-point representation of a number.\nIt provides convenient marshaling/unmarshaling in JSON and YAML,\nin addition to String() and AsInt64() accessors.", - "x-go-package": "k8s.io/apimachinery/pkg/api/resource" - }, - "runtimeError": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufAny" - } - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "runtimeStreamError": { - "type": "object", - "properties": { - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufAny" - } - }, - "grpcCode": { - "type": "integer", - "format": "int32" - }, - "httpCode": { - "type": "integer", - "format": "int32" - }, - "httpStatus": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "typesUID": { - "description": "UID is a type that holds unique ID values, including UUIDs. Because we\ndon't ONLY use UUIDs, this is an alias to string. Being a type captures\nintent and helps make sure that UIDs and names do not get conflated.", - "type": "string", - "x-go-package": "k8s.io/apimachinery/pkg/types" - }, - "v1AWSElasticBlockStoreVolumeSource": { - "description": "An AWS EBS disk must exist before mounting to a container. The disk\nmust also be in the same AWS zone as the kubelet. An AWS EBS disk\ncan only be mounted as read/write once. AWS EBS volumes support\nownership management and SELinux relabeling.", - "type": "object", - "title": "Represents a Persistent Disk resource in AWS.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore\nTODO: how do we prevent errors in the filesystem from compromising the machine\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "partition": { - "description": "partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "Partition" - }, - "readOnly": { - "description": "readOnly value true will force the readOnly setting in VolumeMounts.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "volumeID": { - "description": "volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - "type": "string", - "x-go-name": "VolumeID" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Affinity": { - "type": "object", - "title": "Affinity is a group of affinity scheduling rules.", - "properties": { - "nodeAffinity": { - "$ref": "#/definitions/v1NodeAffinity" - }, - "podAffinity": { - "$ref": "#/definitions/v1PodAffinity" - }, - "podAntiAffinity": { - "$ref": "#/definitions/v1PodAntiAffinity" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1AzureDataDiskCachingMode": { - "description": "+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1AzureDataDiskKind": { - "description": "+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1AzureDiskVolumeSource": { - "type": "object", - "title": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", - "properties": { - "cachingMode": { - "$ref": "#/definitions/v1AzureDataDiskCachingMode" - }, - "diskName": { - "description": "diskName is the Name of the data disk in the blob storage", - "type": "string", - "x-go-name": "DiskName" - }, - "diskURI": { - "description": "diskURI is the URI of data disk in the blob storage", - "type": "string", - "x-go-name": "DataDiskURI" - }, - "fsType": { - "description": "fsType is Filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "kind": { - "$ref": "#/definitions/v1AzureDataDiskKind" - }, - "readOnly": { - "description": "readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1AzureFileVolumeSource": { - "type": "object", - "title": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", - "properties": { - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "secretName": { - "description": "secretName is the name of secret that contains Azure Storage Account Name and Key", - "type": "string", - "x-go-name": "SecretName" - }, - "shareName": { - "description": "shareName is the azure share Name", - "type": "string", - "x-go-name": "ShareName" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1CSIVolumeSource": { - "description": "Represents a source location of a volume to mount, managed by an external CSI driver", - "type": "object", - "properties": { - "driver": { - "description": "driver is the name of the CSI driver that handles this volume.\nConsult with your admin for the correct name as registered in the cluster.", - "type": "string", - "x-go-name": "Driver" - }, - "fsType": { - "description": "fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\".\nIf not provided, the empty value is passed to the associated CSI driver\nwhich will determine the default filesystem to apply.\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "nodePublishSecretRef": { - "$ref": "#/definitions/v1LocalObjectReference" - }, - "readOnly": { - "description": "readOnly specifies a read-only configuration for the volume.\nDefaults to false (read/write).\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "volumeAttributes": { - "description": "volumeAttributes stores driver-specific properties that are passed to the CSI\ndriver. Consult your driver's documentation for supported values.\n+optional", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-go-name": "VolumeAttributes" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Capabilities": { - "type": "object", - "title": "Adds and removes POSIX capabilities from running containers.", - "properties": { - "add": { - "description": "Added capabilities\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1Capability" - }, - "x-go-name": "Add" - }, - "drop": { - "description": "Removed capabilities\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1Capability" - }, - "x-go-name": "Drop" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Capability": { - "description": "Capability represent POSIX capabilities type", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1CephFSVolumeSource": { - "description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod\nCephfs volumes do not support ownership management or SELinux relabeling.", - "type": "object", - "properties": { - "monitors": { - "description": "monitors is Required: Monitors is a collection of Ceph monitors\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Monitors" - }, - "path": { - "description": "path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /\n+optional", - "type": "string", - "x-go-name": "Path" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "secretFile": { - "description": "secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\n+optional", - "type": "string", - "x-go-name": "SecretFile" - }, - "secretRef": { - "$ref": "#/definitions/v1LocalObjectReference" - }, - "user": { - "description": "user is optional: User is the rados user name, default is admin\nMore info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it\n+optional", - "type": "string", - "x-go-name": "User" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1CinderVolumeSource": { - "description": "A Cinder volume must exist before mounting to a container.\nThe volume must also be in the same region as the kubelet.\nCinder volumes support ownership management and SELinux relabeling.", - "type": "object", - "title": "Represents a cinder volume resource in Openstack.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "secretRef": { - "$ref": "#/definitions/v1LocalObjectReference" - }, - "volumeID": { - "description": "volumeID used to identify the volume in cinder.\nMore info: https://examples.k8s.io/mysql-cinder-pd/README.md", - "type": "string", - "x-go-name": "VolumeID" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ClaimSource": { - "description": "Exactly one of these fields should be set. Consumers of this type must\ntreat an empty object as if it has an unknown value.", - "type": "object", - "title": "ClaimSource describes a reference to a ResourceClaim.", - "properties": { - "resourceClaimName": { - "description": "ResourceClaimName is the name of a ResourceClaim object in the same\nnamespace as this pod.", - "type": "string", - "x-go-name": "ResourceClaimName" - }, - "resourceClaimTemplateName": { - "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate\nobject in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will\nbe bound to this pod. When this pod is deleted, the ResourceClaim\nwill also be deleted. The name of the ResourceClaim will be \u003cpod\nname\u003e-\u003cresource name\u003e, where \u003cresource name\u003e is the\nPodResourceClaim.Name. Pod validation will reject the pod if the\nconcatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the\npod will not be used for the pod to avoid using an unrelated\nresource by mistake. Scheduling and pod startup are then blocked\nuntil the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the\ncorresponding ResourceClaim by the control plane after creating the\nResourceClaim.", - "type": "string", - "x-go-name": "ResourceClaimTemplateName" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ClientIPConfig": { - "description": "ClientIPConfig represents the configurations of Client IP based session affinity.", - "type": "object", - "properties": { - "timeoutSeconds": { - "type": "integer", - "format": "int32", - "title": "timeoutSeconds specifies the seconds of ClientIP type session sticky time.\nThe value must be \u003e0 \u0026\u0026 \u003c=86400(for 1 day) if ServiceAffinity == \"ClientIP\".\nDefault value is 10800(for 3 hours).\n+optional" - } - } - }, - "v1Condition": { - "description": "type FooStatus struct{\n\t // Represents the observations of a foo's current state.\n\t // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\"\n\t // +patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\t // other fields\n\t}", - "type": "object", - "title": "Condition contains details for one aspect of the current state of this API Resource.\n---\nThis struct is intended for direct use as an array at the field path .status.conditions. For example,", - "properties": { - "lastTransitionTime": { - "title": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.\n+required\n+kubebuilder:validation:Required\n+kubebuilder:validation:Type=string\n+kubebuilder:validation:Format=date-time", - "$ref": "#/definitions/v1Time" - }, - "message": { - "type": "string", - "title": "message is a human readable message indicating details about the transition.\nThis may be an empty string.\n+required\n+kubebuilder:validation:Required\n+kubebuilder:validation:MaxLength=32768" - }, - "observedGeneration": { - "type": "string", - "format": "int64", - "title": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.\n+optional\n+kubebuilder:validation:Minimum=0" - }, - "reason": { - "type": "string", - "title": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.\n+required\n+kubebuilder:validation:Required\n+kubebuilder:validation:MaxLength=1024\n+kubebuilder:validation:MinLength=1\n+kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$`" - }, - "status": { - "type": "string", - "title": "status of the condition, one of True, False, Unknown.\n+required\n+kubebuilder:validation:Required\n+kubebuilder:validation:Enum=True;False;Unknown" - }, - "type": { - "type": "string", - "title": "type of condition in CamelCase or in foo.example.com/CamelCase.\n---\nMany .condition.type values are consistent across resources like Available, but because arbitrary conditions can be\nuseful (see .node.status.conditions), the ability to deconflict is important.\nThe regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)\n+required\n+kubebuilder:validation:Required\n+kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`\n+kubebuilder:validation:MaxLength=316" - } - } - }, - "v1ConfigMapEnvSource": { - "description": "The contents of the target ConfigMap's Data field will represent the\nkey-value pairs as environment variables.", - "type": "object", - "title": "ConfigMapEnvSource selects a ConfigMap to populate the environment\nvariables with.", - "properties": { - "name": { - "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?\n+optional", - "type": "string", - "x-go-name": "Name" - }, - "optional": { - "description": "Specify whether the ConfigMap must be defined\n+optional", - "type": "boolean", - "x-go-name": "Optional" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ConfigMapKeySelector": { - "description": "+structType=atomic", - "type": "object", - "title": "Selects a key from a ConfigMap.", - "properties": { - "key": { - "description": "The key to select.", - "type": "string", - "x-go-name": "Key" - }, - "name": { - "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?\n+optional", - "type": "string", - "x-go-name": "Name" - }, - "optional": { - "description": "Specify whether the ConfigMap or its key must be defined\n+optional", - "type": "boolean", - "x-go-name": "Optional" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ConfigMapProjection": { - "description": "The contents of the target ConfigMap's Data field will be presented in a\nprojected volume as files using the keys in the Data field as the file names,\nunless the items element is populated with specific mappings of keys to paths.\nNote that this is identical to a configmap volume source without the default\nmode.", - "type": "object", - "title": "Adapts a ConfigMap into a projected volume.", - "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1KeyToPath" - }, - "x-go-name": "Items" - }, - "name": { - "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?\n+optional", - "type": "string", - "x-go-name": "Name" - }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined\n+optional", - "type": "boolean", - "x-go-name": "Optional" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ConfigMapVolumeSource": { - "description": "The contents of the target ConfigMap's Data field will be presented in a\nvolume as files using the keys in the Data field as the file names, unless\nthe items element is populated with specific mappings of keys to paths.\nConfigMap volumes support ownership management and SELinux relabeling.", - "type": "object", - "title": "Adapts a ConfigMap into a volume.", - "properties": { - "defaultMode": { - "description": "defaultMode is optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "DefaultMode" - }, - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nConfigMap will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the ConfigMap,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1KeyToPath" - }, - "x-go-name": "Items" - }, - "name": { - "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?\n+optional", - "type": "string", - "x-go-name": "Name" - }, - "optional": { - "description": "optional specify whether the ConfigMap or its keys must be defined\n+optional", - "type": "boolean", - "x-go-name": "Optional" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Container": { - "type": "object", - "title": "A single application container that you want to run within a pod.", - "properties": { - "args": { - "description": "Arguments to the entrypoint.\nThe container image's CMD is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Args" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell.\nThe container image's ENTRYPOINT is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Command" - }, - "env": { - "description": "List of environment variables to set in the container.\nCannot be updated.\n+optional\n+patchMergeKey=name\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1EnvVar" - }, - "x-go-name": "Env" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container.\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\nwill be reported as an event when the container is starting. When a key exists in multiple\nsources, the value associated with the last source will take precedence.\nValues defined by an Env with a duplicate key will take precedence.\nCannot be updated.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1EnvFromSource" - }, - "x-go-name": "EnvFrom" - }, - "image": { - "description": "Container image name.\nMore info: https://kubernetes.io/docs/concepts/containers/images\nThis field is optional to allow higher level config management to default or override\ncontainer images in workload controllers like Deployments and StatefulSets.\n+optional", - "type": "string", - "x-go-name": "Image" - }, - "imagePullPolicy": { - "$ref": "#/definitions/v1PullPolicy" - }, - "lifecycle": { - "$ref": "#/definitions/v1Lifecycle" - }, - "livenessProbe": { - "$ref": "#/definitions/v1Probe" - }, - "name": { - "description": "Name of the container specified as a DNS_LABEL.\nEach container in a pod must have a unique name (DNS_LABEL).\nCannot be updated.", - "type": "string", - "x-go-name": "Name" - }, - "ports": { - "description": "List of ports to expose from the container. Not specifying a port here\nDOES NOT prevent that port from being exposed. Any port which is\nlistening on the default \"0.0.0.0\" address inside a container will be\naccessible from the network.\nModifying this array with strategic merge patch may corrupt the data.\nFor more information See https://github.com/kubernetes/kubernetes/issues/108255.\nCannot be updated.\n+optional\n+patchMergeKey=containerPort\n+patchStrategy=merge\n+listType=map\n+listMapKey=containerPort\n+listMapKey=protocol", - "type": "array", - "items": { - "$ref": "#/definitions/v1ContainerPort" - }, - "x-go-name": "Ports" - }, - "readinessProbe": { - "$ref": "#/definitions/v1Probe" - }, - "resources": { - "$ref": "#/definitions/v1ResourceRequirements" - }, - "securityContext": { - "$ref": "#/definitions/v1SecurityContext" - }, - "startupProbe": { - "$ref": "#/definitions/v1Probe" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this\nis not set, reads from stdin in the container will always result in EOF.\nDefault is false.\n+optional", - "type": "boolean", - "x-go-name": "Stdin" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by\na single attach. When stdin is true the stdin stream will remain open across multiple attach\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\nat which time stdin is closed and remains closed until the container is restarted. If this\nflag is false, a container processes that reads from stdin will never receive an EOF.\nDefault is false\n+optional", - "type": "boolean", - "x-go-name": "StdinOnce" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message\nwill be written is mounted into the container's filesystem.\nMessage written is intended to be brief final status, such as an assertion failure message.\nWill be truncated by the node if greater than 4096 bytes. The total message length across\nall containers will be limited to 12kb.\nDefaults to /dev/termination-log.\nCannot be updated.\n+optional", - "type": "string", - "x-go-name": "TerminationMessagePath" - }, - "terminationMessagePolicy": { - "$ref": "#/definitions/v1TerminationMessagePolicy" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\nDefault is false.\n+optional", - "type": "boolean", - "x-go-name": "TTY" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.\n+patchMergeKey=devicePath\n+patchStrategy=merge\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1VolumeDevice" - }, - "x-go-name": "VolumeDevices" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem.\nCannot be updated.\n+optional\n+patchMergeKey=mountPath\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1VolumeMount" - }, - "x-go-name": "VolumeMounts" - }, - "workingDir": { - "description": "Container's working directory.\nIf not specified, the container runtime's default will be used, which\nmight be configured in the container image.\nCannot be updated.\n+optional", - "type": "string", - "x-go-name": "WorkingDir" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ContainerPort": { - "type": "object", - "title": "ContainerPort represents a network port in a single container.", - "properties": { - "containerPort": { - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536.", - "type": "integer", - "format": "int32", - "x-go-name": "ContainerPort" - }, - "hostIP": { - "description": "What host IP to bind the external port to.\n+optional", - "type": "string", - "x-go-name": "HostIP" - }, - "hostPort": { - "description": "Number of port to expose on the host.\nIf specified, this must be a valid port number, 0 \u003c x \u003c 65536.\nIf HostNetwork is specified, this must match ContainerPort.\nMost containers do not need this.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "HostPort" - }, - "name": { - "description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each\nnamed port in a pod must have a unique name. Name for the port that can be\nreferred to by services.\n+optional", - "type": "string", - "x-go-name": "Name" - }, - "protocol": { - "$ref": "#/definitions/v1Protocol" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1DNSPolicy": { - "description": "+enum", - "type": "string", - "title": "DNSPolicy defines how a pod's DNS will be configured.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1DownwardAPIProjection": { - "description": "Note that this is identical to a downwardAPI volume source without the default\nmode.", - "type": "object", - "title": "Represents downward API info for projecting into a projected volume.", - "properties": { - "items": { - "description": "Items is a list of DownwardAPIVolume file\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1DownwardAPIVolumeFile" - }, - "x-go-name": "Items" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1DownwardAPIVolumeFile": { - "description": "DownwardAPIVolumeFile represents information to create the file containing the pod field", - "type": "object", - "properties": { - "fieldRef": { - "$ref": "#/definitions/v1ObjectFieldSelector" - }, - "mode": { - "description": "Optional: mode bits used to set permissions on this file, must be an octal value\nbetween 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "Mode" - }, - "path": { - "description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", - "type": "string", - "x-go-name": "Path" - }, - "resourceFieldRef": { - "$ref": "#/definitions/v1ResourceFieldSelector" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1DownwardAPIVolumeSource": { - "description": "Downward API volumes support ownership management and SELinux relabeling.", - "type": "object", - "title": "DownwardAPIVolumeSource represents a volume containing downward API info.", - "properties": { - "defaultMode": { - "description": "Optional: mode bits to use on created files by default. Must be a\nOptional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDefaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "DefaultMode" - }, - "items": { - "description": "Items is a list of downward API volume file\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1DownwardAPIVolumeFile" - }, - "x-go-name": "Items" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1EmptyDirVolumeSource": { - "description": "Empty directory volumes support ownership management and SELinux relabeling.", - "type": "object", - "title": "Represents an empty directory for a pod.", - "properties": { - "medium": { - "$ref": "#/definitions/v1StorageMedium" - }, - "sizeLimit": { - "$ref": "#/definitions/resourceQuantity" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1EnvFromSource": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", - "type": "object", - "properties": { - "configMapRef": { - "$ref": "#/definitions/v1ConfigMapEnvSource" - }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.\n+optional", - "type": "string", - "x-go-name": "Prefix" - }, - "secretRef": { - "$ref": "#/definitions/v1SecretEnvSource" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1EnvVar": { - "type": "object", - "title": "EnvVar represents an environment variable present in a Container.", - "properties": { - "name": { - "description": "Name of the environment variable. Must be a C_IDENTIFIER.", - "type": "string", - "x-go-name": "Name" - }, - "value": { - "description": "Variable references $(VAR_NAME) are expanded\nusing the previously defined environment variables in the container and\nany service environment variables. If a variable cannot be resolved,\nthe reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e.\n\"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\".\nEscaped references will never be expanded, regardless of whether the variable\nexists or not.\nDefaults to \"\".\n+optional", - "type": "string", - "x-go-name": "Value" - }, - "valueFrom": { - "$ref": "#/definitions/v1EnvVarSource" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1EnvVarSource": { - "type": "object", - "title": "EnvVarSource represents a source for the value of an EnvVar.", - "properties": { - "configMapKeyRef": { - "$ref": "#/definitions/v1ConfigMapKeySelector" - }, - "fieldRef": { - "$ref": "#/definitions/v1ObjectFieldSelector" - }, - "resourceFieldRef": { - "$ref": "#/definitions/v1ResourceFieldSelector" - }, - "secretKeyRef": { - "$ref": "#/definitions/v1SecretKeySelector" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1EphemeralContainer": { - "description": "To add an ephemeral container, use the ephemeralcontainers subresource of an existing\nPod. Ephemeral containers may not be removed or restarted.", - "type": "object", - "title": "An EphemeralContainer is a temporary container that you may add to an existing Pod for\nuser-initiated activities such as debugging. Ephemeral containers have no resource or\nscheduling guarantees, and they will not be restarted when they exit or when a Pod is\nremoved or restarted. The kubelet may evict a Pod if an ephemeral container causes the\nPod to exceed its resource allocation.", - "properties": { - "args": { - "description": "Arguments to the entrypoint.\nThe image's CMD is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Args" - }, - "command": { - "description": "Entrypoint array. Not executed within a shell.\nThe image's ENTRYPOINT is used if this is not provided.\nVariable references $(VAR_NAME) are expanded using the container's environment. If a variable\ncannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced\nto a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will\nproduce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless\nof whether the variable exists or not. Cannot be updated.\nMore info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Command" - }, - "env": { - "description": "List of environment variables to set in the container.\nCannot be updated.\n+optional\n+patchMergeKey=name\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1EnvVar" - }, - "x-go-name": "Env" - }, - "envFrom": { - "description": "List of sources to populate environment variables in the container.\nThe keys defined within a source must be a C_IDENTIFIER. All invalid keys\nwill be reported as an event when the container is starting. When a key exists in multiple\nsources, the value associated with the last source will take precedence.\nValues defined by an Env with a duplicate key will take precedence.\nCannot be updated.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1EnvFromSource" - }, - "x-go-name": "EnvFrom" - }, - "image": { - "description": "Container image name.\nMore info: https://kubernetes.io/docs/concepts/containers/images", - "type": "string", - "x-go-name": "Image" - }, - "imagePullPolicy": { - "$ref": "#/definitions/v1PullPolicy" - }, - "lifecycle": { - "$ref": "#/definitions/v1Lifecycle" - }, - "livenessProbe": { - "$ref": "#/definitions/v1Probe" - }, - "name": { - "description": "Name of the ephemeral container specified as a DNS_LABEL.\nThis name must be unique among all containers, init containers and ephemeral containers.", - "type": "string", - "x-go-name": "Name" - }, - "ports": { - "description": "Ports are not allowed for ephemeral containers.\n+optional\n+patchMergeKey=containerPort\n+patchStrategy=merge\n+listType=map\n+listMapKey=containerPort\n+listMapKey=protocol", - "type": "array", - "items": { - "$ref": "#/definitions/v1ContainerPort" - }, - "x-go-name": "Ports" - }, - "readinessProbe": { - "$ref": "#/definitions/v1Probe" - }, - "resources": { - "$ref": "#/definitions/v1ResourceRequirements" - }, - "securityContext": { - "$ref": "#/definitions/v1SecurityContext" - }, - "startupProbe": { - "$ref": "#/definitions/v1Probe" - }, - "stdin": { - "description": "Whether this container should allocate a buffer for stdin in the container runtime. If this\nis not set, reads from stdin in the container will always result in EOF.\nDefault is false.\n+optional", - "type": "boolean", - "x-go-name": "Stdin" - }, - "stdinOnce": { - "description": "Whether the container runtime should close the stdin channel after it has been opened by\na single attach. When stdin is true the stdin stream will remain open across multiple attach\nsessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the\nfirst client attaches to stdin, and then remains open and accepts data until the client disconnects,\nat which time stdin is closed and remains closed until the container is restarted. If this\nflag is false, a container processes that reads from stdin will never receive an EOF.\nDefault is false\n+optional", - "type": "boolean", - "x-go-name": "StdinOnce" - }, - "targetContainerName": { - "description": "If set, the name of the container from PodSpec that this ephemeral container targets.\nThe ephemeral container will be run in the namespaces (IPC, PID, etc) of this container.\nIf not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not\nsupport namespace targeting then the result of setting this field is undefined.\n+optional", - "type": "string", - "x-go-name": "TargetContainerName" - }, - "terminationMessagePath": { - "description": "Optional: Path at which the file to which the container's termination message\nwill be written is mounted into the container's filesystem.\nMessage written is intended to be brief final status, such as an assertion failure message.\nWill be truncated by the node if greater than 4096 bytes. The total message length across\nall containers will be limited to 12kb.\nDefaults to /dev/termination-log.\nCannot be updated.\n+optional", - "type": "string", - "x-go-name": "TerminationMessagePath" - }, - "terminationMessagePolicy": { - "$ref": "#/definitions/v1TerminationMessagePolicy" - }, - "tty": { - "description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true.\nDefault is false.\n+optional", - "type": "boolean", - "x-go-name": "TTY" - }, - "volumeDevices": { - "description": "volumeDevices is the list of block devices to be used by the container.\n+patchMergeKey=devicePath\n+patchStrategy=merge\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1VolumeDevice" - }, - "x-go-name": "VolumeDevices" - }, - "volumeMounts": { - "description": "Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers.\nCannot be updated.\n+optional\n+patchMergeKey=mountPath\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1VolumeMount" - }, - "x-go-name": "VolumeMounts" - }, - "workingDir": { - "description": "Container's working directory.\nIf not specified, the container runtime's default will be used, which\nmight be configured in the container image.\nCannot be updated.\n+optional", - "type": "string", - "x-go-name": "WorkingDir" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1EphemeralVolumeSource": { - "type": "object", - "title": "Represents an ephemeral volume that is handled by a normal storage driver.", - "properties": { - "volumeClaimTemplate": { - "$ref": "#/definitions/v1PersistentVolumeClaimTemplate" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ExecAction": { - "type": "object", - "title": "ExecAction describes a \"run in container\" action.", - "properties": { - "command": { - "description": "Command is the command line to execute inside the container, the working directory for the\ncommand is root ('/') in the container's filesystem. The command is simply exec'd, it is\nnot run inside a shell, so traditional shell instructions ('|', etc) won't work. To use\na shell, you need to explicitly call out to that shell.\nExit status of 0 is treated as live/healthy and non-zero is unhealthy.\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Command" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1FCVolumeSource": { - "description": "Fibre Channel volumes can only be mounted as read/write once.\nFibre Channel volumes support ownership management and SELinux relabeling.", - "type": "object", - "title": "Represents a Fibre Channel volume.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nTODO: how do we prevent errors in the filesystem from compromising the machine\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "lun": { - "description": "lun is Optional: FC target lun number\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "Lun" - }, - "readOnly": { - "description": "readOnly is Optional: Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "targetWWNs": { - "description": "targetWWNs is Optional: FC target worldwide names (WWNs)\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "TargetWWNs" - }, - "wwids": { - "description": "wwids Optional: FC volume world wide identifiers (wwids)\nEither wwids or combination of targetWWNs and lun must be set, but not both simultaneously.\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "WWIDs" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1FieldsV1": { - "description": "Each key is either a '.' representing the field itself, and will always map to an empty set,\nor a string representing a sub-field or item. The string will follow one of these four formats:\n'f:\u003cname\u003e', where \u003cname\u003e is the name of a field in a struct, or key in a map\n'v:\u003cvalue\u003e', where \u003cvalue\u003e is the exact json formatted value of a list item\n'i:\u003cindex\u003e', where \u003cindex\u003e is position of a item in a list\n'k:\u003ckeys\u003e', where \u003ckeys\u003e is a map of a list item's key fields to their unique values\nIf a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff\n+protobuf.options.(gogoproto.goproto_stringer)=false", - "type": "object", - "title": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.", - "x-go-package": "k8s.io/apimachinery/pkg/apis/meta/v1" - }, - "v1FlexVolumeSource": { - "description": "FlexVolume represents a generic volume resource that is\nprovisioned/attached using an exec based plugin.", - "type": "object", - "properties": { - "driver": { - "description": "driver is the name of the driver to use for this volume.", - "type": "string", - "x-go-name": "Driver" - }, - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "options": { - "description": "options is Optional: this field holds extra command options if any.\n+optional", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-go-name": "Options" - }, - "readOnly": { - "description": "readOnly is Optional: defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "secretRef": { - "$ref": "#/definitions/v1LocalObjectReference" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1FlockerVolumeSource": { - "description": "One and only one of datasetName and datasetUUID should be set.\nFlocker volumes do not support ownership management or SELinux relabeling.", - "type": "object", - "title": "Represents a Flocker volume mounted by the Flocker agent.", - "properties": { - "datasetName": { - "description": "datasetName is Name of the dataset stored as metadata -\u003e name on the dataset for Flocker\nshould be considered as deprecated\n+optional", - "type": "string", - "x-go-name": "DatasetName" - }, - "datasetUUID": { - "description": "datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset\n+optional", - "type": "string", - "x-go-name": "DatasetUUID" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1GCEPersistentDiskVolumeSource": { - "description": "A GCE PD must exist before mounting to a container. The disk must\nalso be in the same GCE project and zone as the kubelet. A GCE PD\ncan only be mounted as read/write once or read-only many times. GCE\nPDs support ownership management and SELinux relabeling.", - "type": "object", - "title": "Represents a Persistent Disk resource in Google Compute Engine.", - "properties": { - "fsType": { - "description": "fsType is filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\nTODO: how do we prevent errors in the filesystem from compromising the machine\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "partition": { - "description": "partition is the partition in the volume that you want to mount.\nIf omitted, the default is to mount by volume name.\nExamples: For volume /dev/sda1, you specify the partition as \"1\".\nSimilarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "Partition" - }, - "pdName": { - "description": "pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - "type": "string", - "x-go-name": "PDName" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1GRPCAction": { - "type": "object", - "properties": { - "port": { - "description": "Port number of the gRPC service. Number must be in the range 1 to 65535.", - "type": "integer", - "format": "int32", - "x-go-name": "Port" - }, - "service": { - "description": "Service is the name of the service to place in the gRPC HealthCheckRequest\n(see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.\n+optional\n+default=\"\"", - "type": "string", - "x-go-name": "Service" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1GitRepoVolumeSource": { - "description": "DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an\nEmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir\ninto the Pod's container.", - "type": "object", - "title": "Represents a volume that is populated with the contents of a git repository.\nGit repo volumes do not support ownership management.\nGit repo volumes support SELinux relabeling.", - "properties": { - "directory": { - "description": "directory is the target directory name.\nMust not contain or start with '..'. If '.' is supplied, the volume directory will be the\ngit repository. Otherwise, if specified, the volume will contain the git repository in\nthe subdirectory with the given name.\n+optional", - "type": "string", - "x-go-name": "Directory" - }, - "repository": { - "description": "repository is the URL", - "type": "string", - "x-go-name": "Repository" - }, - "revision": { - "description": "revision is the commit hash for the specified revision.\n+optional", - "type": "string", - "x-go-name": "Revision" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1GlusterfsVolumeSource": { - "description": "Glusterfs volumes do not support ownership management or SELinux relabeling.", - "type": "object", - "title": "Represents a Glusterfs mount that lasts the lifetime of a pod.", - "properties": { - "endpoints": { - "description": "endpoints is the endpoint name that details Glusterfs topology.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string", - "x-go-name": "EndpointsName" - }, - "path": { - "description": "path is the Glusterfs volume path.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod", - "type": "string", - "x-go-name": "Path" - }, - "readOnly": { - "description": "readOnly here will force the Glusterfs volume to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1HTTPGetAction": { - "type": "object", - "title": "HTTPGetAction describes an action based on HTTP Get requests.", - "properties": { - "host": { - "description": "Host name to connect to, defaults to the pod IP. You probably want to set\n\"Host\" in httpHeaders instead.\n+optional", - "type": "string", - "x-go-name": "Host" - }, - "httpHeaders": { - "description": "Custom headers to set in the request. HTTP allows repeated headers.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1HTTPHeader" - }, - "x-go-name": "HTTPHeaders" - }, - "path": { - "description": "Path to access on the HTTP server.\n+optional", - "type": "string", - "x-go-name": "Path" - }, - "port": { - "$ref": "#/definitions/intstrIntOrString" - }, - "scheme": { - "$ref": "#/definitions/v1URIScheme" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1HTTPHeader": { - "description": "HTTPHeader describes a custom header to be used in HTTP probes", - "type": "object", - "properties": { - "name": { - "description": "The header field name.\nThis will be canonicalized upon output, so case-variant names will be understood as the same header.", - "type": "string", - "x-go-name": "Name" - }, - "value": { - "description": "The header field value", - "type": "string", - "x-go-name": "Value" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1HTTPIngressPath": { - "description": "HTTPIngressPath associates a path with a backend. Incoming urls matching the\npath are forwarded to the backend.", - "type": "object", - "properties": { - "backend": { - "description": "Backend defines the referenced service endpoint to which the traffic\nwill be forwarded to.", - "$ref": "#/definitions/v1IngressBackend" - }, - "path": { - "type": "string", - "title": "Path is matched against the path of an incoming request. Currently it can\ncontain characters disallowed from the conventional \"path\" part of a URL\nas defined by RFC 3986. Paths must begin with a '/' and must be present\nwhen using PathType with value \"Exact\" or \"Prefix\".\n+optional" - }, - "pathType": { - "description": "PathType determines the interpretation of the Path matching. PathType can\nbe one of the following values:\n* Exact: Matches the URL path exactly.\n* Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.", - "type": "string" - } - } - }, - "v1HTTPIngressRuleValue": { - "description": "HTTPIngressRuleValue is a list of http selectors pointing to backends.\nIn the example: http://\u003chost\u003e/\u003cpath\u003e?\u003csearchpart\u003e -\u003e backend where\nwhere parts of the url correspond to RFC 3986, this resource will be used\nto match against everything after the last '/' and before the first '?'\nor '#'.", - "type": "object", - "properties": { - "paths": { - "type": "array", - "title": "A collection of paths that map requests to backends.\n+listType=atomic", - "items": { - "$ref": "#/definitions/v1HTTPIngressPath" - } - } - } - }, - "v1HostAlias": { - "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the\npod's hosts file.", - "type": "object", - "properties": { - "hostnames": { - "description": "Hostnames for the above IP address.", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Hostnames" - }, - "ip": { - "description": "IP address of the host file entry.", - "type": "string", - "x-go-name": "IP" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1HostPathType": { - "description": "+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1HostPathVolumeSource": { - "description": "Host path volumes do not support ownership management or SELinux relabeling.", - "type": "object", - "title": "Represents a host path mapped into a pod.", - "properties": { - "path": { - "description": "path of the directory on the host.\nIf the path is a symlink, it will follow the link to the real path.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - "type": "string", - "x-go-name": "Path" - }, - "type": { - "$ref": "#/definitions/v1HostPathType" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ISCSIVolumeSource": { - "description": "ISCSI volumes can only be mounted as read/write once.\nISCSI volumes support ownership management and SELinux relabeling.", - "type": "object", - "title": "Represents an ISCSI disk.", - "properties": { - "chapAuthDiscovery": { - "description": "chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication\n+optional", - "type": "boolean", - "x-go-name": "DiscoveryCHAPAuth" - }, - "chapAuthSession": { - "description": "chapAuthSession defines whether support iSCSI Session CHAP authentication\n+optional", - "type": "boolean", - "x-go-name": "SessionCHAPAuth" - }, - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi\nTODO: how do we prevent errors in the filesystem from compromising the machine\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "initiatorName": { - "description": "initiatorName is the custom iSCSI Initiator Name.\nIf initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface\n\u003ctarget portal\u003e:\u003cvolume name\u003e will be created for the connection.\n+optional", - "type": "string", - "x-go-name": "InitiatorName" - }, - "iqn": { - "description": "iqn is the target iSCSI Qualified Name.", - "type": "string", - "x-go-name": "IQN" - }, - "iscsiInterface": { - "description": "iscsiInterface is the interface Name that uses an iSCSI transport.\nDefaults to 'default' (tcp).\n+optional", - "type": "string", - "x-go-name": "ISCSIInterface" - }, - "lun": { - "description": "lun represents iSCSI Target Lun number.", - "type": "integer", - "format": "int32", - "x-go-name": "Lun" - }, - "portals": { - "description": "portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260).\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Portals" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "secretRef": { - "$ref": "#/definitions/v1LocalObjectReference" - }, - "targetPortal": { - "description": "targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port\nis other than default (typically TCP ports 860 and 3260).", - "type": "string", - "x-go-name": "TargetPortal" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Ingress": { - "description": "Ingress is a collection of rules that allow inbound connections to reach the\nendpoints defined by a backend. An Ingress can be configured to give services\nexternally-reachable urls, load balance traffic, terminate SSL, offer name\nbased virtual hosting etc.", - "type": "object", - "properties": { - "metadata": { - "title": "Standard object's metadata.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n+optional", - "$ref": "#/definitions/v1ObjectMeta" - }, - "spec": { - "title": "Spec is the desired state of the Ingress.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\n+optional", - "$ref": "#/definitions/v1IngressSpec" - }, - "status": { - "title": "Status is the current state of the Ingress.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\n+optional", - "$ref": "#/definitions/v1IngressStatus" - } - } - }, - "v1IngressBackend": { - "description": "IngressBackend describes all endpoints for a given service and port.", - "type": "object", - "properties": { - "resource": { - "title": "Resource is an ObjectRef to another Kubernetes resource in the namespace\nof the Ingress object. If resource is specified, a service.Name and\nservice.Port must not be specified.\nThis is a mutually exclusive setting with \"Service\".\n+optional", - "$ref": "#/definitions/v1TypedLocalObjectReference" - }, - "service": { - "title": "Service references a Service as a Backend.\nThis is a mutually exclusive setting with \"Resource\".\n+optional", - "$ref": "#/definitions/v1IngressServiceBackend" - } - } - }, - "v1IngressLoadBalancerIngress": { - "description": "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", - "type": "object", - "properties": { - "hostname": { - "type": "string", - "title": "Hostname is set for load-balancer ingress points that are DNS based.\n+optional" - }, - "ip": { - "type": "string", - "title": "IP is set for load-balancer ingress points that are IP based.\n+optional" - }, - "ports": { - "type": "array", - "title": "Ports provides information about the ports exposed by this LoadBalancer.\n+listType=atomic\n+optional", - "items": { - "$ref": "#/definitions/v1IngressPortStatus" - } - } - } - }, - "v1IngressLoadBalancerStatus": { - "description": "IngressLoadBalancerStatus represents the status of a load-balancer.", - "type": "object", - "properties": { - "ingress": { - "type": "array", - "title": "Ingress is a list containing ingress points for the load-balancer.\n+optional", - "items": { - "$ref": "#/definitions/v1IngressLoadBalancerIngress" - } - } - } - }, - "v1IngressPortStatus": { - "type": "object", - "title": "IngressPortStatus represents the error condition of a service port", - "properties": { - "error": { - "type": "string", - "title": "Error is to record the problem with the service port\nThe format of the error shall comply with the following rules:\n- built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.\n---\nThe regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)\n+optional\n+kubebuilder:validation:Required\n+kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`\n+kubebuilder:validation:MaxLength=316" - }, - "port": { - "description": "Port is the port number of the ingress port.", - "type": "integer", - "format": "int32" - }, - "protocol": { - "type": "string", - "title": "Protocol is the protocol of the ingress port.\nThe supported values are: \"TCP\", \"UDP\", \"SCTP\"" - } - } - }, - "v1IngressRule": { - "description": "IngressRule represents the rules mapping the paths under a specified host to\nthe related backend services. Incoming requests are first evaluated for a host\nmatch, then routed to the backend associated with the matching IngressRuleValue.", - "type": "object", - "properties": { - "host": { - "description": "Host is the fully qualified domain name of a network host, as defined by RFC 3986.\nNote the following deviations from the \"host\" part of the\nURI as defined in RFC 3986:\n1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future.\nIncoming requests are matched against the host before the\nIngressRuleValue. If the host is unspecified, the Ingress routes all\ntraffic based on the specified IngressRuleValue.\n\nHost can be \"precise\" which is a domain name without the terminating dot of\na network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name\nprefixed with a single wildcard label (e.g. \"*.foo.com\").\nThe wildcard character '*' must appear by itself as the first DNS label and\nmatches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\").\nRequests will be matched against the Host field in the following way:\n1. If Host is precise, the request matches this rule if the http host header is equal to Host.\n2. If Host is a wildcard, then the request matches this rule if the http host header\nis to equal to the suffix (removing the first label) of the wildcard rule.\n+optional", - "type": "string" - }, - "ingressRuleValue": { - "title": "IngressRuleValue represents a rule to route requests for this IngressRule.\nIf unspecified, the rule defaults to a http catch-all. Whether that sends\njust traffic matching the host to the default backend or all traffic to the\ndefault backend, is left to the controller fulfilling the Ingress. Http is\ncurrently the only supported IngressRuleValue.\n+optional", - "$ref": "#/definitions/v1IngressRuleValue" - } - } - }, - "v1IngressRuleValue": { - "description": "IngressRuleValue represents a rule to apply against incoming requests. If the\nrule is satisfied, the request is routed to the specified backend. Currently\nmixing different types of rules in a single Ingress is disallowed, so exactly\none of the following must be set.", - "type": "object", - "properties": { - "http": { - "title": "+optional", - "$ref": "#/definitions/v1HTTPIngressRuleValue" - } - } - }, - "v1IngressServiceBackend": { - "description": "IngressServiceBackend references a Kubernetes Service as a Backend.", - "type": "object", - "properties": { - "name": { - "description": "Name is the referenced service. The service must exist in\nthe same namespace as the Ingress object.", - "type": "string" - }, - "port": { - "description": "Port of the referenced service. A port name or port number\nis required for a IngressServiceBackend.", - "$ref": "#/definitions/v1ServiceBackendPort" - } - } - }, - "v1IngressSpec": { - "description": "IngressSpec describes the Ingress the user wishes to exist.", - "type": "object", - "properties": { - "defaultBackend": { - "title": "DefaultBackend is the backend that should handle requests that don't\nmatch any rule. If Rules are not specified, DefaultBackend must be specified.\nIf DefaultBackend is not set, the handling of requests that do not match any\nof the rules will be up to the Ingress controller.\n+optional", - "$ref": "#/definitions/v1IngressBackend" - }, - "ingressClassName": { - "type": "string", - "title": "IngressClassName is the name of an IngressClass cluster resource. Ingress\ncontroller implementations use this field to know whether they should be\nserving this Ingress resource, by a transitive connection\n(controller -\u003e IngressClass -\u003e Ingress resource). Although the\n`kubernetes.io/ingress.class` annotation (simple constant name) was never\nformally defined, it was widely supported by Ingress controllers to create\na direct binding between Ingress controller and Ingress resources. Newly\ncreated Ingress resources should prefer using the field. However, even\nthough the annotation is officially deprecated, for backwards compatibility\nreasons, ingress controllers should still honor that annotation if present.\n+optional" - }, - "rules": { - "type": "array", - "title": "A list of host rules used to configure the Ingress. If unspecified, or\nno rule matches, all traffic is sent to the default backend.\n+listType=atomic\n+optional", - "items": { - "$ref": "#/definitions/v1IngressRule" - } - }, - "tls": { - "type": "array", - "title": "TLS configuration. Currently the Ingress only supports a single TLS\nport, 443. If multiple members of this list specify different hosts, they\nwill be multiplexed on the same port according to the hostname specified\nthrough the SNI TLS extension, if the ingress controller fulfilling the\ningress supports SNI.\n+listType=atomic\n+optional", - "items": { - "$ref": "#/definitions/v1IngressTLS" - } - } - } - }, - "v1IngressStatus": { - "description": "IngressStatus describe the current state of the Ingress.", - "type": "object", - "properties": { - "loadBalancer": { - "title": "LoadBalancer contains the current status of the load-balancer.\n+optional", - "$ref": "#/definitions/v1IngressLoadBalancerStatus" - } - } - }, - "v1IngressTLS": { - "description": "IngressTLS describes the transport layer security associated with an Ingress.", - "type": "object", - "properties": { - "hosts": { - "type": "array", - "title": "Hosts are a list of hosts included in the TLS certificate. The values in\nthis list must match the name/s used in the tlsSecret. Defaults to the\nwildcard host setting for the loadbalancer controller fulfilling this\nIngress, if left unspecified.\n+listType=atomic\n+optional", - "items": { - "type": "string" - } - }, - "secretName": { - "type": "string", - "title": "SecretName is the name of the secret used to terminate TLS traffic on\nport 443. Field is left optional to allow TLS routing based on SNI\nhostname alone. If the SNI host in a listener conflicts with the \"Host\"\nheader field used by an IngressRule, the SNI host is used for termination\nand value of the Host header is used for routing.\n+optional" - } - } - }, - "v1KeyToPath": { - "type": "object", - "title": "Maps a string key to a path within a volume.", - "properties": { - "key": { - "description": "key is the key to project.", - "type": "string", - "x-go-name": "Key" - }, - "mode": { - "description": "mode is Optional: mode bits used to set permissions on this file.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nIf not specified, the volume defaultMode will be used.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "Mode" - }, - "path": { - "description": "path is the relative path of the file to map the key to.\nMay not be an absolute path.\nMay not contain the path element '..'.\nMay not start with the string '..'.", - "type": "string", - "x-go-name": "Path" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1LabelSelector": { - "description": "A label selector is a label query over a set of resources. The result of matchLabels and\nmatchExpressions are ANDed. An empty label selector matches all objects. A null\nlabel selector matches no objects.\n+structType=atomic", - "type": "object", - "properties": { - "matchExpressions": { - "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1LabelSelectorRequirement" - }, - "x-go-name": "MatchExpressions" - }, - "matchLabels": { - "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.\n+optional", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-go-name": "MatchLabels" - } - }, - "x-go-package": "k8s.io/apimachinery/pkg/apis/meta/v1" - }, - "v1LabelSelectorOperator": { - "type": "string", - "title": "A label selector operator is the set of operators that can be used in a selector requirement.", - "x-go-package": "k8s.io/apimachinery/pkg/apis/meta/v1" - }, - "v1LabelSelectorRequirement": { - "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.", - "type": "object", - "properties": { - "key": { - "description": "key is the label key that the selector applies to.\n+patchMergeKey=key\n+patchStrategy=merge", - "type": "string", - "x-go-name": "Key" - }, - "operator": { - "$ref": "#/definitions/v1LabelSelectorOperator" - }, - "values": { - "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. This array is replaced during a strategic\nmerge patch.\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Values" - } - }, - "x-go-package": "k8s.io/apimachinery/pkg/apis/meta/v1" - }, - "v1Lifecycle": { - "description": "Lifecycle describes actions that the management system should take in response to container lifecycle\nevents. For the PostStart and PreStop lifecycle handlers, management of the container blocks\nuntil the action is complete, unless the container process fails, in which case the handler is aborted.", - "type": "object", - "properties": { - "postStart": { - "$ref": "#/definitions/v1LifecycleHandler" - }, - "preStop": { - "$ref": "#/definitions/v1LifecycleHandler" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1LifecycleHandler": { - "description": "LifecycleHandler defines a specific action that should be taken in a lifecycle\nhook. One and only one of the fields, except TCPSocket must be specified.", - "type": "object", - "properties": { - "exec": { - "$ref": "#/definitions/v1ExecAction" - }, - "httpGet": { - "$ref": "#/definitions/v1HTTPGetAction" - }, - "tcpSocket": { - "$ref": "#/definitions/v1TCPSocketAction" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1LoadBalancerIngress": { - "description": "LoadBalancerIngress represents the status of a load-balancer ingress point:\ntraffic intended for the service should be sent to an ingress point.", - "type": "object", - "properties": { - "hostname": { - "type": "string", - "title": "Hostname is set for load-balancer ingress points that are DNS based\n(typically AWS load-balancers)\n+optional" - }, - "ip": { - "type": "string", - "title": "IP is set for load-balancer ingress points that are IP based\n(typically GCE or OpenStack load-balancers)\n+optional" - }, - "ports": { - "type": "array", - "title": "Ports is a list of records of service ports\nIf used, every port defined in the service should have an entry in it\n+listType=atomic\n+optional", - "items": { - "$ref": "#/definitions/v1PortStatus" - } - } - } - }, - "v1LoadBalancerStatus": { - "description": "LoadBalancerStatus represents the status of a load-balancer.", - "type": "object", - "properties": { - "ingress": { - "type": "array", - "title": "Ingress is a list containing ingress points for the load-balancer.\nTraffic intended for the service should be sent to these ingress points.\n+optional", - "items": { - "$ref": "#/definitions/v1LoadBalancerIngress" - } - } - } - }, - "v1LocalObjectReference": { - "description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.\n+structType=atomic", - "type": "object", - "properties": { - "name": { - "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?\n+optional", - "type": "string", - "x-go-name": "Name" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ManagedFieldsEntry": { - "description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource\nthat the fieldset applies to.", - "type": "object", - "properties": { - "apiVersion": { - "description": "APIVersion defines the version of this resource that this field set\napplies to. The format is \"group/version\" just like the top-level\nAPIVersion field. It is necessary to track the version of a field\nset because it cannot be automatically converted.", - "type": "string", - "x-go-name": "APIVersion" - }, - "fieldsType": { - "description": "FieldsType is the discriminator for the different fields format and version.\nThere is currently only one possible value: \"FieldsV1\"", - "type": "string", - "x-go-name": "FieldsType" - }, - "fieldsV1": { - "$ref": "#/definitions/v1FieldsV1" - }, - "manager": { - "description": "Manager is an identifier of the workflow managing these fields.", - "type": "string", - "x-go-name": "Manager" - }, - "operation": { - "$ref": "#/definitions/v1ManagedFieldsOperationType" - }, - "subresource": { - "description": "Subresource is the name of the subresource used to update that object, or\nempty string if the object was updated through the main resource. The\nvalue of this field is used to distinguish between managers, even if they\nshare the same name. For example, a status update will be distinct from a\nregular update using the same manager name.\nNote that the APIVersion field is not related to the Subresource field and\nit always corresponds to the version of the main resource.", - "type": "string", - "x-go-name": "Subresource" - }, - "time": { - "$ref": "#/definitions/v1Time" - } - }, - "x-go-package": "k8s.io/apimachinery/pkg/apis/meta/v1" - }, - "v1ManagedFieldsOperationType": { - "type": "string", - "title": "ManagedFieldsOperationType is the type of operation which lead to a ManagedFieldsEntry being created.", - "x-go-package": "k8s.io/apimachinery/pkg/apis/meta/v1" - }, - "v1MountPropagationMode": { - "description": "+enum", - "type": "string", - "title": "MountPropagationMode describes mount propagation.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1NFSVolumeSource": { - "description": "NFS volumes do not support ownership management or SELinux relabeling.", - "type": "object", - "title": "Represents an NFS mount that lasts the lifetime of a pod.", - "properties": { - "path": { - "description": "path that is exported by the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string", - "x-go-name": "Path" - }, - "readOnly": { - "description": "readOnly here will force the NFS export to be mounted with read-only permissions.\nDefaults to false.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "server": { - "description": "server is the hostname or IP address of the NFS server.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - "type": "string", - "x-go-name": "Server" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1NodeAffinity": { - "type": "object", - "title": "Node affinity is a group of node affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node matches the corresponding matchExpressions; the\nnode(s) with the highest sum are the most preferred.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1PreferredSchedulingTerm" - }, - "x-go-name": "PreferredDuringSchedulingIgnoredDuringExecution" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "$ref": "#/definitions/v1NodeSelector" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1NodeInclusionPolicy": { - "description": "NodeInclusionPolicy defines the type of node inclusion policy\n+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1NodeSelector": { - "description": "A node selector represents the union of the results of one or more label queries\nover a set of nodes; that is, it represents the OR of the selectors represented\nby the node selector terms.\n+structType=atomic", - "type": "object", - "properties": { - "nodeSelectorTerms": { - "description": "Required. A list of node selector terms. The terms are ORed.", - "type": "array", - "items": { - "$ref": "#/definitions/v1NodeSelectorTerm" - }, - "x-go-name": "NodeSelectorTerms" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1NodeSelectorOperator": { - "description": "A node selector operator is the set of operators that can be used in\na node selector requirement.\n+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1NodeSelectorRequirement": { - "description": "A node selector requirement is a selector that contains values, a key, and an operator\nthat relates the key and values.", - "type": "object", - "properties": { - "key": { - "description": "The label key that the selector applies to.", - "type": "string", - "x-go-name": "Key" - }, - "operator": { - "$ref": "#/definitions/v1NodeSelectorOperator" - }, - "values": { - "description": "An array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty. If the operator is Gt or Lt, the values\narray must have a single element, which will be interpreted as an integer.\nThis array is replaced during a strategic merge patch.\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Values" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1NodeSelectorTerm": { - "description": "A null or empty node selector term matches no objects. The requirements of\nthem are ANDed.\nThe TopologySelectorTerm type implements a subset of the NodeSelectorTerm.\n+structType=atomic", - "type": "object", - "properties": { - "matchExpressions": { - "description": "A list of node selector requirements by node's labels.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1NodeSelectorRequirement" - }, - "x-go-name": "MatchExpressions" - }, - "matchFields": { - "description": "A list of node selector requirements by node's fields.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1NodeSelectorRequirement" - }, - "x-go-name": "MatchFields" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1OSName": { - "type": "string", - "title": "OSName is the set of OS'es that can be used in OS.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ObjectFieldSelector": { - "description": "+structType=atomic", - "type": "object", - "title": "ObjectFieldSelector selects an APIVersioned field of an object.", - "properties": { - "apiVersion": { - "description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".\n+optional", - "type": "string", - "x-go-name": "APIVersion" - }, - "fieldPath": { - "description": "Path of the field to select in the specified API version.", - "type": "string", - "x-go-name": "FieldPath" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ObjectMeta": { - "description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects\nusers must create.", - "type": "object", - "properties": { - "annotations": { - "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations\n+optional", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-go-name": "Annotations" - }, - "creationTimestamp": { - "$ref": "#/definitions/v1Time" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before\nit will be removed from the system. Only set when deletionTimestamp is also set.\nMay only be shortened.\nRead-only.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "DeletionGracePeriodSeconds" - }, - "deletionTimestamp": { - "$ref": "#/definitions/v1Time" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry\nis an identifier for the responsible component that will remove the entry\nfrom the list. If the deletionTimestamp of the object is non-nil, entries\nin this list can only be removed.\nFinalizers may be processed and removed in any order. Order is NOT enforced\nbecause it introduces significant risk of stuck finalizers.\nfinalizers is a shared field, any actor with permission can reorder it.\nIf the finalizer list is processed in order, then this can lead to a situation\nin which the component responsible for the first finalizer in the list is\nwaiting for a signal (field value, external system, or other) produced by a\ncomponent responsible for a finalizer later in the list, resulting in a deadlock.\nWithout enforced ordering finalizers are free to order amongst themselves and\nare not vulnerable to ordering changes in the list.\n+optional\n+patchStrategy=merge", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Finalizers" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique\nname ONLY IF the Name field has not been provided.\nIf this field is used, the name returned to the client will be different\nthan the name passed. This value will also be combined with a unique suffix.\nThe provided value has the same validation rules as the Name field,\nand may be truncated by the length of the suffix required to make the value\nunique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency\n+optional", - "type": "string", - "x-go-name": "GenerateName" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state.\nPopulated by the system. Read-only.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "Generation" - }, - "labels": { - "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels\n+optional", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-go-name": "Labels" - }, - "managedFields": { - "description": "ManagedFields maps workflow-id and version to the set of fields\nthat are managed by that workflow. This is mostly for internal\nhousekeeping, and users typically shouldn't need to set or\nunderstand this field. A workflow can be the user's name, a\ncontroller's name, or the name of a specific apply path like\n\"ci-cd\". The set of fields is always in the version that the\nworkflow used when modifying the object.\n\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1ManagedFieldsEntry" - }, - "x-go-name": "ManagedFields" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names\n+optional", - "type": "string", - "x-go-name": "Name" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is\nequivalent to the \"default\" namespace, but \"default\" is the canonical representation.\nNot all objects are required to be scoped to a namespace - the value of this field for\nthose objects will be empty.\n\nMust be a DNS_LABEL.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/namespaces\n+optional", - "type": "string", - "x-go-name": "Namespace" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have\nbeen deleted, this object will be garbage collected. If this object is managed by a controller,\nthen an entry in this list will point to this controller, with the controller field set to true.\nThere cannot be more than one managing controller.\n+optional\n+patchMergeKey=uid\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1OwnerReference" - }, - "x-go-name": "OwnerReferences" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can\nbe used by clients to determine when objects have changed. May be used for optimistic\nconcurrency, change detection, and the watch operation on a resource or set of resources.\nClients must treat these values as opaque and passed unmodified back to the server.\nThey may only be valid for a particular resource or set of resources.\n\nPopulated by the system.\nRead-only.\nValue must be treated as opaque by clients and .\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency\n+optional", - "type": "string", - "x-go-name": "ResourceVersion" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.\n+optional", - "type": "string", - "x-go-name": "SelfLink" - }, - "uid": { - "$ref": "#/definitions/typesUID" - } - }, - "x-go-package": "k8s.io/apimachinery/pkg/apis/meta/v1" - }, - "v1OwnerReference": { - "description": "OwnerReference contains enough information to let you identify an owning\nobject. An owning object must be in the same namespace as the dependent, or\nbe cluster-scoped, so there is no namespace field.\n+structType=atomic", - "type": "object", - "properties": { - "apiVersion": { - "description": "API version of the referent.", - "type": "string", - "x-go-name": "APIVersion" - }, - "blockOwnerDeletion": { - "description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then\nthe owner cannot be deleted from the key-value store until this\nreference is removed.\nSee https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion\nfor how the garbage collector interacts with this field and enforces the foreground deletion.\nDefaults to false.\nTo set this field, a user needs \"delete\" permission of the owner,\notherwise 422 (Unprocessable Entity) will be returned.\n+optional", - "type": "boolean", - "x-go-name": "BlockOwnerDeletion" - }, - "controller": { - "description": "If true, this reference points to the managing controller.\n+optional", - "type": "boolean", - "x-go-name": "Controller" - }, - "kind": { - "description": "Kind of the referent.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - "type": "string", - "x-go-name": "Kind" - }, - "name": { - "description": "Name of the referent.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string", - "x-go-name": "Name" - }, - "uid": { - "$ref": "#/definitions/typesUID" - } - }, - "x-go-package": "k8s.io/apimachinery/pkg/apis/meta/v1" - }, - "v1PersistentVolumeAccessMode": { - "description": "+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PersistentVolumeClaimSpec": { - "description": "PersistentVolumeClaimSpec describes the common attributes of storage devices\nand allows a Source for provider-specific attributes", - "type": "object", - "properties": { - "accessModes": { - "description": "accessModes contains the desired access modes the volume should have.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1PersistentVolumeAccessMode" - }, - "x-go-name": "AccessModes" - }, - "dataSource": { - "$ref": "#/definitions/v1TypedLocalObjectReference" - }, - "dataSourceRef": { - "$ref": "#/definitions/v1TypedObjectReference" - }, - "resources": { - "$ref": "#/definitions/v1ResourceRequirements" - }, - "selector": { - "$ref": "#/definitions/v1LabelSelector" - }, - "storageClassName": { - "description": "storageClassName is the name of the StorageClass required by the claim.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1\n+optional", - "type": "string", - "x-go-name": "StorageClassName" - }, - "volumeMode": { - "$ref": "#/definitions/v1PersistentVolumeMode" - }, - "volumeName": { - "description": "volumeName is the binding reference to the PersistentVolume backing this claim.\n+optional", - "type": "string", - "x-go-name": "VolumeName" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PersistentVolumeClaimTemplate": { - "description": "PersistentVolumeClaimTemplate is used to produce\nPersistentVolumeClaim objects as part of an EphemeralVolumeSource.", - "type": "object", - "properties": { - "annotations": { - "description": "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: http://kubernetes.io/docs/user-guide/annotations\n+optional", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-go-name": "Annotations" - }, - "creationTimestamp": { - "$ref": "#/definitions/v1Time" - }, - "deletionGracePeriodSeconds": { - "description": "Number of seconds allowed for this object to gracefully terminate before\nit will be removed from the system. Only set when deletionTimestamp is also set.\nMay only be shortened.\nRead-only.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "DeletionGracePeriodSeconds" - }, - "deletionTimestamp": { - "$ref": "#/definitions/v1Time" - }, - "finalizers": { - "description": "Must be empty before the object is deleted from the registry. Each entry\nis an identifier for the responsible component that will remove the entry\nfrom the list. If the deletionTimestamp of the object is non-nil, entries\nin this list can only be removed.\nFinalizers may be processed and removed in any order. Order is NOT enforced\nbecause it introduces significant risk of stuck finalizers.\nfinalizers is a shared field, any actor with permission can reorder it.\nIf the finalizer list is processed in order, then this can lead to a situation\nin which the component responsible for the first finalizer in the list is\nwaiting for a signal (field value, external system, or other) produced by a\ncomponent responsible for a finalizer later in the list, resulting in a deadlock.\nWithout enforced ordering finalizers are free to order amongst themselves and\nare not vulnerable to ordering changes in the list.\n+optional\n+patchStrategy=merge", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Finalizers" - }, - "generateName": { - "description": "GenerateName is an optional prefix, used by the server, to generate a unique\nname ONLY IF the Name field has not been provided.\nIf this field is used, the name returned to the client will be different\nthan the name passed. This value will also be combined with a unique suffix.\nThe provided value has the same validation rules as the Name field,\nand may be truncated by the length of the suffix required to make the value\nunique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency\n+optional", - "type": "string", - "x-go-name": "GenerateName" - }, - "generation": { - "description": "A sequence number representing a specific generation of the desired state.\nPopulated by the system. Read-only.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "Generation" - }, - "labels": { - "description": "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: http://kubernetes.io/docs/user-guide/labels\n+optional", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-go-name": "Labels" - }, - "managedFields": { - "description": "ManagedFields maps workflow-id and version to the set of fields\nthat are managed by that workflow. This is mostly for internal\nhousekeeping, and users typically shouldn't need to set or\nunderstand this field. A workflow can be the user's name, a\ncontroller's name, or the name of a specific apply path like\n\"ci-cd\". The set of fields is always in the version that the\nworkflow used when modifying the object.\n\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1ManagedFieldsEntry" - }, - "x-go-name": "ManagedFields" - }, - "name": { - "description": "Name must be unique within a namespace. Is required when creating resources, although\nsome resources may allow a client to request the generation of an appropriate name\nautomatically. Name is primarily intended for creation idempotence and configuration\ndefinition.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/identifiers#names\n+optional", - "type": "string", - "x-go-name": "Name" - }, - "namespace": { - "description": "Namespace defines the space within which each name must be unique. An empty namespace is\nequivalent to the \"default\" namespace, but \"default\" is the canonical representation.\nNot all objects are required to be scoped to a namespace - the value of this field for\nthose objects will be empty.\n\nMust be a DNS_LABEL.\nCannot be updated.\nMore info: http://kubernetes.io/docs/user-guide/namespaces\n+optional", - "type": "string", - "x-go-name": "Namespace" - }, - "ownerReferences": { - "description": "List of objects depended by this object. If ALL objects in the list have\nbeen deleted, this object will be garbage collected. If this object is managed by a controller,\nthen an entry in this list will point to this controller, with the controller field set to true.\nThere cannot be more than one managing controller.\n+optional\n+patchMergeKey=uid\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1OwnerReference" - }, - "x-go-name": "OwnerReferences" - }, - "resourceVersion": { - "description": "An opaque value that represents the internal version of this object that can\nbe used by clients to determine when objects have changed. May be used for optimistic\nconcurrency, change detection, and the watch operation on a resource or set of resources.\nClients must treat these values as opaque and passed unmodified back to the server.\nThey may only be valid for a particular resource or set of resources.\n\nPopulated by the system.\nRead-only.\nValue must be treated as opaque by clients and .\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency\n+optional", - "type": "string", - "x-go-name": "ResourceVersion" - }, - "selfLink": { - "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.\n+optional", - "type": "string", - "x-go-name": "SelfLink" - }, - "spec": { - "$ref": "#/definitions/v1PersistentVolumeClaimSpec" - }, - "uid": { - "$ref": "#/definitions/typesUID" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PersistentVolumeClaimVolumeSource": { - "description": "This volume finds the bound PV and mounts that volume for the pod. A\nPersistentVolumeClaimVolumeSource is, essentially, a wrapper around another\ntype of volume that is owned by someone else (the system).", - "type": "object", - "title": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace.", - "properties": { - "claimName": { - "description": "claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume.\nMore info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - "type": "string", - "x-go-name": "ClaimName" - }, - "readOnly": { - "description": "readOnly Will force the ReadOnly setting in VolumeMounts.\nDefault false.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PersistentVolumeMode": { - "description": "+enum", - "type": "string", - "title": "PersistentVolumeMode describes how a volume is intended to be consumed, either Block or Filesystem.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PhotonPersistentDiskVolumeSource": { - "type": "object", - "title": "Represents a Photon Controller persistent disk resource.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string", - "x-go-name": "FSType" - }, - "pdID": { - "description": "pdID is the ID that identifies Photon Controller persistent disk", - "type": "string", - "x-go-name": "PdID" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodAffinity": { - "type": "object", - "title": "Pod affinity is a group of inter pod affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1WeightedPodAffinityTerm" - }, - "x-go-name": "PreferredDuringSchedulingIgnoredDuringExecution" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1PodAffinityTerm" - }, - "x-go-name": "RequiredDuringSchedulingIgnoredDuringExecution" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodAffinityTerm": { - "description": "Defines a set of pods (namely those matching the labelSelector\nrelative to the given namespace(s)) that this pod should be\nco-located (affinity) or not co-located (anti-affinity) with,\nwhere co-located is defined as running on a node whose value of\nthe label with key \u003ctopologyKey\u003e matches that of any node on which\na pod of the set of pods is running", - "type": "object", - "properties": { - "labelSelector": { - "$ref": "#/definitions/v1LabelSelector" - }, - "namespaceSelector": { - "$ref": "#/definitions/v1LabelSelector" - }, - "namespaces": { - "description": "namespaces specifies a static list of namespace names that the term applies to.\nThe term is applied to the union of the namespaces listed in this field\nand the ones selected by namespaceSelector.\nnull or empty namespaces list and null namespaceSelector means \"this pod's namespace\".\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Namespaces" - }, - "topologyKey": { - "description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching\nthe labelSelector in the specified namespaces, where co-located is defined as running on a node\nwhose value of the label with key topologyKey matches that of any node on which any of the\nselected pods is running.\nEmpty topologyKey is not allowed.", - "type": "string", - "x-go-name": "TopologyKey" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodAntiAffinity": { - "type": "object", - "title": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.", - "properties": { - "preferredDuringSchedulingIgnoredDuringExecution": { - "description": "The scheduler will prefer to schedule pods to nodes that satisfy\nthe anti-affinity expressions specified by this field, but it may choose\na node that violates one or more of the expressions. The node that is\nmost preferred is the one with the greatest sum of weights, i.e.\nfor each node that meets all of the scheduling requirements (resource\nrequest, requiredDuringScheduling anti-affinity expressions, etc.),\ncompute a sum by iterating through the elements of this field and adding\n\"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the\nnode(s) with the highest sum are the most preferred.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1WeightedPodAffinityTerm" - }, - "x-go-name": "PreferredDuringSchedulingIgnoredDuringExecution" - }, - "requiredDuringSchedulingIgnoredDuringExecution": { - "description": "If the anti-affinity requirements specified by this field are not met at\nscheduling time, the pod will not be scheduled onto the node.\nIf the anti-affinity requirements specified by this field cease to be met\nat some point during pod execution (e.g. due to a pod label update), the\nsystem may or may not try to eventually evict the pod from its node.\nWhen there are multiple elements, the lists of nodes corresponding to each\npodAffinityTerm are intersected, i.e. all terms must be satisfied.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1PodAffinityTerm" - }, - "x-go-name": "RequiredDuringSchedulingIgnoredDuringExecution" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodConditionType": { - "description": "PodConditionType is a valid value for PodCondition.Type", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodDNSConfig": { - "description": "PodDNSConfig defines the DNS parameters of a pod in addition to\nthose generated from DNSPolicy.", - "type": "object", - "properties": { - "nameservers": { - "description": "A list of DNS name server IP addresses.\nThis will be appended to the base nameservers generated from DNSPolicy.\nDuplicated nameservers will be removed.\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Nameservers" - }, - "options": { - "description": "A list of DNS resolver options.\nThis will be merged with the base options generated from DNSPolicy.\nDuplicated entries will be removed. Resolution options given in Options\nwill override those that appear in the base DNSPolicy.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1PodDNSConfigOption" - }, - "x-go-name": "Options" - }, - "searches": { - "description": "A list of DNS search domains for host-name lookup.\nThis will be appended to the base search paths generated from DNSPolicy.\nDuplicated search paths will be removed.\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "Searches" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodDNSConfigOption": { - "type": "object", - "title": "PodDNSConfigOption defines DNS resolver options of a pod.", - "properties": { - "name": { - "description": "Required.", - "type": "string", - "x-go-name": "Name" - }, - "value": { - "description": "+optional", - "type": "string", - "x-go-name": "Value" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodFSGroupChangePolicy": { - "description": "PodFSGroupChangePolicy holds policies that will be used for applying fsGroup to a volume\nwhen volume is mounted.\n+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodOS": { - "type": "object", - "title": "PodOS defines the OS parameters of a pod.", - "properties": { - "name": { - "$ref": "#/definitions/v1OSName" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodReadinessGate": { - "description": "PodReadinessGate contains the reference to a pod condition", - "type": "object", - "properties": { - "conditionType": { - "$ref": "#/definitions/v1PodConditionType" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodResourceClaim": { - "description": "It adds a name to it that uniquely identifies the ResourceClaim inside the Pod.\nContainers that need access to the ResourceClaim reference it with this name.", - "type": "object", - "title": "PodResourceClaim references exactly one ResourceClaim through a ClaimSource.", - "properties": { - "name": { - "description": "Name uniquely identifies this resource claim inside the pod.\nThis must be a DNS_LABEL.", - "type": "string", - "x-go-name": "Name" - }, - "source": { - "$ref": "#/definitions/v1ClaimSource" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodSchedulingGate": { - "type": "object", - "title": "PodSchedulingGate is associated to a Pod to guard its scheduling.", - "properties": { - "name": { - "description": "Name of the scheduling gate.\nEach scheduling gate must have a unique name field.", - "type": "string", - "x-go-name": "Name" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodSecurityContext": { - "description": "Some fields are also present in container.securityContext. Field values of\ncontainer.securityContext take precedence over field values of PodSecurityContext.", - "type": "object", - "title": "PodSecurityContext holds pod-level security attributes and common container settings.", - "properties": { - "fsGroup": { - "description": "A special supplemental group that applies to all containers in a pod.\nSome volume types allow the Kubelet to change the ownership of that volume\nto be owned by the pod:\n\n1. The owning GID will be the FSGroup\n2. The setgid bit is set (new files created in the volume will be owned by FSGroup)\n3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume.\nNote that this field cannot be set when spec.os.name is windows.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "FSGroup" - }, - "fsGroupChangePolicy": { - "$ref": "#/definitions/v1PodFSGroupChangePolicy" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "RunAsGroup" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\n+optional", - "type": "boolean", - "x-go-name": "RunAsNonRoot" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in SecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence\nfor that container.\nNote that this field cannot be set when spec.os.name is windows.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "RunAsUser" - }, - "seLinuxOptions": { - "$ref": "#/definitions/v1SELinuxOptions" - }, - "seccompProfile": { - "$ref": "#/definitions/v1SeccompProfile" - }, - "supplementalGroups": { - "description": "A list of groups applied to the first process run in each container, in addition\nto the container's primary GID, the fsGroup (if specified), and group memberships\ndefined in the container image for the uid of the container process. If unspecified,\nno additional groups are added to any container. Note that group memberships\ndefined in the container image for the uid of the container process are still effective,\neven if they are not included in this list.\nNote that this field cannot be set when spec.os.name is windows.\n+optional", - "type": "array", - "items": { - "type": "integer", - "format": "int64" - }, - "x-go-name": "SupplementalGroups" - }, - "sysctls": { - "description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported\nsysctls (by the container runtime) might fail to launch.\nNote that this field cannot be set when spec.os.name is windows.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1Sysctl" - }, - "x-go-name": "Sysctls" - }, - "windowsOptions": { - "$ref": "#/definitions/v1WindowsSecurityContextOptions" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PodSpec": { - "type": "object", - "title": "PodSpec is a description of a pod.", - "properties": { - "activeDeadlineSeconds": { - "description": "Optional duration in seconds the pod may be active on the node relative to\nStartTime before the system will actively try to mark it failed and kill associated containers.\nValue must be a positive integer.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "ActiveDeadlineSeconds" - }, - "affinity": { - "$ref": "#/definitions/v1Affinity" - }, - "automountServiceAccountToken": { - "description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.\n+optional", - "type": "boolean", - "x-go-name": "AutomountServiceAccountToken" - }, - "containers": { - "description": "List of containers belonging to the pod.\nContainers cannot currently be added or removed.\nThere must be at least one container in a Pod.\nCannot be updated.\n+patchMergeKey=name\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1Container" - }, - "x-go-name": "Containers" - }, - "dnsConfig": { - "$ref": "#/definitions/v1PodDNSConfig" - }, - "dnsPolicy": { - "$ref": "#/definitions/v1DNSPolicy" - }, - "enableServiceLinks": { - "description": "EnableServiceLinks indicates whether information about services should be injected into pod's\nenvironment variables, matching the syntax of Docker links.\nOptional: Defaults to true.\n+optional", - "type": "boolean", - "x-go-name": "EnableServiceLinks" - }, - "ephemeralContainers": { - "description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing\npod to perform user-initiated actions such as debugging. This list cannot be specified when\ncreating a pod, and it cannot be modified by updating the pod spec. In order to add an\nephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.\n+optional\n+patchMergeKey=name\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1EphemeralContainer" - }, - "x-go-name": "EphemeralContainers" - }, - "hostAliases": { - "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts\nfile if specified. This is only valid for non-hostNetwork pods.\n+optional\n+patchMergeKey=ip\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1HostAlias" - }, - "x-go-name": "HostAliases" - }, - "hostIPC": { - "description": "Use the host's ipc namespace.\nOptional: Default to false.\n+k8s:conversion-gen=false\n+optional", - "type": "boolean", - "x-go-name": "HostIPC" - }, - "hostNetwork": { - "description": "Host networking requested for this pod. Use the host's network namespace.\nIf this option is set, the ports that will be used must be specified.\nDefault to false.\n+k8s:conversion-gen=false\n+optional", - "type": "boolean", - "x-go-name": "HostNetwork" - }, - "hostPID": { - "description": "Use the host's pid namespace.\nOptional: Default to false.\n+k8s:conversion-gen=false\n+optional", - "type": "boolean", - "x-go-name": "HostPID" - }, - "hostUsers": { - "description": "Use the host's user namespace.\nOptional: Default to true.\nIf set to true or not present, the pod will be run in the host user namespace, useful\nfor when the pod needs a feature only available to the host user namespace, such as\nloading a kernel module with CAP_SYS_MODULE.\nWhen set to false, a new userns is created for the pod. Setting false is useful for\nmitigating container breakout vulnerabilities even allowing users to run their\ncontainers as root without actually having root privileges on the host.\nThis field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.\n+k8s:conversion-gen=false\n+optional", - "type": "boolean", - "x-go-name": "HostUsers" - }, - "hostname": { - "description": "Specifies the hostname of the Pod\nIf not specified, the pod's hostname will be set to a system-defined value.\n+optional", - "type": "string", - "x-go-name": "Hostname" - }, - "imagePullSecrets": { - "description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.\nIf specified, these secrets will be passed to individual puller implementations for them to use.\nMore info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod\n+optional\n+patchMergeKey=name\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1LocalObjectReference" - }, - "x-go-name": "ImagePullSecrets" - }, - "initContainers": { - "description": "List of initialization containers belonging to the pod.\nInit containers are executed in order prior to containers being started. If any\ninit container fails, the pod is considered to have failed and is handled according\nto its restartPolicy. The name for an init container or normal container must be\nunique among all containers.\nInit containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes.\nThe resourceRequirements of an init container are taken into account during scheduling\nby finding the highest request/limit for each resource type, and then using the max of\nof that value or the sum of the normal containers. Limits are applied to init containers\nin a similar fashion.\nInit containers cannot currently be added or removed.\nCannot be updated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/\n+patchMergeKey=name\n+patchStrategy=merge", - "type": "array", - "items": { - "$ref": "#/definitions/v1Container" - }, - "x-go-name": "InitContainers" - }, - "nodeName": { - "description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty,\nthe scheduler simply schedules this pod onto that node, assuming that it fits resource\nrequirements.\n+optional", - "type": "string", - "x-go-name": "NodeName" - }, - "nodeSelector": { - "description": "NodeSelector is a selector which must be true for the pod to fit on a node.\nSelector which must match a node's labels for the pod to be scheduled on that node.\nMore info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\n+optional\n+mapType=atomic", - "type": "object", - "additionalProperties": { - "type": "string" - }, - "x-go-name": "NodeSelector" - }, - "os": { - "$ref": "#/definitions/v1PodOS" - }, - "overhead": { - "$ref": "#/definitions/v1ResourceList" - }, - "preemptionPolicy": { - "$ref": "#/definitions/v1PreemptionPolicy" - }, - "priority": { - "description": "The priority value. Various system components use this field to find the\npriority of the pod. When Priority Admission Controller is enabled, it\nprevents users from setting this field. The admission controller populates\nthis field from PriorityClassName.\nThe higher the value, the higher the priority.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "Priority" - }, - "priorityClassName": { - "description": "If specified, indicates the pod's priority. \"system-node-critical\" and\n\"system-cluster-critical\" are two special keywords which indicate the\nhighest priorities with the former being the highest priority. Any other\nname must be defined by creating a PriorityClass object with that name.\nIf not specified, the pod priority will be default or zero if there is no\ndefault.\n+optional", - "type": "string", - "x-go-name": "PriorityClassName" - }, - "readinessGates": { - "description": "If specified, all readiness gates will be evaluated for pod readiness.\nA pod is ready when all its containers are ready AND\nall conditions specified in the readiness gates have status equal to \"True\"\nMore info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1PodReadinessGate" - }, - "x-go-name": "ReadinessGates" - }, - "resourceClaims": { - "description": "ResourceClaims defines which ResourceClaims must be allocated\nand reserved before the Pod is allowed to start. The resources\nwill be made available to those containers which consume them\nby name.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable.\n\n+patchMergeKey=name\n+patchStrategy=merge,retainKeys\n+listType=map\n+listMapKey=name\n+featureGate=DynamicResourceAllocation\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1PodResourceClaim" - }, - "x-go-name": "ResourceClaims" - }, - "restartPolicy": { - "$ref": "#/definitions/v1RestartPolicy" - }, - "runtimeClassName": { - "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used\nto run this pod. If no RuntimeClass resource matches the named class, the pod will not be run.\nIf unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an\nempty definition that uses the default runtime handler.\nMore info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class\n+optional", - "type": "string", - "x-go-name": "RuntimeClassName" - }, - "schedulerName": { - "description": "If specified, the pod will be dispatched by specified scheduler.\nIf not specified, the pod will be dispatched by default scheduler.\n+optional", - "type": "string", - "x-go-name": "SchedulerName" - }, - "schedulingGates": { - "description": "SchedulingGates is an opaque list of values that if specified will block scheduling the pod.\nMore info: https://git.k8s.io/enhancements/keps/sig-scheduling/3521-pod-scheduling-readiness.\n\nThis is an alpha-level feature enabled by PodSchedulingReadiness feature gate.\n+optional\n+patchMergeKey=name\n+patchStrategy=merge\n+listType=map\n+listMapKey=name", - "type": "array", - "items": { - "$ref": "#/definitions/v1PodSchedulingGate" - }, - "x-go-name": "SchedulingGates" - }, - "securityContext": { - "$ref": "#/definitions/v1PodSecurityContext" - }, - "serviceAccount": { - "description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName.\nDeprecated: Use serviceAccountName instead.\n+k8s:conversion-gen=false\n+optional", - "type": "string", - "x-go-name": "DeprecatedServiceAccount" - }, - "serviceAccountName": { - "description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod.\nMore info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/\n+optional", - "type": "string", - "x-go-name": "ServiceAccountName" - }, - "setHostnameAsFQDN": { - "description": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default).\nIn Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname).\nIn Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN.\nIf a pod does not have FQDN, this has no effect.\nDefault to false.\n+optional", - "type": "boolean", - "x-go-name": "SetHostnameAsFQDN" - }, - "shareProcessNamespace": { - "description": "Share a single process namespace between all of the containers in a pod.\nWhen this is set containers will be able to view and signal processes from other containers\nin the same pod, and the first process in each container will not be assigned PID 1.\nHostPID and ShareProcessNamespace cannot both be set.\nOptional: Default to false.\n+k8s:conversion-gen=false\n+optional", - "type": "boolean", - "x-go-name": "ShareProcessNamespace" - }, - "subdomain": { - "description": "If specified, the fully qualified Pod hostname will be \"\u003chostname\u003e.\u003csubdomain\u003e.\u003cpod namespace\u003e.svc.\u003ccluster domain\u003e\".\nIf not specified, the pod will not have a domainname at all.\n+optional", - "type": "string", - "x-go-name": "Subdomain" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nIf this value is nil, the default grace period will be used instead.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nDefaults to 30 seconds.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "TerminationGracePeriodSeconds" - }, - "tolerations": { - "description": "If specified, the pod's tolerations.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1Toleration" - }, - "x-go-name": "Tolerations" - }, - "topologySpreadConstraints": { - "description": "TopologySpreadConstraints describes how a group of pods ought to spread across topology\ndomains. Scheduler will schedule pods in a way which abides by the constraints.\nAll topologySpreadConstraints are ANDed.\n+optional\n+patchMergeKey=topologyKey\n+patchStrategy=merge\n+listType=map\n+listMapKey=topologyKey\n+listMapKey=whenUnsatisfiable", - "type": "array", - "items": { - "$ref": "#/definitions/v1TopologySpreadConstraint" - }, - "x-go-name": "TopologySpreadConstraints" - }, - "volumes": { - "description": "List of volumes that can be mounted by containers belonging to the pod.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes\n+optional\n+patchMergeKey=name\n+patchStrategy=merge,retainKeys", - "type": "array", - "items": { - "$ref": "#/definitions/v1Volume" - }, - "x-go-name": "Volumes" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PortStatus": { - "type": "object", - "properties": { - "error": { - "type": "string", - "title": "Error is to record the problem with the service port\nThe format of the error shall comply with the following rules:\n- built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.\n---\nThe regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)\n+optional\n+kubebuilder:validation:Required\n+kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`\n+kubebuilder:validation:MaxLength=316" - }, - "port": { - "type": "integer", - "format": "int32", - "title": "Port is the port number of the service port of which status is recorded here" - }, - "protocol": { - "type": "string", - "title": "Protocol is the protocol of the service port of which status is recorded here\nThe supported values are: \"TCP\", \"UDP\", \"SCTP\"" - } - } - }, - "v1PortworxVolumeSource": { - "type": "object", - "title": "PortworxVolumeSource represents a Portworx volume resource.", - "properties": { - "fsType": { - "description": "fSType represents the filesystem type to mount\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.", - "type": "string", - "x-go-name": "FSType" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "volumeID": { - "description": "volumeID uniquely identifies a Portworx volume", - "type": "string", - "x-go-name": "VolumeID" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PreemptionPolicy": { - "description": "+enum", - "type": "string", - "title": "PreemptionPolicy describes a policy for if/when to preempt a pod.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PreferredSchedulingTerm": { - "description": "An empty preferred scheduling term matches all objects with implicit weight 0\n(i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).", - "type": "object", - "properties": { - "preference": { - "$ref": "#/definitions/v1NodeSelectorTerm" - }, - "weight": { - "description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.", - "type": "integer", - "format": "int32", - "x-go-name": "Weight" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Probe": { - "description": "Probe describes a health check to be performed against a container to determine whether it is\nalive or ready to receive traffic.", - "type": "object", - "properties": { - "exec": { - "$ref": "#/definitions/v1ExecAction" - }, - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded.\nDefaults to 3. Minimum value is 1.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "FailureThreshold" - }, - "grpc": { - "$ref": "#/definitions/v1GRPCAction" - }, - "httpGet": { - "$ref": "#/definitions/v1HTTPGetAction" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "InitialDelaySeconds" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe.\nDefault to 10 seconds. Minimum value is 1.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "PeriodSeconds" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed.\nDefaults to 1. Must be 1 for liveness and startup. Minimum value is 1.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "SuccessThreshold" - }, - "tcpSocket": { - "$ref": "#/definitions/v1TCPSocketAction" - }, - "terminationGracePeriodSeconds": { - "description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure.\nThe grace period is the duration in seconds after the processes running in the pod are sent\na termination signal and the time when the processes are forcibly halted with a kill signal.\nSet this value longer than the expected cleanup time for your process.\nIf this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this\nvalue overrides the value provided by the pod spec.\nValue must be non-negative integer. The value zero indicates stop immediately via\nthe kill signal (no opportunity to shut down).\nThis is a beta field and requires enabling ProbeTerminationGracePeriod feature gate.\nMinimum value is 1. spec.terminationGracePeriodSeconds is used if unset.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "TerminationGracePeriodSeconds" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out.\nDefaults to 1 second. Minimum value is 1.\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "TimeoutSeconds" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ProcMountType": { - "description": "+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ProjectedVolumeSource": { - "description": "Represents a projected volume source", - "type": "object", - "properties": { - "defaultMode": { - "description": "defaultMode are the mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values for mode bits.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "DefaultMode" - }, - "sources": { - "description": "sources is the list of volume projections\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1VolumeProjection" - }, - "x-go-name": "Sources" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Protocol": { - "description": "+enum", - "type": "string", - "title": "Protocol defines network protocols supported for things like container ports.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1PullPolicy": { - "description": "PullPolicy describes a policy for if/when to pull a container image\n+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1QuobyteVolumeSource": { - "description": "Quobyte volumes do not support ownership management or SELinux relabeling.", - "type": "object", - "title": "Represents a Quobyte mount that lasts the lifetime of a pod.", - "properties": { - "group": { - "description": "group to map volume access to\nDefault is no group\n+optional", - "type": "string", - "x-go-name": "Group" - }, - "readOnly": { - "description": "readOnly here will force the Quobyte volume to be mounted with read-only permissions.\nDefaults to false.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "registry": { - "description": "registry represents a single or multiple Quobyte Registry services\nspecified as a string as host:port pair (multiple entries are separated with commas)\nwhich acts as the central registry for volumes", - "type": "string", - "x-go-name": "Registry" - }, - "tenant": { - "description": "tenant owning the given Quobyte volume in the Backend\nUsed with dynamically provisioned Quobyte volumes, value is set by the plugin\n+optional", - "type": "string", - "x-go-name": "Tenant" - }, - "user": { - "description": "user to map volume access to\nDefaults to serivceaccount user\n+optional", - "type": "string", - "x-go-name": "User" - }, - "volume": { - "description": "volume is a string that references an already created Quobyte volume by name.", - "type": "string", - "x-go-name": "Volume" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1RBDVolumeSource": { - "description": "RBD volumes support ownership management and SELinux relabeling.", - "type": "object", - "title": "Represents a Rados Block Device mount that lasts the lifetime of a pod.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type of the volume that you want to mount.\nTip: Ensure that the filesystem type is supported by the host operating system.\nExamples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#rbd\nTODO: how do we prevent errors in the filesystem from compromising the machine\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "image": { - "description": "image is the rados image name.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "string", - "x-go-name": "RBDImage" - }, - "keyring": { - "description": "keyring is the path to key ring for RBDUser.\nDefault is /etc/ceph/keyring.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n+optional", - "type": "string", - "x-go-name": "Keyring" - }, - "monitors": { - "description": "monitors is a collection of Ceph monitors.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "CephMonitors" - }, - "pool": { - "description": "pool is the rados pool name.\nDefault is rbd.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n+optional", - "type": "string", - "x-go-name": "RBDPool" - }, - "readOnly": { - "description": "readOnly here will force the ReadOnly setting in VolumeMounts.\nDefaults to false.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "secretRef": { - "$ref": "#/definitions/v1LocalObjectReference" - }, - "user": { - "description": "user is the rados user name.\nDefault is admin.\nMore info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it\n+optional", - "type": "string", - "x-go-name": "RadosUser" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ResourceClaim": { - "type": "object", - "title": "ResourceClaim references one entry in PodSpec.ResourceClaims.", - "properties": { - "name": { - "description": "Name must match the name of one entry in pod.spec.resourceClaims of\nthe Pod where this field is used. It makes that resource available\ninside a container.", - "type": "string", - "x-go-name": "Name" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ResourceFieldSelector": { - "description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format\n+structType=atomic", - "type": "object", - "properties": { - "containerName": { - "description": "Container name: required for volumes, optional for env vars\n+optional", - "type": "string", - "x-go-name": "ContainerName" - }, - "divisor": { - "$ref": "#/definitions/resourceQuantity" - }, - "resource": { - "description": "Required: resource to select", - "type": "string", - "x-go-name": "Resource" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ResourceList": { - "type": "object", - "title": "ResourceList is a set of (resource name, quantity) pairs.", - "additionalProperties": { - "$ref": "#/definitions/resourceQuantity" - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ResourceRequirements": { - "type": "object", - "title": "ResourceRequirements describes the compute resource requirements.", - "properties": { - "claims": { - "description": "Claims lists the names of resources, defined in spec.resourceClaims,\nthat are used by this container.\n\nThis is an alpha field and requires enabling the\nDynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.\n\n+listType=map\n+listMapKey=name\n+featureGate=DynamicResourceAllocation\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1ResourceClaim" - }, - "x-go-name": "Claims" - }, - "limits": { - "$ref": "#/definitions/v1ResourceList" - }, - "requests": { - "$ref": "#/definitions/v1ResourceList" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1RestartPolicy": { - "description": "Only one of the following restart policies may be specified.\nIf none of the following policies is specified, the default one\nis RestartPolicyAlways.\n+enum", - "type": "string", - "title": "RestartPolicy describes how the container should be restarted.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1SELinuxOptions": { - "description": "SELinuxOptions are the labels to be applied to the container", - "type": "object", - "properties": { - "level": { - "description": "Level is SELinux level label that applies to the container.\n+optional", - "type": "string", - "x-go-name": "Level" - }, - "role": { - "description": "Role is a SELinux role label that applies to the container.\n+optional", - "type": "string", - "x-go-name": "Role" - }, - "type": { - "description": "Type is a SELinux type label that applies to the container.\n+optional", - "type": "string", - "x-go-name": "Type" - }, - "user": { - "description": "User is a SELinux user label that applies to the container.\n+optional", - "type": "string", - "x-go-name": "User" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ScaleIOVolumeSource": { - "description": "ScaleIOVolumeSource represents a persistent ScaleIO volume", - "type": "object", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\".\nDefault is \"xfs\".\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "gateway": { - "description": "gateway is the host address of the ScaleIO API Gateway.", - "type": "string", - "x-go-name": "Gateway" - }, - "protectionDomain": { - "description": "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.\n+optional", - "type": "string", - "x-go-name": "ProtectionDomain" - }, - "readOnly": { - "description": "readOnly Defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "secretRef": { - "$ref": "#/definitions/v1LocalObjectReference" - }, - "sslEnabled": { - "description": "sslEnabled Flag enable/disable SSL communication with Gateway, default false\n+optional", - "type": "boolean", - "x-go-name": "SSLEnabled" - }, - "storageMode": { - "description": "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned.\nDefault is ThinProvisioned.\n+optional", - "type": "string", - "x-go-name": "StorageMode" - }, - "storagePool": { - "description": "storagePool is the ScaleIO Storage Pool associated with the protection domain.\n+optional", - "type": "string", - "x-go-name": "StoragePool" - }, - "system": { - "description": "system is the name of the storage system as configured in ScaleIO.", - "type": "string", - "x-go-name": "System" - }, - "volumeName": { - "description": "volumeName is the name of a volume already created in the ScaleIO system\nthat is associated with this volume source.", - "type": "string", - "x-go-name": "VolumeName" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1SeccompProfile": { - "description": "Only one profile source may be set.\n+union", - "type": "object", - "title": "SeccompProfile defines a pod/container's seccomp profile settings.", - "properties": { - "localhostProfile": { - "description": "localhostProfile indicates a profile defined in a file on the node should be used.\nThe profile must be preconfigured on the node to work.\nMust be a descending path, relative to the kubelet's configured seccomp profile location.\nMust only be set if type is \"Localhost\".\n+optional", - "type": "string", - "x-go-name": "LocalhostProfile" - }, - "type": { - "$ref": "#/definitions/v1SeccompProfileType" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1SeccompProfileType": { - "description": "+enum", - "type": "string", - "title": "SeccompProfileType defines the supported seccomp profile types.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1SecretEnvSource": { - "description": "The contents of the target Secret's Data field will represent the\nkey-value pairs as environment variables.", - "type": "object", - "title": "SecretEnvSource selects a Secret to populate the environment\nvariables with.", - "properties": { - "name": { - "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?\n+optional", - "type": "string", - "x-go-name": "Name" - }, - "optional": { - "description": "Specify whether the Secret must be defined\n+optional", - "type": "boolean", - "x-go-name": "Optional" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1SecretKeySelector": { - "description": "+structType=atomic", - "type": "object", - "title": "SecretKeySelector selects a key of a Secret.", - "properties": { - "key": { - "description": "The key of the secret to select from. Must be a valid secret key.", - "type": "string", - "x-go-name": "Key" - }, - "name": { - "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?\n+optional", - "type": "string", - "x-go-name": "Name" - }, - "optional": { - "description": "Specify whether the Secret or its key must be defined\n+optional", - "type": "boolean", - "x-go-name": "Optional" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1SecretProjection": { - "description": "The contents of the target Secret's Data field will be presented in a\nprojected volume as files using the keys in the Data field as the file names.\nNote that this is identical to a secret volume source without the default\nmode.", - "type": "object", - "title": "Adapts a secret into a projected volume.", - "properties": { - "items": { - "description": "items if unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1KeyToPath" - }, - "x-go-name": "Items" - }, - "name": { - "description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\nTODO: Add other useful fields. apiVersion, kind, uid?\n+optional", - "type": "string", - "x-go-name": "Name" - }, - "optional": { - "description": "optional field specify whether the Secret or its key must be defined\n+optional", - "type": "boolean", - "x-go-name": "Optional" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1SecretVolumeSource": { - "description": "The contents of the target Secret's Data field will be presented in a volume\nas files using the keys in the Data field as the file names.\nSecret volumes support ownership management and SELinux relabeling.", - "type": "object", - "title": "Adapts a Secret into a volume.", - "properties": { - "defaultMode": { - "description": "defaultMode is Optional: mode bits used to set permissions on created files by default.\nMust be an octal value between 0000 and 0777 or a decimal value between 0 and 511.\nYAML accepts both octal and decimal values, JSON requires decimal values\nfor mode bits. Defaults to 0644.\nDirectories within the path are not affected by this setting.\nThis might be in conflict with other options that affect the file\nmode, like fsGroup, and the result can be other mode bits set.\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "DefaultMode" - }, - "items": { - "description": "items If unspecified, each key-value pair in the Data field of the referenced\nSecret will be projected into the volume as a file whose name is the\nkey and content is the value. If specified, the listed keys will be\nprojected into the specified paths, and unlisted keys will not be\npresent. If a key is specified which is not present in the Secret,\nthe volume setup will error unless it is marked optional. Paths must be\nrelative and may not contain the '..' path or start with '..'.\n+optional", - "type": "array", - "items": { - "$ref": "#/definitions/v1KeyToPath" - }, - "x-go-name": "Items" - }, - "optional": { - "description": "optional field specify whether the Secret or its keys must be defined\n+optional", - "type": "boolean", - "x-go-name": "Optional" - }, - "secretName": { - "description": "secretName is the name of the secret in the pod's namespace to use.\nMore info: https://kubernetes.io/docs/concepts/storage/volumes#secret\n+optional", - "type": "string", - "x-go-name": "SecretName" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1SecurityContext": { - "description": "Some fields are present in both SecurityContext and PodSecurityContext. When both\nare set, the values in SecurityContext take precedence.", - "type": "object", - "title": "SecurityContext holds security configuration that will be applied to a container.", - "properties": { - "allowPrivilegeEscalation": { - "description": "AllowPrivilegeEscalation controls whether a process can gain more\nprivileges than its parent process. This bool directly controls if\nthe no_new_privs flag will be set on the container process.\nAllowPrivilegeEscalation is true always when the container is:\n1) run as Privileged\n2) has CAP_SYS_ADMIN\nNote that this field cannot be set when spec.os.name is windows.\n+optional", - "type": "boolean", - "x-go-name": "AllowPrivilegeEscalation" - }, - "capabilities": { - "$ref": "#/definitions/v1Capabilities" - }, - "privileged": { - "description": "Run container in privileged mode.\nProcesses in privileged containers are essentially equivalent to root on the host.\nDefaults to false.\nNote that this field cannot be set when spec.os.name is windows.\n+optional", - "type": "boolean", - "x-go-name": "Privileged" - }, - "procMount": { - "$ref": "#/definitions/v1ProcMountType" - }, - "readOnlyRootFilesystem": { - "description": "Whether this container has a read-only root filesystem.\nDefault is false.\nNote that this field cannot be set when spec.os.name is windows.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnlyRootFilesystem" - }, - "runAsGroup": { - "description": "The GID to run the entrypoint of the container process.\nUses runtime default if unset.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "RunAsGroup" - }, - "runAsNonRoot": { - "description": "Indicates that the container must run as a non-root user.\nIf true, the Kubelet will validate the image at runtime to ensure that it\ndoes not run as UID 0 (root) and fail to start the container if it does.\nIf unset or false, no such validation will be performed.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\n+optional", - "type": "boolean", - "x-go-name": "RunAsNonRoot" - }, - "runAsUser": { - "description": "The UID to run the entrypoint of the container process.\nDefaults to user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\nNote that this field cannot be set when spec.os.name is windows.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "RunAsUser" - }, - "seLinuxOptions": { - "$ref": "#/definitions/v1SELinuxOptions" - }, - "seccompProfile": { - "$ref": "#/definitions/v1SeccompProfile" - }, - "windowsOptions": { - "$ref": "#/definitions/v1WindowsSecurityContextOptions" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Service": { - "description": "Service is a named abstraction of software service (for example, mysql) consisting of local port\n(for example 3306) that the proxy listens on, and the selector that determines which pods\nwill answer requests sent through the proxy.", - "type": "object", - "properties": { - "metadata": { - "title": "Standard object's metadata.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata\n+optional", - "$ref": "#/definitions/v1ObjectMeta" - }, - "spec": { - "title": "Spec defines the behavior of a service.\nhttps://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\n+optional", - "$ref": "#/definitions/v1ServiceSpec" - }, - "status": { - "title": "Most recently observed status of the service.\nPopulated by the system.\nRead-only.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\n+optional", - "$ref": "#/definitions/v1ServiceStatus" - } - } - }, - "v1ServiceAccountTokenProjection": { - "description": "ServiceAccountTokenProjection represents a projected service account token\nvolume. This projection can be used to insert a service account token into\nthe pods runtime filesystem for use against APIs (Kubernetes API Server or\notherwise).", - "type": "object", - "properties": { - "audience": { - "description": "audience is the intended audience of the token. A recipient of a token\nmust identify itself with an identifier specified in the audience of the\ntoken, and otherwise should reject the token. The audience defaults to the\nidentifier of the apiserver.\n+optional", - "type": "string", - "x-go-name": "Audience" - }, - "expirationSeconds": { - "description": "expirationSeconds is the requested duration of validity of the service\naccount token. As the token approaches expiration, the kubelet volume\nplugin will proactively rotate the service account token. The kubelet will\nstart trying to rotate the token if the token is older than 80 percent of\nits time to live or if the token is older than 24 hours.Defaults to 1 hour\nand must be at least 10 minutes.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "ExpirationSeconds" - }, - "path": { - "description": "path is the path relative to the mount point of the file to project the\ntoken into.", - "type": "string", - "x-go-name": "Path" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1ServiceBackendPort": { - "description": "ServiceBackendPort is the service port being referenced.", - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "Name is the name of the port on the Service.\nThis is a mutually exclusive setting with \"Number\".\n+optional" - }, - "number": { - "type": "integer", - "format": "int32", - "title": "Number is the numerical port number (e.g. 80) on the Service.\nThis is a mutually exclusive setting with \"Name\".\n+optional" - } - } - }, - "v1ServicePort": { - "description": "ServicePort contains information on service's port.", - "type": "object", - "properties": { - "appProtocol": { - "type": "string", - "title": "The application protocol for this port.\nThis field follows standard Kubernetes label syntax.\nUn-prefixed names are reserved for IANA standard service names (as per\nRFC-6335 and https://www.iana.org/assignments/service-names).\nNon-standard protocols should use prefixed names such as\nmycompany.com/my-custom-protocol.\n+optional" - }, - "name": { - "type": "string", - "title": "The name of this port within the service. This must be a DNS_LABEL.\nAll ports within a ServiceSpec must have unique names. When considering\nthe endpoints for a Service, this must match the 'name' field in the\nEndpointPort.\nOptional if only one ServicePort is defined on this service.\n+optional" - }, - "nodePort": { - "type": "integer", - "format": "int32", - "title": "The port on each node on which this service is exposed when type is\nNodePort or LoadBalancer. Usually assigned by the system. If a value is\nspecified, in-range, and not in use it will be used, otherwise the\noperation will fail. If not specified, a port will be allocated if this\nService requires one. If this field is specified when creating a\nService which does not need it, creation will fail. This field will be\nwiped when updating a Service to no longer need it (e.g. changing type\nfrom NodePort to ClusterIP).\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport\n+optional" - }, - "port": { - "description": "The port that will be exposed by this service.", - "type": "integer", - "format": "int32" - }, - "protocol": { - "type": "string", - "title": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\".\nDefault is TCP.\n+default=\"TCP\"\n+optional" - }, - "targetPort": { - "title": "Number or name of the port to access on the pods targeted by the service.\nNumber must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.\nIf this is a string, it will be looked up as a named port in the\ntarget Pod's container ports. If this is not specified, the value\nof the 'port' field is used (an identity map).\nThis field is ignored for services with clusterIP=None, and should be\nomitted or set equal to the 'port' field.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service\n+optional", - "$ref": "#/definitions/intstrIntOrString" - } - } - }, - "v1ServiceSpec": { - "description": "ServiceSpec describes the attributes that a user creates on a service.", - "type": "object", - "properties": { - "allocateLoadBalancerNodePorts": { - "type": "boolean", - "title": "allocateLoadBalancerNodePorts defines if NodePorts will be automatically\nallocated for services with type LoadBalancer. Default is \"true\". It\nmay be set to \"false\" if the cluster load-balancer does not rely on\nNodePorts. If the caller requests specific NodePorts (by specifying a\nvalue), those requests will be respected, regardless of this field.\nThis field may only be set for services with type LoadBalancer and will\nbe cleared if the type is changed to any other type.\n+optional" - }, - "clusterIP": { - "type": "string", - "title": "clusterIP is the IP address of the service and is usually assigned\nrandomly. If an address is specified manually, is in-range (as per\nsystem configuration), and is not in use, it will be allocated to the\nservice; otherwise creation of the service will fail. This field may not\nbe changed through updates unless the type field is also being changed\nto ExternalName (which requires this field to be blank) or the type\nfield is being changed from ExternalName (in which case this field may\noptionally be specified, as describe above). Valid values are \"None\",\nempty string (\"\"), or a valid IP address. Setting this to \"None\" makes a\n\"headless service\" (no virtual IP), which is useful when direct endpoint\nconnections are preferred and proxying is not required. Only applies to\ntypes ClusterIP, NodePort, and LoadBalancer. If this field is specified\nwhen creating a Service of type ExternalName, creation will fail. This\nfield will be wiped when updating a Service to type ExternalName.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\n+optional" - }, - "clusterIPs": { - "description": "ClusterIPs is a list of IP addresses assigned to this service, and are\nusually assigned randomly. If an address is specified manually, is\nin-range (as per system configuration), and is not in use, it will be\nallocated to the service; otherwise creation of the service will fail.\nThis field may not be changed through updates unless the type field is\nalso being changed to ExternalName (which requires this field to be\nempty) or the type field is being changed from ExternalName (in which\ncase this field may optionally be specified, as describe above). Valid\nvalues are \"None\", empty string (\"\"), or a valid IP address. Setting\nthis to \"None\" makes a \"headless service\" (no virtual IP), which is\nuseful when direct endpoint connections are preferred and proxying is\nnot required. Only applies to types ClusterIP, NodePort, and\nLoadBalancer. If this field is specified when creating a Service of type\nExternalName, creation will fail. This field will be wiped when updating\na Service to type ExternalName. If this field is not specified, it will\nbe initialized from the clusterIP field. If this field is specified,\nclients must ensure that clusterIPs[0] and clusterIP have the same\nvalue.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order).\nThese IPs must correspond to the values of the ipFamilies field. Both\nclusterIPs and ipFamilies are governed by the ipFamilyPolicy field.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\n+listType=atomic\n+optional", - "type": "array", - "items": { - "type": "string" - } - }, - "externalIPs": { - "type": "array", - "title": "externalIPs is a list of IP addresses for which nodes in the cluster\nwill also accept traffic for this service. These IPs are not managed by\nKubernetes. The user is responsible for ensuring that traffic arrives\nat a node with this IP. A common example is external load-balancers\nthat are not part of the Kubernetes system.\n+optional", - "items": { - "type": "string" - } - }, - "externalName": { - "type": "string", - "title": "externalName is the external reference that discovery mechanisms will\nreturn as an alias for this service (e.g. a DNS CNAME record). No\nproxying will be involved. Must be a lowercase RFC-1123 hostname\n(https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".\n+optional" - }, - "externalTrafficPolicy": { - "type": "string", - "title": "externalTrafficPolicy describes how nodes distribute service traffic they\nreceive on one of the Service's \"externally-facing\" addresses (NodePorts,\nExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure\nthe service in a way that assumes that external load balancers will take care\nof balancing the service traffic between nodes, and so each node will deliver\ntraffic only to the node-local endpoints of the service, without masquerading\nthe client source IP. (Traffic mistakenly sent to a node with no endpoints will\nbe dropped.) The default value, \"Cluster\", uses the standard behavior of\nrouting to all endpoints evenly (possibly modified by topology and other\nfeatures). Note that traffic sent to an External IP or LoadBalancer IP from\nwithin the cluster will always get \"Cluster\" semantics, but clients sending to\na NodePort from within the cluster may need to take traffic policy into account\nwhen picking a node.\n+optional" - }, - "healthCheckNodePort": { - "type": "integer", - "format": "int32", - "title": "healthCheckNodePort specifies the healthcheck nodePort for the service.\nThis only applies when type is set to LoadBalancer and\nexternalTrafficPolicy is set to Local. If a value is specified, is\nin-range, and is not in use, it will be used. If not specified, a value\nwill be automatically allocated. External systems (e.g. load-balancers)\ncan use this port to determine if a given node holds endpoints for this\nservice or not. If this field is specified when creating a Service\nwhich does not need it, creation will fail. This field will be wiped\nwhen updating a Service to no longer need it (e.g. changing type).\nThis field cannot be updated once set.\n+optional" - }, - "internalTrafficPolicy": { - "type": "string", - "title": "InternalTrafficPolicy describes how nodes distribute service traffic they\nreceive on the ClusterIP. If set to \"Local\", the proxy will assume that pods\nonly want to talk to endpoints of the service on the same node as the pod,\ndropping the traffic if there are no local endpoints. The default value,\n\"Cluster\", uses the standard behavior of routing to all endpoints evenly\n(possibly modified by topology and other features).\n+optional" - }, - "ipFamilies": { - "description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this\nservice. This field is usually assigned automatically based on cluster\nconfiguration and the ipFamilyPolicy field. If this field is specified\nmanually, the requested family is available in the cluster,\nand ipFamilyPolicy allows it, it will be used; otherwise creation of\nthe service will fail. This field is conditionally mutable: it allows\nfor adding or removing a secondary IP family, but it does not allow\nchanging the primary IP family of the Service. Valid values are \"IPv4\"\nand \"IPv6\". This field only applies to Services of types ClusterIP,\nNodePort, and LoadBalancer, and does apply to \"headless\" services.\nThis field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in\neither order). These families must correspond to the values of the\nclusterIPs field, if specified. Both clusterIPs and ipFamilies are\ngoverned by the ipFamilyPolicy field.\n+listType=atomic\n+optional", - "type": "array", - "items": { - "type": "string" - } - }, - "ipFamilyPolicy": { - "type": "string", - "title": "IPFamilyPolicy represents the dual-stack-ness requested or required by\nthis Service. If there is no value provided, then this field will be set\nto SingleStack. Services can be \"SingleStack\" (a single IP family),\n\"PreferDualStack\" (two IP families on dual-stack configured clusters or\na single IP family on single-stack clusters), or \"RequireDualStack\"\n(two IP families on dual-stack configured clusters, otherwise fail). The\nipFamilies and clusterIPs fields depend on the value of this field. This\nfield will be wiped when updating a service to type ExternalName.\n+optional" - }, - "loadBalancerClass": { - "type": "string", - "title": "loadBalancerClass is the class of the load balancer implementation this Service belongs to.\nIf specified, the value of this field must be a label-style identifier, with an optional prefix,\ne.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users.\nThis field can only be set when the Service type is 'LoadBalancer'. If not set, the default load\nbalancer implementation is used, today this is typically done through the cloud provider integration,\nbut should apply for any default implementation. If set, it is assumed that a load balancer\nimplementation is watching for Services with a matching class. Any default load balancer\nimplementation (e.g. cloud providers) should ignore Services that set this field.\nThis field can only be set when creating or updating a Service to type 'LoadBalancer'.\nOnce set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.\n+optional" - }, - "loadBalancerIP": { - "type": "string", - "title": "Only applies to Service Type: LoadBalancer.\nThis feature depends on whether the underlying cloud-provider supports specifying\nthe loadBalancerIP when a load balancer is created.\nThis field will be ignored if the cloud-provider does not support the feature.\nDeprecated: This field was under-specified and its meaning varies across implementations,\nand it cannot support dual-stack.\nAs of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available.\nThis field may be removed in a future API version.\n+optional" - }, - "loadBalancerSourceRanges": { - "type": "array", - "title": "If specified and supported by the platform, this will restrict traffic through the cloud-provider\nload-balancer will be restricted to the specified client IPs. This field will be ignored if the\ncloud-provider does not support the feature.\"\nMore info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/\n+optional", - "items": { - "type": "string" - } - }, - "ports": { - "type": "array", - "title": "The list of ports that are exposed by this service.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\n+patchMergeKey=port\n+patchStrategy=merge\n+listType=map\n+listMapKey=port\n+listMapKey=protocol", - "items": { - "$ref": "#/definitions/v1ServicePort" - } - }, - "publishNotReadyAddresses": { - "type": "boolean", - "title": "publishNotReadyAddresses indicates that any agent which deals with endpoints for this\nService should disregard any indications of ready/not-ready.\nThe primary use case for setting this field is for a StatefulSet's Headless Service to\npropagate SRV DNS records for its Pods for the purpose of peer discovery.\nThe Kubernetes controllers that generate Endpoints and EndpointSlice resources for\nServices interpret this to mean that all endpoints are considered \"ready\" even if the\nPods themselves are not. Agents which consume only Kubernetes generated endpoints\nthrough the Endpoints or EndpointSlice resources can safely assume this behavior.\n+optional" - }, - "selector": { - "type": "object", - "title": "Route service traffic to pods with label keys and values matching this\nselector. If empty or not present, the service is assumed to have an\nexternal process managing its endpoints, which Kubernetes will not\nmodify. Only applies to types ClusterIP, NodePort, and LoadBalancer.\nIgnored if type is ExternalName.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/\n+optional\n+mapType=atomic", - "additionalProperties": { - "type": "string" - } - }, - "sessionAffinity": { - "type": "string", - "title": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity.\nEnable client IP based session affinity.\nMust be ClientIP or None.\nDefaults to None.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\n+optional" - }, - "sessionAffinityConfig": { - "title": "sessionAffinityConfig contains the configurations of session affinity.\n+optional", - "$ref": "#/definitions/v1SessionAffinityConfig" - }, - "type": { - "type": "string", - "title": "type determines how the Service is exposed. Defaults to ClusterIP. Valid\noptions are ExternalName, ClusterIP, NodePort, and LoadBalancer.\n\"ClusterIP\" allocates a cluster-internal IP address for load-balancing\nto endpoints. Endpoints are determined by the selector or if that is not\nspecified, by manual construction of an Endpoints object or\nEndpointSlice objects. If clusterIP is \"None\", no virtual IP is\nallocated and the endpoints are published as a set of endpoints rather\nthan a virtual IP.\n\"NodePort\" builds on ClusterIP and allocates a port on every node which\nroutes to the same endpoints as the clusterIP.\n\"LoadBalancer\" builds on NodePort and creates an external load-balancer\n(if supported in the current cloud) which routes to the same endpoints\nas the clusterIP.\n\"ExternalName\" aliases this service to the specified externalName.\nSeveral other fields do not apply to ExternalName services.\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types\n+optional" - } - } - }, - "v1ServiceStatus": { - "description": "ServiceStatus represents the current status of a service.", - "type": "object", - "properties": { - "conditions": { - "type": "array", - "title": "Current service state\n+optional\n+patchMergeKey=type\n+patchStrategy=merge\n+listType=map\n+listMapKey=type", - "items": { - "$ref": "#/definitions/v1Condition" - } - }, - "loadBalancer": { - "title": "LoadBalancer contains the current status of the load-balancer,\nif one is present.\n+optional", - "$ref": "#/definitions/v1LoadBalancerStatus" - } - } - }, - "v1SessionAffinityConfig": { - "description": "SessionAffinityConfig represents the configurations of session affinity.", - "type": "object", - "properties": { - "clientIP": { - "title": "clientIP contains the configurations of Client IP based session affinity.\n+optional", - "$ref": "#/definitions/v1ClientIPConfig" - } - } - }, - "v1StorageMedium": { - "type": "string", - "title": "StorageMedium defines ways that storage can be allocated to a volume.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1StorageOSVolumeSource": { - "type": "object", - "title": "Represents a StorageOS persistent volume resource.", - "properties": { - "fsType": { - "description": "fsType is the filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "readOnly": { - "description": "readOnly defaults to false (read/write). ReadOnly here will force\nthe ReadOnly setting in VolumeMounts.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "secretRef": { - "$ref": "#/definitions/v1LocalObjectReference" - }, - "volumeName": { - "description": "volumeName is the human-readable name of the StorageOS volume. Volume\nnames are only unique within a namespace.", - "type": "string", - "x-go-name": "VolumeName" - }, - "volumeNamespace": { - "description": "volumeNamespace specifies the scope of the volume within StorageOS. If no\nnamespace is specified then the Pod's namespace will be used. This allows the\nKubernetes name scoping to be mirrored within StorageOS for tighter integration.\nSet VolumeName to any name to override the default behaviour.\nSet to \"default\" if you are not using namespaces within StorageOS.\nNamespaces that do not pre-exist within StorageOS will be created.\n+optional", - "type": "string", - "x-go-name": "VolumeNamespace" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Sysctl": { - "description": "Sysctl defines a kernel parameter to be set", - "type": "object", - "properties": { - "name": { - "description": "Name of a property to set", - "type": "string", - "x-go-name": "Name" - }, - "value": { - "description": "Value of a property to set", - "type": "string", - "x-go-name": "Value" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1TCPSocketAction": { - "description": "TCPSocketAction describes an action based on opening a socket", - "type": "object", - "properties": { - "host": { - "description": "Optional: Host name to connect to, defaults to the pod IP.\n+optional", - "type": "string", - "x-go-name": "Host" - }, - "port": { - "$ref": "#/definitions/intstrIntOrString" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1TaintEffect": { - "description": "+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1TerminationMessagePolicy": { - "description": "+enum", - "type": "string", - "title": "TerminationMessagePolicy describes how termination messages are retrieved from a container.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Time": { - "description": "Programs using times should typically store and pass them as values,\nnot pointers. That is, time variables and struct fields should be of\ntype time.Time, not *time.Time.\n\nA Time value can be used by multiple goroutines simultaneously except\nthat the methods GobDecode, UnmarshalBinary, UnmarshalJSON and\nUnmarshalText are not concurrency-safe.\n\nTime instants can be compared using the Before, After, and Equal methods.\nThe Sub method subtracts two instants, producing a Duration.\nThe Add method adds a Time and a Duration, producing a Time.\n\nThe zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC.\nAs this time is unlikely to come up in practice, the IsZero method gives\na simple way of detecting a time that has not been initialized explicitly.\n\nEach Time has associated with it a Location, consulted when computing the\npresentation form of the time, such as in the Format, Hour, and Year methods.\nThe methods Local, UTC, and In return a Time with a specific location.\nChanging the location in this way changes only the presentation; it does not\nchange the instant in time being denoted and therefore does not affect the\ncomputations described in earlier paragraphs.\n\nRepresentations of a Time value saved by the GobEncode, MarshalBinary,\nMarshalJSON, and MarshalText methods store the Time.Location's offset, but not\nthe location name. They therefore lose information about Daylight Saving Time.\n\nIn addition to the required “wall clock” reading, a Time may contain an optional\nreading of the current process's monotonic clock, to provide additional precision\nfor comparison or subtraction.\nSee the “Monotonic Clocks” section in the package documentation for details.\n\nNote that the Go == operator compares not just the time instant but also the\nLocation and the monotonic clock reading. Therefore, Time values should not\nbe used as map or database keys without first guaranteeing that the\nidentical Location has been set for all values, which can be achieved\nthrough use of the UTC or Local method, and that the monotonic clock reading\nhas been stripped by setting t = t.Round(0). In general, prefer t.Equal(u)\nto t == u, since t.Equal uses the most accurate comparison available and\ncorrectly handles the case when only one of its arguments has a monotonic\nclock reading.", - "type": "string", - "format": "date-time", - "title": "A Time represents an instant in time with nanosecond precision.", - "x-go-package": "k8s.io/apimachinery/pkg/apis/meta/v1" - }, - "v1Toleration": { - "description": "The pod this Toleration is attached to tolerates any taint that matches\nthe triple \u003ckey,value,effect\u003e using the matching operator \u003coperator\u003e.", - "type": "object", - "properties": { - "effect": { - "$ref": "#/definitions/v1TaintEffect" - }, - "key": { - "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys.\nIf the key is empty, operator must be Exists; this combination means to match all values and all keys.\n+optional", - "type": "string", - "x-go-name": "Key" - }, - "operator": { - "$ref": "#/definitions/v1TolerationOperator" - }, - "tolerationSeconds": { - "description": "TolerationSeconds represents the period of time the toleration (which must be\nof effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,\nit is not set, which means tolerate the taint forever (do not evict). Zero and\nnegative values will be treated as 0 (evict immediately) by the system.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "TolerationSeconds" - }, - "value": { - "description": "Value is the taint value the toleration matches to.\nIf the operator is Exists, the value should be empty, otherwise just a regular string.\n+optional", - "type": "string", - "x-go-name": "Value" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1TolerationOperator": { - "description": "+enum", - "type": "string", - "title": "A toleration operator is the set of operators that can be used in a toleration.", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1TopologySpreadConstraint": { - "type": "object", - "title": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", - "properties": { - "labelSelector": { - "$ref": "#/definitions/v1LabelSelector" - }, - "matchLabelKeys": { - "description": "MatchLabelKeys is a set of pod label keys to select the pods over which\nspreading will be calculated. The keys are used to lookup values from the\nincoming pod labels, those key-value labels are ANDed with labelSelector\nto select the group of existing pods over which spreading will be calculated\nfor the incoming pod. Keys that don't exist in the incoming pod labels will\nbe ignored. A null or empty list means only match against labelSelector.\n+listType=atomic\n+optional", - "type": "array", - "items": { - "type": "string" - }, - "x-go-name": "MatchLabelKeys" - }, - "maxSkew": { - "description": "MaxSkew describes the degree to which pods may be unevenly distributed.\nWhen `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference\nbetween the number of matching pods in the target topology and the global minimum.\nThe global minimum is the minimum number of matching pods in an eligible domain\nor zero if the number of eligible domains is less than MinDomains.\nFor example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same\nlabelSelector spread as 2/2/1:\nIn this case, the global minimum is 1.\n+-------+-------+-------+\n zone1 | zone2 | zone3 |\n+-------+-------+-------+\n P P | P P | P |\n+-------+-------+-------+\nif MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2;\nscheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2)\nviolate MaxSkew(1).\nif MaxSkew is 2, incoming pod can be scheduled onto any zone.\nWhen `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence\nto topologies that satisfy it.\nIt's a required field. Default value is 1 and 0 is not allowed.", - "type": "integer", - "format": "int32", - "x-go-name": "MaxSkew" - }, - "minDomains": { - "description": "MinDomains indicates a minimum number of eligible domains.\nWhen the number of eligible domains with matching topology keys is less than minDomains,\nPod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed.\nAnd when the number of eligible domains with matching topology keys equals or greater than minDomains,\nthis value has no effect on scheduling.\nAs a result, when the number of eligible domains is less than minDomains,\nscheduler won't schedule more than maxSkew Pods to those domains.\nIf value is nil, the constraint behaves as if MinDomains is equal to 1.\nValid values are integers greater than 0.\nWhen value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same\nlabelSelector spread as 2/2/2:\n+-------+-------+-------+\n zone1 | zone2 | zone3 |\n+-------+-------+-------+\n P P | P P | P P |\n+-------+-------+-------+\nThe number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0.\nIn this situation, new pod with the same labelSelector cannot be scheduled,\nbecause computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones,\nit will violate MaxSkew.\n\nThis is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).\n+optional", - "type": "integer", - "format": "int32", - "x-go-name": "MinDomains" - }, - "nodeAffinityPolicy": { - "$ref": "#/definitions/v1NodeInclusionPolicy" - }, - "nodeTaintsPolicy": { - "$ref": "#/definitions/v1NodeInclusionPolicy" - }, - "topologyKey": { - "description": "TopologyKey is the key of node labels. Nodes that have a label with this key\nand identical values are considered to be in the same topology.\nWe consider each \u003ckey, value\u003e as a \"bucket\", and try to put balanced number\nof pods into each bucket.\nWe define a domain as a particular instance of a topology.\nAlso, we define an eligible domain as a domain whose nodes meet the requirements of\nnodeAffinityPolicy and nodeTaintsPolicy.\ne.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology.\nAnd, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology.\nIt's a required field.", - "type": "string", - "x-go-name": "TopologyKey" - }, - "whenUnsatisfiable": { - "$ref": "#/definitions/v1UnsatisfiableConstraintAction" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1TypedLocalObjectReference": { - "description": "TypedLocalObjectReference contains enough information to let you locate the\ntyped referenced object inside the same namespace.\n+structType=atomic", - "type": "object", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.\n+optional", - "type": "string", - "x-go-name": "APIGroup" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string", - "x-go-name": "Kind" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string", - "x-go-name": "Name" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1TypedObjectReference": { - "type": "object", - "properties": { - "apiGroup": { - "description": "APIGroup is the group for the resource being referenced.\nIf APIGroup is not specified, the specified Kind must be in the core API group.\nFor any other third-party types, APIGroup is required.\n+optional", - "type": "string", - "x-go-name": "APIGroup" - }, - "kind": { - "description": "Kind is the type of resource being referenced", - "type": "string", - "x-go-name": "Kind" - }, - "name": { - "description": "Name is the name of resource being referenced", - "type": "string", - "x-go-name": "Name" - }, - "namespace": { - "description": "Namespace is the namespace of resource being referenced\nNote that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details.\n(Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.\n+featureGate=CrossNamespaceVolumeDataSource\n+optional", - "type": "string", - "x-go-name": "Namespace" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1URIScheme": { - "description": "URIScheme identifies the scheme used for connection to a host for Get actions\n+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1UnsatisfiableConstraintAction": { - "description": "+enum", - "type": "string", - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Volume": { - "type": "object", - "title": "Volume represents a named volume in a pod that may be accessed by any container in the pod.", - "properties": { - "awsElasticBlockStore": { - "$ref": "#/definitions/v1AWSElasticBlockStoreVolumeSource" - }, - "azureDisk": { - "$ref": "#/definitions/v1AzureDiskVolumeSource" - }, - "azureFile": { - "$ref": "#/definitions/v1AzureFileVolumeSource" - }, - "cephfs": { - "$ref": "#/definitions/v1CephFSVolumeSource" - }, - "cinder": { - "$ref": "#/definitions/v1CinderVolumeSource" - }, - "configMap": { - "$ref": "#/definitions/v1ConfigMapVolumeSource" - }, - "csi": { - "$ref": "#/definitions/v1CSIVolumeSource" - }, - "downwardAPI": { - "$ref": "#/definitions/v1DownwardAPIVolumeSource" - }, - "emptyDir": { - "$ref": "#/definitions/v1EmptyDirVolumeSource" - }, - "ephemeral": { - "$ref": "#/definitions/v1EphemeralVolumeSource" - }, - "fc": { - "$ref": "#/definitions/v1FCVolumeSource" - }, - "flexVolume": { - "$ref": "#/definitions/v1FlexVolumeSource" - }, - "flocker": { - "$ref": "#/definitions/v1FlockerVolumeSource" - }, - "gcePersistentDisk": { - "$ref": "#/definitions/v1GCEPersistentDiskVolumeSource" - }, - "gitRepo": { - "$ref": "#/definitions/v1GitRepoVolumeSource" - }, - "glusterfs": { - "$ref": "#/definitions/v1GlusterfsVolumeSource" - }, - "hostPath": { - "$ref": "#/definitions/v1HostPathVolumeSource" - }, - "iscsi": { - "$ref": "#/definitions/v1ISCSIVolumeSource" - }, - "name": { - "description": "name of the volume.\nMust be a DNS_LABEL and unique within the pod.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - "type": "string", - "x-go-name": "Name" - }, - "nfs": { - "$ref": "#/definitions/v1NFSVolumeSource" - }, - "persistentVolumeClaim": { - "$ref": "#/definitions/v1PersistentVolumeClaimVolumeSource" - }, - "photonPersistentDisk": { - "$ref": "#/definitions/v1PhotonPersistentDiskVolumeSource" - }, - "portworxVolume": { - "$ref": "#/definitions/v1PortworxVolumeSource" - }, - "projected": { - "$ref": "#/definitions/v1ProjectedVolumeSource" - }, - "quobyte": { - "$ref": "#/definitions/v1QuobyteVolumeSource" - }, - "rbd": { - "$ref": "#/definitions/v1RBDVolumeSource" - }, - "scaleIO": { - "$ref": "#/definitions/v1ScaleIOVolumeSource" - }, - "secret": { - "$ref": "#/definitions/v1SecretVolumeSource" - }, - "storageos": { - "$ref": "#/definitions/v1StorageOSVolumeSource" - }, - "vsphereVolume": { - "$ref": "#/definitions/v1VsphereVirtualDiskVolumeSource" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1VolumeDevice": { - "type": "object", - "title": "volumeDevice describes a mapping of a raw block device within a container.", - "properties": { - "devicePath": { - "description": "devicePath is the path inside of the container that the device will be mapped to.", - "type": "string", - "x-go-name": "DevicePath" - }, - "name": { - "description": "name must match the name of a persistentVolumeClaim in the pod", - "type": "string", - "x-go-name": "Name" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1VolumeMount": { - "type": "object", - "title": "VolumeMount describes a mounting of a Volume within a container.", - "properties": { - "mountPath": { - "description": "Path within the container at which the volume should be mounted. Must\nnot contain ':'.", - "type": "string", - "x-go-name": "MountPath" - }, - "mountPropagation": { - "$ref": "#/definitions/v1MountPropagationMode" - }, - "name": { - "description": "This must match the Name of a Volume.", - "type": "string", - "x-go-name": "Name" - }, - "readOnly": { - "description": "Mounted read-only if true, read-write otherwise (false or unspecified).\nDefaults to false.\n+optional", - "type": "boolean", - "x-go-name": "ReadOnly" - }, - "subPath": { - "description": "Path within the volume from which the container's volume should be mounted.\nDefaults to \"\" (volume's root).\n+optional", - "type": "string", - "x-go-name": "SubPath" - }, - "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted.\nBehaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment.\nDefaults to \"\" (volume's root).\nSubPathExpr and SubPath are mutually exclusive.\n+optional", - "type": "string", - "x-go-name": "SubPathExpr" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1VolumeProjection": { - "description": "Projection that may be projected along with other supported volume types", - "type": "object", - "properties": { - "configMap": { - "$ref": "#/definitions/v1ConfigMapProjection" - }, - "downwardAPI": { - "$ref": "#/definitions/v1DownwardAPIProjection" - }, - "secret": { - "$ref": "#/definitions/v1SecretProjection" - }, - "serviceAccountToken": { - "$ref": "#/definitions/v1ServiceAccountTokenProjection" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1VsphereVirtualDiskVolumeSource": { - "type": "object", - "title": "Represents a vSphere volume resource.", - "properties": { - "fsType": { - "description": "fsType is filesystem type to mount.\nMust be a filesystem type supported by the host operating system.\nEx. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.\n+optional", - "type": "string", - "x-go-name": "FSType" - }, - "storagePolicyID": { - "description": "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.\n+optional", - "type": "string", - "x-go-name": "StoragePolicyID" - }, - "storagePolicyName": { - "description": "storagePolicyName is the storage Policy Based Management (SPBM) profile name.\n+optional", - "type": "string", - "x-go-name": "StoragePolicyName" - }, - "volumePath": { - "description": "volumePath is the path that identifies vSphere volume vmdk", - "type": "string", - "x-go-name": "VolumePath" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1WeightedPodAffinityTerm": { - "description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", - "type": "object", - "properties": { - "podAffinityTerm": { - "$ref": "#/definitions/v1PodAffinityTerm" - }, - "weight": { - "description": "weight associated with matching the corresponding podAffinityTerm,\nin the range 1-100.", - "type": "integer", - "format": "int32", - "x-go-name": "Weight" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1WindowsSecurityContextOptions": { - "type": "object", - "title": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", - "properties": { - "gmsaCredentialSpec": { - "description": "GMSACredentialSpec is where the GMSA admission webhook\n(https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the\nGMSA credential spec named by the GMSACredentialSpecName field.\n+optional", - "type": "string", - "x-go-name": "GMSACredentialSpec" - }, - "gmsaCredentialSpecName": { - "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.\n+optional", - "type": "string", - "x-go-name": "GMSACredentialSpecName" - }, - "hostProcess": { - "description": "HostProcess determines if a container should be run as a 'Host Process' container.\nThis field is alpha-level and will only be honored by components that enable the\nWindowsHostProcessContainers feature flag. Setting this field without the feature\nflag will result in errors when validating the Pod. All of a Pod's containers must\nhave the same effective HostProcess value (it is not allowed to have a mix of HostProcess\ncontainers and non-HostProcess containers). In addition, if HostProcess is true\nthen HostNetwork must also be set to true.\n+optional", - "type": "boolean", - "x-go-name": "HostProcess" - }, - "runAsUserName": { - "description": "The UserName in Windows to run the entrypoint of the container process.\nDefaults to the user specified in image metadata if unspecified.\nMay also be set in PodSecurityContext. If set in both SecurityContext and\nPodSecurityContext, the value specified in SecurityContext takes precedence.\n+optional", - "type": "string", - "x-go-name": "RunAsUserName" - } - }, - "x-go-package": "k8s.io/api/core/v1" - } - } -} \ No newline at end of file diff --git a/pkg/api/apiconnect/event.connect.go b/pkg/api/apiconnect/event.connect.go index 5613b5513ec..6495f734b60 100644 --- a/pkg/api/apiconnect/event.connect.go +++ b/pkg/api/apiconnect/event.connect.go @@ -34,27 +34,28 @@ const ( // reflection-formatted method names, remove the leading slash and convert the remaining slash to a // period. const ( - // EventGetJobSetEventsProcedure is the fully-qualified name of the Event's GetJobSetEvents RPC. - EventGetJobSetEventsProcedure = "/api.Event/GetJobSetEvents" - // EventWatchProcedure is the fully-qualified name of the Event's Watch RPC. - EventWatchProcedure = "/api.Event/Watch" // EventHealthProcedure is the fully-qualified name of the Event's Health RPC. EventHealthProcedure = "/api.Event/Health" ) // These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. var ( - eventServiceDescriptor = api.File_api_event_proto.Services().ByName("Event") - eventGetJobSetEventsMethodDescriptor = eventServiceDescriptor.Methods().ByName("GetJobSetEvents") - eventWatchMethodDescriptor = eventServiceDescriptor.Methods().ByName("Watch") - eventHealthMethodDescriptor = eventServiceDescriptor.Methods().ByName("Health") + eventServiceDescriptor = api.File_api_event_proto.Services().ByName("Event") + eventHealthMethodDescriptor = eventServiceDescriptor.Methods().ByName("Health") ) // EventClient is a client for the api.Event service. type EventClient interface { - GetJobSetEvents(context.Context, *connect.Request[api.JobSetRequest]) (*connect.ServerStreamForClient[api.EventStreamMessage], error) - // Deprecated: do not use. - Watch(context.Context, *connect.Request[api.WatchRequest]) (*connect.ServerStreamForClient[api.EventStreamMessage], error) + // rpc GetJobSetEvents (JobSetRequest) returns (stream EventStreamMessage) { + // option (google.api.http) = { + // post: "/v1/job-set/{queue}/{id}" + // body: "*" + // }; + // } + // + // rpc Watch (WatchRequest) returns (stream EventStreamMessage) { + // option deprecated = true; + // } Health(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[api.HealthCheckResponse], error) } @@ -68,18 +69,6 @@ type EventClient interface { func NewEventClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) EventClient { baseURL = strings.TrimRight(baseURL, "/") return &eventClient{ - getJobSetEvents: connect.NewClient[api.JobSetRequest, api.EventStreamMessage]( - httpClient, - baseURL+EventGetJobSetEventsProcedure, - connect.WithSchema(eventGetJobSetEventsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - watch: connect.NewClient[api.WatchRequest, api.EventStreamMessage]( - httpClient, - baseURL+EventWatchProcedure, - connect.WithSchema(eventWatchMethodDescriptor), - connect.WithClientOptions(opts...), - ), health: connect.NewClient[emptypb.Empty, api.HealthCheckResponse]( httpClient, baseURL+EventHealthProcedure, @@ -91,21 +80,7 @@ func NewEventClient(httpClient connect.HTTPClient, baseURL string, opts ...conne // eventClient implements EventClient. type eventClient struct { - getJobSetEvents *connect.Client[api.JobSetRequest, api.EventStreamMessage] - watch *connect.Client[api.WatchRequest, api.EventStreamMessage] - health *connect.Client[emptypb.Empty, api.HealthCheckResponse] -} - -// GetJobSetEvents calls api.Event.GetJobSetEvents. -func (c *eventClient) GetJobSetEvents(ctx context.Context, req *connect.Request[api.JobSetRequest]) (*connect.ServerStreamForClient[api.EventStreamMessage], error) { - return c.getJobSetEvents.CallServerStream(ctx, req) -} - -// Watch calls api.Event.Watch. -// -// Deprecated: do not use. -func (c *eventClient) Watch(ctx context.Context, req *connect.Request[api.WatchRequest]) (*connect.ServerStreamForClient[api.EventStreamMessage], error) { - return c.watch.CallServerStream(ctx, req) + health *connect.Client[emptypb.Empty, api.HealthCheckResponse] } // Health calls api.Event.Health. @@ -115,9 +90,16 @@ func (c *eventClient) Health(ctx context.Context, req *connect.Request[emptypb.E // EventHandler is an implementation of the api.Event service. type EventHandler interface { - GetJobSetEvents(context.Context, *connect.Request[api.JobSetRequest], *connect.ServerStream[api.EventStreamMessage]) error - // Deprecated: do not use. - Watch(context.Context, *connect.Request[api.WatchRequest], *connect.ServerStream[api.EventStreamMessage]) error + // rpc GetJobSetEvents (JobSetRequest) returns (stream EventStreamMessage) { + // option (google.api.http) = { + // post: "/v1/job-set/{queue}/{id}" + // body: "*" + // }; + // } + // + // rpc Watch (WatchRequest) returns (stream EventStreamMessage) { + // option deprecated = true; + // } Health(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[api.HealthCheckResponse], error) } @@ -127,18 +109,6 @@ type EventHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewEventHandler(svc EventHandler, opts ...connect.HandlerOption) (string, http.Handler) { - eventGetJobSetEventsHandler := connect.NewServerStreamHandler( - EventGetJobSetEventsProcedure, - svc.GetJobSetEvents, - connect.WithSchema(eventGetJobSetEventsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - eventWatchHandler := connect.NewServerStreamHandler( - EventWatchProcedure, - svc.Watch, - connect.WithSchema(eventWatchMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) eventHealthHandler := connect.NewUnaryHandler( EventHealthProcedure, svc.Health, @@ -147,10 +117,6 @@ func NewEventHandler(svc EventHandler, opts ...connect.HandlerOption) (string, h ) return "/api.Event/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { - case EventGetJobSetEventsProcedure: - eventGetJobSetEventsHandler.ServeHTTP(w, r) - case EventWatchProcedure: - eventWatchHandler.ServeHTTP(w, r) case EventHealthProcedure: eventHealthHandler.ServeHTTP(w, r) default: @@ -162,14 +128,6 @@ func NewEventHandler(svc EventHandler, opts ...connect.HandlerOption) (string, h // UnimplementedEventHandler returns CodeUnimplemented from all methods. type UnimplementedEventHandler struct{} -func (UnimplementedEventHandler) GetJobSetEvents(context.Context, *connect.Request[api.JobSetRequest], *connect.ServerStream[api.EventStreamMessage]) error { - return connect.NewError(connect.CodeUnimplemented, errors.New("api.Event.GetJobSetEvents is not implemented")) -} - -func (UnimplementedEventHandler) Watch(context.Context, *connect.Request[api.WatchRequest], *connect.ServerStream[api.EventStreamMessage]) error { - return connect.NewError(connect.CodeUnimplemented, errors.New("api.Event.Watch is not implemented")) -} - func (UnimplementedEventHandler) Health(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[api.HealthCheckResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("api.Event.Health is not implemented")) } diff --git a/pkg/api/apiconnect/submit.connect.go b/pkg/api/apiconnect/submit.connect.go index e87d43b9695..60bad7cd8a5 100644 --- a/pkg/api/apiconnect/submit.connect.go +++ b/pkg/api/apiconnect/submit.connect.go @@ -53,8 +53,6 @@ const ( QueueServiceDeleteQueueProcedure = "/api.QueueService/DeleteQueue" // QueueServiceGetQueueProcedure is the fully-qualified name of the QueueService's GetQueue RPC. QueueServiceGetQueueProcedure = "/api.QueueService/GetQueue" - // QueueServiceGetQueuesProcedure is the fully-qualified name of the QueueService's GetQueues RPC. - QueueServiceGetQueuesProcedure = "/api.QueueService/GetQueues" // SubmitSubmitJobsProcedure is the fully-qualified name of the Submit's SubmitJobs RPC. SubmitSubmitJobsProcedure = "/api.Submit/SubmitJobs" // SubmitCancelJobsProcedure is the fully-qualified name of the Submit's CancelJobs RPC. @@ -77,8 +75,6 @@ const ( SubmitDeleteQueueProcedure = "/api.Submit/DeleteQueue" // SubmitGetQueueProcedure is the fully-qualified name of the Submit's GetQueue RPC. SubmitGetQueueProcedure = "/api.Submit/GetQueue" - // SubmitGetQueuesProcedure is the fully-qualified name of the Submit's GetQueues RPC. - SubmitGetQueuesProcedure = "/api.Submit/GetQueues" // SubmitHealthProcedure is the fully-qualified name of the Submit's Health RPC. SubmitHealthProcedure = "/api.Submit/Health" ) @@ -92,7 +88,6 @@ var ( queueServiceUpdateQueuesMethodDescriptor = queueServiceServiceDescriptor.Methods().ByName("UpdateQueues") queueServiceDeleteQueueMethodDescriptor = queueServiceServiceDescriptor.Methods().ByName("DeleteQueue") queueServiceGetQueueMethodDescriptor = queueServiceServiceDescriptor.Methods().ByName("GetQueue") - queueServiceGetQueuesMethodDescriptor = queueServiceServiceDescriptor.Methods().ByName("GetQueues") submitServiceDescriptor = api.File_api_submit_proto.Services().ByName("Submit") submitSubmitJobsMethodDescriptor = submitServiceDescriptor.Methods().ByName("SubmitJobs") submitCancelJobsMethodDescriptor = submitServiceDescriptor.Methods().ByName("CancelJobs") @@ -105,7 +100,6 @@ var ( submitUpdateQueuesMethodDescriptor = submitServiceDescriptor.Methods().ByName("UpdateQueues") submitDeleteQueueMethodDescriptor = submitServiceDescriptor.Methods().ByName("DeleteQueue") submitGetQueueMethodDescriptor = submitServiceDescriptor.Methods().ByName("GetQueue") - submitGetQueuesMethodDescriptor = submitServiceDescriptor.Methods().ByName("GetQueues") submitHealthMethodDescriptor = submitServiceDescriptor.Methods().ByName("Health") ) @@ -117,7 +111,6 @@ type QueueServiceClient interface { UpdateQueues(context.Context, *connect.Request[api.QueueList]) (*connect.Response[api.BatchQueueUpdateResponse], error) DeleteQueue(context.Context, *connect.Request[api.QueueDeleteRequest]) (*connect.Response[emptypb.Empty], error) GetQueue(context.Context, *connect.Request[api.QueueGetRequest]) (*connect.Response[api.Queue], error) - GetQueues(context.Context, *connect.Request[api.StreamingQueueGetRequest]) (*connect.ServerStreamForClient[api.StreamingQueueMessage], error) } // NewQueueServiceClient constructs a client for the api.QueueService service. By default, it uses @@ -166,12 +159,6 @@ func NewQueueServiceClient(httpClient connect.HTTPClient, baseURL string, opts . connect.WithSchema(queueServiceGetQueueMethodDescriptor), connect.WithClientOptions(opts...), ), - getQueues: connect.NewClient[api.StreamingQueueGetRequest, api.StreamingQueueMessage]( - httpClient, - baseURL+QueueServiceGetQueuesProcedure, - connect.WithSchema(queueServiceGetQueuesMethodDescriptor), - connect.WithClientOptions(opts...), - ), } } @@ -183,7 +170,6 @@ type queueServiceClient struct { updateQueues *connect.Client[api.QueueList, api.BatchQueueUpdateResponse] deleteQueue *connect.Client[api.QueueDeleteRequest, emptypb.Empty] getQueue *connect.Client[api.QueueGetRequest, api.Queue] - getQueues *connect.Client[api.StreamingQueueGetRequest, api.StreamingQueueMessage] } // CreateQueue calls api.QueueService.CreateQueue. @@ -216,11 +202,6 @@ func (c *queueServiceClient) GetQueue(ctx context.Context, req *connect.Request[ return c.getQueue.CallUnary(ctx, req) } -// GetQueues calls api.QueueService.GetQueues. -func (c *queueServiceClient) GetQueues(ctx context.Context, req *connect.Request[api.StreamingQueueGetRequest]) (*connect.ServerStreamForClient[api.StreamingQueueMessage], error) { - return c.getQueues.CallServerStream(ctx, req) -} - // QueueServiceHandler is an implementation of the api.QueueService service. type QueueServiceHandler interface { CreateQueue(context.Context, *connect.Request[api.Queue]) (*connect.Response[emptypb.Empty], error) @@ -229,7 +210,6 @@ type QueueServiceHandler interface { UpdateQueues(context.Context, *connect.Request[api.QueueList]) (*connect.Response[api.BatchQueueUpdateResponse], error) DeleteQueue(context.Context, *connect.Request[api.QueueDeleteRequest]) (*connect.Response[emptypb.Empty], error) GetQueue(context.Context, *connect.Request[api.QueueGetRequest]) (*connect.Response[api.Queue], error) - GetQueues(context.Context, *connect.Request[api.StreamingQueueGetRequest], *connect.ServerStream[api.StreamingQueueMessage]) error } // NewQueueServiceHandler builds an HTTP handler from the service implementation. It returns the @@ -274,12 +254,6 @@ func NewQueueServiceHandler(svc QueueServiceHandler, opts ...connect.HandlerOpti connect.WithSchema(queueServiceGetQueueMethodDescriptor), connect.WithHandlerOptions(opts...), ) - queueServiceGetQueuesHandler := connect.NewServerStreamHandler( - QueueServiceGetQueuesProcedure, - svc.GetQueues, - connect.WithSchema(queueServiceGetQueuesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) return "/api.QueueService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.URL.Path { case QueueServiceCreateQueueProcedure: @@ -294,8 +268,6 @@ func NewQueueServiceHandler(svc QueueServiceHandler, opts ...connect.HandlerOpti queueServiceDeleteQueueHandler.ServeHTTP(w, r) case QueueServiceGetQueueProcedure: queueServiceGetQueueHandler.ServeHTTP(w, r) - case QueueServiceGetQueuesProcedure: - queueServiceGetQueuesHandler.ServeHTTP(w, r) default: http.NotFound(w, r) } @@ -329,10 +301,6 @@ func (UnimplementedQueueServiceHandler) GetQueue(context.Context, *connect.Reque return nil, connect.NewError(connect.CodeUnimplemented, errors.New("api.QueueService.GetQueue is not implemented")) } -func (UnimplementedQueueServiceHandler) GetQueues(context.Context, *connect.Request[api.StreamingQueueGetRequest], *connect.ServerStream[api.StreamingQueueMessage]) error { - return connect.NewError(connect.CodeUnimplemented, errors.New("api.QueueService.GetQueues is not implemented")) -} - // SubmitClient is a client for the api.Submit service. type SubmitClient interface { SubmitJobs(context.Context, *connect.Request[api.JobSubmitRequest]) (*connect.Response[api.JobSubmitResponse], error) @@ -346,7 +314,11 @@ type SubmitClient interface { UpdateQueues(context.Context, *connect.Request[api.QueueList]) (*connect.Response[api.BatchQueueUpdateResponse], error) DeleteQueue(context.Context, *connect.Request[api.QueueDeleteRequest]) (*connect.Response[emptypb.Empty], error) GetQueue(context.Context, *connect.Request[api.QueueGetRequest]) (*connect.Response[api.Queue], error) - GetQueues(context.Context, *connect.Request[api.StreamingQueueGetRequest]) (*connect.ServerStreamForClient[api.StreamingQueueMessage], error) + // rpc GetQueues (StreamingQueueGetRequest) returns (stream StreamingQueueMessage) { + // option (google.api.http) = { + // get: "/v1/batched/queues" + // }; + // } Health(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[api.HealthCheckResponse], error) } @@ -426,12 +398,6 @@ func NewSubmitClient(httpClient connect.HTTPClient, baseURL string, opts ...conn connect.WithSchema(submitGetQueueMethodDescriptor), connect.WithClientOptions(opts...), ), - getQueues: connect.NewClient[api.StreamingQueueGetRequest, api.StreamingQueueMessage]( - httpClient, - baseURL+SubmitGetQueuesProcedure, - connect.WithSchema(submitGetQueuesMethodDescriptor), - connect.WithClientOptions(opts...), - ), health: connect.NewClient[emptypb.Empty, api.HealthCheckResponse]( httpClient, baseURL+SubmitHealthProcedure, @@ -454,7 +420,6 @@ type submitClient struct { updateQueues *connect.Client[api.QueueList, api.BatchQueueUpdateResponse] deleteQueue *connect.Client[api.QueueDeleteRequest, emptypb.Empty] getQueue *connect.Client[api.QueueGetRequest, api.Queue] - getQueues *connect.Client[api.StreamingQueueGetRequest, api.StreamingQueueMessage] health *connect.Client[emptypb.Empty, api.HealthCheckResponse] } @@ -513,11 +478,6 @@ func (c *submitClient) GetQueue(ctx context.Context, req *connect.Request[api.Qu return c.getQueue.CallUnary(ctx, req) } -// GetQueues calls api.Submit.GetQueues. -func (c *submitClient) GetQueues(ctx context.Context, req *connect.Request[api.StreamingQueueGetRequest]) (*connect.ServerStreamForClient[api.StreamingQueueMessage], error) { - return c.getQueues.CallServerStream(ctx, req) -} - // Health calls api.Submit.Health. func (c *submitClient) Health(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[api.HealthCheckResponse], error) { return c.health.CallUnary(ctx, req) @@ -536,7 +496,11 @@ type SubmitHandler interface { UpdateQueues(context.Context, *connect.Request[api.QueueList]) (*connect.Response[api.BatchQueueUpdateResponse], error) DeleteQueue(context.Context, *connect.Request[api.QueueDeleteRequest]) (*connect.Response[emptypb.Empty], error) GetQueue(context.Context, *connect.Request[api.QueueGetRequest]) (*connect.Response[api.Queue], error) - GetQueues(context.Context, *connect.Request[api.StreamingQueueGetRequest], *connect.ServerStream[api.StreamingQueueMessage]) error + // rpc GetQueues (StreamingQueueGetRequest) returns (stream StreamingQueueMessage) { + // option (google.api.http) = { + // get: "/v1/batched/queues" + // }; + // } Health(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[api.HealthCheckResponse], error) } @@ -612,12 +576,6 @@ func NewSubmitHandler(svc SubmitHandler, opts ...connect.HandlerOption) (string, connect.WithSchema(submitGetQueueMethodDescriptor), connect.WithHandlerOptions(opts...), ) - submitGetQueuesHandler := connect.NewServerStreamHandler( - SubmitGetQueuesProcedure, - svc.GetQueues, - connect.WithSchema(submitGetQueuesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) submitHealthHandler := connect.NewUnaryHandler( SubmitHealthProcedure, svc.Health, @@ -648,8 +606,6 @@ func NewSubmitHandler(svc SubmitHandler, opts ...connect.HandlerOption) (string, submitDeleteQueueHandler.ServeHTTP(w, r) case SubmitGetQueueProcedure: submitGetQueueHandler.ServeHTTP(w, r) - case SubmitGetQueuesProcedure: - submitGetQueuesHandler.ServeHTTP(w, r) case SubmitHealthProcedure: submitHealthHandler.ServeHTTP(w, r) default: @@ -705,10 +661,6 @@ func (UnimplementedSubmitHandler) GetQueue(context.Context, *connect.Request[api return nil, connect.NewError(connect.CodeUnimplemented, errors.New("api.Submit.GetQueue is not implemented")) } -func (UnimplementedSubmitHandler) GetQueues(context.Context, *connect.Request[api.StreamingQueueGetRequest], *connect.ServerStream[api.StreamingQueueMessage]) error { - return connect.NewError(connect.CodeUnimplemented, errors.New("api.Submit.GetQueues is not implemented")) -} - func (UnimplementedSubmitHandler) Health(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[api.HealthCheckResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("api.Submit.Health is not implemented")) } diff --git a/pkg/api/binoculars/api.swagger.go b/pkg/api/binoculars/api.swagger.go deleted file mode 100644 index 206e611b3c9..00000000000 --- a/pkg/api/binoculars/api.swagger.go +++ /dev/null @@ -1,250 +0,0 @@ -/* - * CODE GENERATED AUTOMATICALLY WITH - * github.com/wlbr/templify - * THIS FILE SHOULD NOT BE EDITED BY HAND - */ - -package binoculars - -// SwaggerJsonTemplate is a generated function returning the template as a string. -// That string should be parsed by the functions of the golang's template package. -func SwaggerJsonTemplate() string { - var tmpl = "{\n" + - " \"consumes\": [\n" + - " \"application/json\"\n" + - " ],\n" + - " \"produces\": [\n" + - " \"application/json\"\n" + - " ],\n" + - " \"swagger\": \"2.0\",\n" + - " \"info\": {\n" + - " \"title\": \"pkg/api/binoculars/binoculars.proto\",\n" + - " \"version\": \"version not set\"\n" + - " },\n" + - " \"paths\": {\n" + - " \"/v1/binoculars/cordon\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Binoculars\"\n" + - " ],\n" + - " \"operationId\": \"Cordon\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/binocularsCordonRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {}\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"/v1/binoculars/log\": {\n" + - " \"post\": {\n" + - " \"tags\": [\n" + - " \"Binoculars\"\n" + - " ],\n" + - " \"operationId\": \"Logs\",\n" + - " \"parameters\": [\n" + - " {\n" + - " \"name\": \"body\",\n" + - " \"in\": \"body\",\n" + - " \"required\": true,\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/binocularsLogRequest\"\n" + - " }\n" + - " }\n" + - " ],\n" + - " \"responses\": {\n" + - " \"200\": {\n" + - " \"description\": \"A successful response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/binocularsLogResponse\"\n" + - " }\n" + - " },\n" + - " \"default\": {\n" + - " \"description\": \"An unexpected error response.\",\n" + - " \"schema\": {\n" + - " \"$ref\": \"#/definitions/runtimeError\"\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"definitions\": {\n" + - " \"binocularsCordonRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"nodeName\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"binocularsLogLine\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"line\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"timestamp\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"binocularsLogRequest\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"jobId\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"logOptions\": {\n" + - " \"$ref\": \"#/definitions/v1PodLogOptions\"\n" + - " },\n" + - " \"podNamespace\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"podNumber\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"sinceTime\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"binocularsLogResponse\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"swagger:model\",\n" + - " \"properties\": {\n" + - " \"log\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/binocularsLogLine\"\n" + - " }\n" + - " }\n" + - " }\n" + - " },\n" + - " \"protobufAny\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"typeUrl\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"value\": {\n" + - " \"type\": \"string\",\n" + - " \"format\": \"byte\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"runtimeError\": {\n" + - " \"type\": \"object\",\n" + - " \"properties\": {\n" + - " \"code\": {\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int32\"\n" + - " },\n" + - " \"details\": {\n" + - " \"type\": \"array\",\n" + - " \"items\": {\n" + - " \"$ref\": \"#/definitions/protobufAny\"\n" + - " }\n" + - " },\n" + - " \"error\": {\n" + - " \"type\": \"string\"\n" + - " },\n" + - " \"message\": {\n" + - " \"type\": \"string\"\n" + - " }\n" + - " }\n" + - " },\n" + - " \"v1PodLogOptions\": {\n" + - " \"type\": \"object\",\n" + - " \"title\": \"PodLogOptions is the query options for a Pod's logs REST call.\",\n" + - " \"properties\": {\n" + - " \"apiVersion\": {\n" + - " \"description\": \"APIVersion defines the versioned schema of this representation of an object.\\nServers should convert recognized schemas to the latest internal value, and\\nmay reject unrecognized values.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"APIVersion\"\n" + - " },\n" + - " \"container\": {\n" + - " \"description\": \"The container for which to stream logs. Defaults to only container if there is one container in the pod.\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Container\"\n" + - " },\n" + - " \"follow\": {\n" + - " \"description\": \"Follow the log stream of the pod. Defaults to false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Follow\"\n" + - " },\n" + - " \"insecureSkipTLSVerifyBackend\": {\n" + - " \"description\": \"insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the\\nserving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver\\nand the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real\\nkubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the\\nconnection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept\\nthe actual log data coming from the real kubelet).\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"InsecureSkipTLSVerifyBackend\"\n" + - " },\n" + - " \"kind\": {\n" + - " \"description\": \"Kind is a string value representing the REST resource this object represents.\\nServers may infer this from the endpoint the client submits requests to.\\nCannot be updated.\\nIn CamelCase.\\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\\n+optional\",\n" + - " \"type\": \"string\",\n" + - " \"x-go-name\": \"Kind\"\n" + - " },\n" + - " \"limitBytes\": {\n" + - " \"description\": \"If set, the number of bytes to read from the server before terminating the\\nlog output. This may not display a complete final line of logging, and may return\\nslightly more or slightly less than the specified limit.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"LimitBytes\"\n" + - " },\n" + - " \"previous\": {\n" + - " \"description\": \"Return previous terminated container logs. Defaults to false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Previous\"\n" + - " },\n" + - " \"sinceSeconds\": {\n" + - " \"description\": \"A relative time in seconds before the current time from which to show logs. If this value\\nprecedes the time a pod was started, only logs since the pod start will be returned.\\nIf this value is in the future, no logs will be returned.\\nOnly one of sinceSeconds or sinceTime may be specified.\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"SinceSeconds\"\n" + - " },\n" + - " \"sinceTime\": {\n" + - " \"$ref\": \"#/definitions/v1Time\"\n" + - " },\n" + - " \"tailLines\": {\n" + - " \"description\": \"If set, the number of lines from the end of the logs to show. If not specified,\\nlogs are shown from the creation of the container or sinceSeconds or sinceTime\\n+optional\",\n" + - " \"type\": \"integer\",\n" + - " \"format\": \"int64\",\n" + - " \"x-go-name\": \"TailLines\"\n" + - " },\n" + - " \"timestamps\": {\n" + - " \"description\": \"If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line\\nof log output. Defaults to false.\\n+optional\",\n" + - " \"type\": \"boolean\",\n" + - " \"x-go-name\": \"Timestamps\"\n" + - " }\n" + - " },\n" + - " \"x-go-package\": \"k8s.io/api/core/v1\"\n" + - " },\n" + - " \"v1Time\": {\n" + - " \"description\": \"Programs using times should typically store and pass them as values,\\nnot pointers. That is, time variables and struct fields should be of\\ntype time.Time, not *time.Time.\\n\\nA Time value can be used by multiple goroutines simultaneously except\\nthat the methods GobDecode, UnmarshalBinary, UnmarshalJSON and\\nUnmarshalText are not concurrency-safe.\\n\\nTime instants can be compared using the Before, After, and Equal methods.\\nThe Sub method subtracts two instants, producing a Duration.\\nThe Add method adds a Time and a Duration, producing a Time.\\n\\nThe zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC.\\nAs this time is unlikely to come up in practice, the IsZero method gives\\na simple way of detecting a time that has not been initialized explicitly.\\n\\nEach Time has associated with it a Location, consulted when computing the\\npresentation form of the time, such as in the Format, Hour, and Year methods.\\nThe methods Local, UTC, and In return a Time with a specific location.\\nChanging the location in this way changes only the presentation; it does not\\nchange the instant in time being denoted and therefore does not affect the\\ncomputations described in earlier paragraphs.\\n\\nRepresentations of a Time value saved by the GobEncode, MarshalBinary,\\nMarshalJSON, and MarshalText methods store the Time.Location's offset, but not\\nthe location name. They therefore lose information about Daylight Saving Time.\\n\\nIn addition to the required “wall clock” reading, a Time may contain an optional\\nreading of the current process's monotonic clock, to provide additional precision\\nfor comparison or subtraction.\\nSee the “Monotonic Clocks” section in the package documentation for details.\\n\\nNote that the Go == operator compares not just the time instant but also the\\nLocation and the monotonic clock reading. Therefore, Time values should not\\nbe used as map or database keys without first guaranteeing that the\\nidentical Location has been set for all values, which can be achieved\\nthrough use of the UTC or Local method, and that the monotonic clock reading\\nhas been stripped by setting t = t.Round(0). In general, prefer t.Equal(u)\\nto t == u, since t.Equal uses the most accurate comparison available and\\ncorrectly handles the case when only one of its arguments has a monotonic\\nclock reading.\",\n" + - " \"type\": \"string\",\n" + - " \"format\": \"date-time\",\n" + - " \"title\": \"A Time represents an instant in time with nanosecond precision.\",\n" + - " \"x-go-package\": \"k8s.io/apimachinery/pkg/apis/meta/v1\"\n" + - " }\n" + - " }\n" + - "}" - return tmpl -} diff --git a/pkg/api/binoculars/api.swagger.json b/pkg/api/binoculars/api.swagger.json deleted file mode 100644 index e1ee15d781b..00000000000 --- a/pkg/api/binoculars/api.swagger.json +++ /dev/null @@ -1,237 +0,0 @@ -{ - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "swagger": "2.0", - "info": { - "title": "pkg/api/binoculars/binoculars.proto", - "version": "version not set" - }, - "paths": { - "/v1/binoculars/cordon": { - "post": { - "tags": [ - "Binoculars" - ], - "operationId": "Cordon", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/binocularsCordonRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - }, - "/v1/binoculars/log": { - "post": { - "tags": [ - "Binoculars" - ], - "operationId": "Logs", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/binocularsLogRequest" - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/binocularsLogResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/runtimeError" - } - } - } - } - } - }, - "definitions": { - "binocularsCordonRequest": { - "type": "object", - "title": "swagger:model", - "properties": { - "nodeName": { - "type": "string" - } - } - }, - "binocularsLogLine": { - "type": "object", - "title": "swagger:model", - "properties": { - "line": { - "type": "string" - }, - "timestamp": { - "type": "string" - } - } - }, - "binocularsLogRequest": { - "type": "object", - "title": "swagger:model", - "properties": { - "jobId": { - "type": "string" - }, - "logOptions": { - "$ref": "#/definitions/v1PodLogOptions" - }, - "podNamespace": { - "type": "string" - }, - "podNumber": { - "type": "integer", - "format": "int32" - }, - "sinceTime": { - "type": "string" - } - } - }, - "binocularsLogResponse": { - "type": "object", - "title": "swagger:model", - "properties": { - "log": { - "type": "array", - "items": { - "$ref": "#/definitions/binocularsLogLine" - } - } - } - }, - "protobufAny": { - "type": "object", - "properties": { - "typeUrl": { - "type": "string" - }, - "value": { - "type": "string", - "format": "byte" - } - } - }, - "runtimeError": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufAny" - } - }, - "error": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "v1PodLogOptions": { - "type": "object", - "title": "PodLogOptions is the query options for a Pod's logs REST call.", - "properties": { - "apiVersion": { - "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\n+optional", - "type": "string", - "x-go-name": "APIVersion" - }, - "container": { - "description": "The container for which to stream logs. Defaults to only container if there is one container in the pod.\n+optional", - "type": "string", - "x-go-name": "Container" - }, - "follow": { - "description": "Follow the log stream of the pod. Defaults to false.\n+optional", - "type": "boolean", - "x-go-name": "Follow" - }, - "insecureSkipTLSVerifyBackend": { - "description": "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the\nserving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver\nand the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real\nkubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the\nconnection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept\nthe actual log data coming from the real kubelet).\n+optional", - "type": "boolean", - "x-go-name": "InsecureSkipTLSVerifyBackend" - }, - "kind": { - "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\n+optional", - "type": "string", - "x-go-name": "Kind" - }, - "limitBytes": { - "description": "If set, the number of bytes to read from the server before terminating the\nlog output. This may not display a complete final line of logging, and may return\nslightly more or slightly less than the specified limit.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "LimitBytes" - }, - "previous": { - "description": "Return previous terminated container logs. Defaults to false.\n+optional", - "type": "boolean", - "x-go-name": "Previous" - }, - "sinceSeconds": { - "description": "A relative time in seconds before the current time from which to show logs. If this value\nprecedes the time a pod was started, only logs since the pod start will be returned.\nIf this value is in the future, no logs will be returned.\nOnly one of sinceSeconds or sinceTime may be specified.\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "SinceSeconds" - }, - "sinceTime": { - "$ref": "#/definitions/v1Time" - }, - "tailLines": { - "description": "If set, the number of lines from the end of the logs to show. If not specified,\nlogs are shown from the creation of the container or sinceSeconds or sinceTime\n+optional", - "type": "integer", - "format": "int64", - "x-go-name": "TailLines" - }, - "timestamps": { - "description": "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line\nof log output. Defaults to false.\n+optional", - "type": "boolean", - "x-go-name": "Timestamps" - } - }, - "x-go-package": "k8s.io/api/core/v1" - }, - "v1Time": { - "description": "Programs using times should typically store and pass them as values,\nnot pointers. That is, time variables and struct fields should be of\ntype time.Time, not *time.Time.\n\nA Time value can be used by multiple goroutines simultaneously except\nthat the methods GobDecode, UnmarshalBinary, UnmarshalJSON and\nUnmarshalText are not concurrency-safe.\n\nTime instants can be compared using the Before, After, and Equal methods.\nThe Sub method subtracts two instants, producing a Duration.\nThe Add method adds a Time and a Duration, producing a Time.\n\nThe zero value of type Time is January 1, year 1, 00:00:00.000000000 UTC.\nAs this time is unlikely to come up in practice, the IsZero method gives\na simple way of detecting a time that has not been initialized explicitly.\n\nEach Time has associated with it a Location, consulted when computing the\npresentation form of the time, such as in the Format, Hour, and Year methods.\nThe methods Local, UTC, and In return a Time with a specific location.\nChanging the location in this way changes only the presentation; it does not\nchange the instant in time being denoted and therefore does not affect the\ncomputations described in earlier paragraphs.\n\nRepresentations of a Time value saved by the GobEncode, MarshalBinary,\nMarshalJSON, and MarshalText methods store the Time.Location's offset, but not\nthe location name. They therefore lose information about Daylight Saving Time.\n\nIn addition to the required “wall clock” reading, a Time may contain an optional\nreading of the current process's monotonic clock, to provide additional precision\nfor comparison or subtraction.\nSee the “Monotonic Clocks” section in the package documentation for details.\n\nNote that the Go == operator compares not just the time instant but also the\nLocation and the monotonic clock reading. Therefore, Time values should not\nbe used as map or database keys without first guaranteeing that the\nidentical Location has been set for all values, which can be achieved\nthrough use of the UTC or Local method, and that the monotonic clock reading\nhas been stripped by setting t = t.Round(0). In general, prefer t.Equal(u)\nto t == u, since t.Equal uses the most accurate comparison available and\ncorrectly handles the case when only one of its arguments has a monotonic\nclock reading.", - "type": "string", - "format": "date-time", - "title": "A Time represents an instant in time with nanosecond precision.", - "x-go-package": "k8s.io/apimachinery/pkg/apis/meta/v1" - } - } -} \ No newline at end of file diff --git a/pkg/api/binoculars/binoculars.pb.gw.go b/pkg/api/binoculars/binoculars.pb.gw.go deleted file mode 100644 index 821be16f226..00000000000 --- a/pkg/api/binoculars/binoculars.pb.gw.go +++ /dev/null @@ -1,250 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: pkg/api/binoculars/binoculars.proto - -/* -Package binoculars is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package binoculars - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - -func request_Binoculars_Logs_0(ctx context.Context, marshaler runtime.Marshaler, client BinocularsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LogRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.Logs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Binoculars_Logs_0(ctx context.Context, marshaler runtime.Marshaler, server BinocularsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq LogRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.Logs(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Binoculars_Cordon_0(ctx context.Context, marshaler runtime.Marshaler, client BinocularsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CordonRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.Cordon(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Binoculars_Cordon_0(ctx context.Context, marshaler runtime.Marshaler, server BinocularsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CordonRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.Cordon(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterBinocularsHandlerServer registers the http handlers for service Binoculars to "mux". -// UnaryRPC :call BinocularsServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBinocularsHandlerFromEndpoint instead. -func RegisterBinocularsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BinocularsServer) error { - - mux.Handle("POST", pattern_Binoculars_Logs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Binoculars_Logs_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Binoculars_Logs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Binoculars_Cordon_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Binoculars_Cordon_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Binoculars_Cordon_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterBinocularsHandlerFromEndpoint is same as RegisterBinocularsHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterBinocularsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterBinocularsHandler(ctx, mux, conn) -} - -// RegisterBinocularsHandler registers the http handlers for service Binoculars to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterBinocularsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterBinocularsHandlerClient(ctx, mux, NewBinocularsClient(conn)) -} - -// RegisterBinocularsHandlerClient registers the http handlers for service Binoculars -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BinocularsClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BinocularsClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "BinocularsClient" to call the correct interceptors. -func RegisterBinocularsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BinocularsClient) error { - - mux.Handle("POST", pattern_Binoculars_Logs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Binoculars_Logs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Binoculars_Logs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Binoculars_Cordon_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Binoculars_Cordon_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Binoculars_Cordon_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Binoculars_Logs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "binoculars", "log"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Binoculars_Cordon_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "binoculars", "cordon"}, "", runtime.AssumeColonVerbOpt(true))) -) - -var ( - forward_Binoculars_Logs_0 = runtime.ForwardResponseMessage - - forward_Binoculars_Cordon_0 = runtime.ForwardResponseMessage -) diff --git a/pkg/api/event.pb.go b/pkg/api/event.pb.go index 8d888d71e85..8dcf9c281ba 100644 --- a/pkg/api/event.pb.go +++ b/pkg/api/event.pb.go @@ -3119,26 +3119,16 @@ var file_api_event_proto_rawDesc = []byte{ 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x76, 0x69, 0x63, 0x74, 0x65, 0x64, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4f, 0x4d, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x78, 0x63, 0x65, 0x65, 0x64, 0x65, 0x64, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, - 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x10, 0x04, 0x32, 0xe6, 0x01, 0x0a, 0x05, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x65, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x53, 0x65, - 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, - 0x62, 0x53, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x3a, 0x01, 0x2a, 0x22, - 0x18, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2d, 0x73, 0x65, 0x74, 0x2f, 0x7b, 0x71, 0x75, - 0x65, 0x75, 0x65, 0x7d, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x30, 0x01, 0x12, 0x3a, 0x0a, 0x05, 0x57, - 0x61, 0x74, 0x63, 0x68, 0x12, 0x11, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x57, 0x61, 0x74, 0x63, 0x68, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, - 0x22, 0x03, 0x88, 0x02, 0x01, 0x30, 0x01, 0x12, 0x3a, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, - 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x42, 0x40, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, - 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0xaa, 0x02, - 0x14, 0x41, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, - 0x6f, 0x2e, 0x41, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x65, 0x64, 0x10, 0x04, 0x32, 0x43, 0x0a, 0x05, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x65, 0x61, 0x6c, + 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x40, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, + 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, + 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0xaa, 0x02, 0x14, 0x41, 0x72, 0x6d, + 0x61, 0x64, 0x61, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x6f, 0x2e, 0x41, 0x70, + 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3241,14 +3231,10 @@ var file_api_event_proto_depIdxs = []int32{ 20, // 46: api.EventStreamMessage.message:type_name -> api.EventMessage 31, // 47: api.JobUtilisationEvent.MaxResourcesForPeriodEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity 31, // 48: api.JobUtilisationEvent.TotalCumulativeUsageEntry.value:type_name -> k8s.io.apimachinery.pkg.api.resource.Quantity - 23, // 49: api.Event.GetJobSetEvents:input_type -> api.JobSetRequest - 24, // 50: api.Event.Watch:input_type -> api.WatchRequest - 32, // 51: api.Event.Health:input_type -> google.protobuf.Empty - 22, // 52: api.Event.GetJobSetEvents:output_type -> api.EventStreamMessage - 22, // 53: api.Event.Watch:output_type -> api.EventStreamMessage - 33, // 54: api.Event.Health:output_type -> api.HealthCheckResponse - 52, // [52:55] is the sub-list for method output_type - 49, // [49:52] is the sub-list for method input_type + 32, // 49: api.Event.Health:input_type -> google.protobuf.Empty + 33, // 50: api.Event.Health:output_type -> api.HealthCheckResponse + 50, // [50:51] is the sub-list for method output_type + 49, // [49:50] is the sub-list for method input_type 49, // [49:49] is the sub-list for extension type_name 49, // [49:49] is the sub-list for extension extendee 0, // [0:49] is the sub-list for field type_name diff --git a/pkg/api/event.pb.gw.go b/pkg/api/event.pb.gw.go deleted file mode 100644 index a2c8de8f9bc..00000000000 --- a/pkg/api/event.pb.gw.go +++ /dev/null @@ -1,173 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: pkg/api/event.proto - -/* -Package api is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package api - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - -func request_Event_GetJobSetEvents_0(ctx context.Context, marshaler runtime.Marshaler, client EventClient, req *http.Request, pathParams map[string]string) (Event_GetJobSetEventsClient, runtime.ServerMetadata, error) { - var protoReq JobSetRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["queue"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "queue") - } - - protoReq.Queue, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "queue", err) - } - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - stream, err := client.GetJobSetEvents(ctx, &protoReq) - if err != nil { - return nil, metadata, err - } - header, err := stream.Header() - if err != nil { - return nil, metadata, err - } - metadata.HeaderMD = header - return stream, metadata, nil - -} - -// RegisterEventHandlerServer registers the http handlers for service Event to "mux". -// UnaryRPC :call EventServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventHandlerFromEndpoint instead. -func RegisterEventHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventServer) error { - - mux.Handle("POST", pattern_Event_GetJobSetEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") - _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - }) - - return nil -} - -// RegisterEventHandlerFromEndpoint is same as RegisterEventHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterEventHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterEventHandler(ctx, mux, conn) -} - -// RegisterEventHandler registers the http handlers for service Event to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterEventHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterEventHandlerClient(ctx, mux, NewEventClient(conn)) -} - -// RegisterEventHandlerClient registers the http handlers for service Event -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "EventClient" to call the correct interceptors. -func RegisterEventHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventClient) error { - - mux.Handle("POST", pattern_Event_GetJobSetEvents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Event_GetJobSetEvents_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Event_GetJobSetEvents_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Event_GetJobSetEvents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2, 1, 0, 4, 1, 5, 3}, []string{"v1", "job-set", "queue", "id"}, "", runtime.AssumeColonVerbOpt(true))) -) - -var ( - forward_Event_GetJobSetEvents_0 = runtime.ForwardResponseStream -) diff --git a/pkg/api/event.proto b/pkg/api/event.proto index 27c9428a48f..c5d2863a4bf 100644 --- a/pkg/api/event.proto +++ b/pkg/api/event.proto @@ -282,14 +282,14 @@ message WatchRequest { } service Event { - rpc GetJobSetEvents (JobSetRequest) returns (stream EventStreamMessage) { - option (google.api.http) = { - post: "/v1/job-set/{queue}/{id}" - body: "*" - }; - } - rpc Watch (WatchRequest) returns (stream EventStreamMessage) { - option deprecated = true; - } +// rpc GetJobSetEvents (JobSetRequest) returns (stream EventStreamMessage) { +// option (google.api.http) = { +// post: "/v1/job-set/{queue}/{id}" +// body: "*" +// }; +// } +// rpc Watch (WatchRequest) returns (stream EventStreamMessage) { +// option deprecated = true; +// } rpc Health(google.protobuf.Empty) returns (HealthCheckResponse); } diff --git a/pkg/api/event_util.go b/pkg/api/event_util.go deleted file mode 100644 index d66913e86ca..00000000000 --- a/pkg/api/event_util.go +++ /dev/null @@ -1,78 +0,0 @@ -package api - -import ( - "encoding/json" - "reflect" - - "github.com/gogo/protobuf/types" - "github.com/pkg/errors" -) - -type Event interface { - GetJobId() string - GetJobSetId() string - GetQueue() string - GetCreated() *types.Timestamp -} - -type KubernetesEvent interface { - Event - GetKubernetesId() string - GetClusterId() string - GetPodNumber() int32 - GetPodName() string - GetPodNamespace() string -} - -// customise oneof serialisation -func (message *EventMessage) MarshalJSON() ([]byte, error) { - return json.Marshal(message.Events) -} - -func (message *EventMessage) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, message.Events) -} - -func UnwrapEvent(message *EventMessage) (Event, error) { - switch event := message.Events.(type) { - case *EventMessage_Submitted: - return event.Submitted, nil - case *EventMessage_Queued: - return event.Queued, nil - case *EventMessage_Leased: - return event.Leased, nil - case *EventMessage_LeaseReturned: - return event.LeaseReturned, nil - case *EventMessage_LeaseExpired: - return event.LeaseExpired, nil - case *EventMessage_Pending: - return event.Pending, nil - case *EventMessage_Running: - return event.Running, nil - case *EventMessage_UnableToSchedule: - return event.UnableToSchedule, nil - case *EventMessage_Failed: - return event.Failed, nil - case *EventMessage_Succeeded: - return event.Succeeded, nil - case *EventMessage_Reprioritizing: - return event.Reprioritizing, nil - case *EventMessage_Reprioritized: - return event.Reprioritized, nil - case *EventMessage_Cancelling: - return event.Cancelling, nil - case *EventMessage_Cancelled: - return event.Cancelled, nil - case *EventMessage_Terminated: - return event.Terminated, nil - case *EventMessage_Utilisation: - return event.Utilisation, nil - case *EventMessage_IngressInfo: - return event.IngressInfo, nil - case *EventMessage_Preempting: - return event.Preempting, nil - case *EventMessage_Preempted: - return event.Preempted, nil - } - return nil, errors.Errorf("unknown event type: %s", reflect.TypeOf(message.Events)) -} diff --git a/pkg/api/job.pb.gw.go b/pkg/api/job.pb.gw.go deleted file mode 100644 index 250b40b5006..00000000000 --- a/pkg/api/job.pb.gw.go +++ /dev/null @@ -1,331 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: pkg/api/job.proto - -/* -Package api is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package api - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - -func request_Jobs_GetJobStatus_0(ctx context.Context, marshaler runtime.Marshaler, client JobsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobStatusRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetJobStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Jobs_GetJobStatus_0(ctx context.Context, marshaler runtime.Marshaler, server JobsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobStatusRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetJobStatus(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Jobs_GetJobDetails_0(ctx context.Context, marshaler runtime.Marshaler, client JobsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobDetailsRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetJobDetails(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Jobs_GetJobDetails_0(ctx context.Context, marshaler runtime.Marshaler, server JobsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobDetailsRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetJobDetails(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Jobs_GetJobRunDetails_0(ctx context.Context, marshaler runtime.Marshaler, client JobsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobRunDetailsRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetJobRunDetails(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Jobs_GetJobRunDetails_0(ctx context.Context, marshaler runtime.Marshaler, server JobsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobRunDetailsRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.GetJobRunDetails(ctx, &protoReq) - return msg, metadata, err - -} - -// RegisterJobsHandlerServer registers the http handlers for service Jobs to "mux". -// UnaryRPC :call JobsServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterJobsHandlerFromEndpoint instead. -func RegisterJobsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server JobsServer) error { - - mux.Handle("POST", pattern_Jobs_GetJobStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Jobs_GetJobStatus_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Jobs_GetJobStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Jobs_GetJobDetails_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Jobs_GetJobDetails_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Jobs_GetJobDetails_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Jobs_GetJobRunDetails_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Jobs_GetJobRunDetails_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Jobs_GetJobRunDetails_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -// RegisterJobsHandlerFromEndpoint is same as RegisterJobsHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterJobsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterJobsHandler(ctx, mux, conn) -} - -// RegisterJobsHandler registers the http handlers for service Jobs to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterJobsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterJobsHandlerClient(ctx, mux, NewJobsClient(conn)) -} - -// RegisterJobsHandlerClient registers the http handlers for service Jobs -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "JobsClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "JobsClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "JobsClient" to call the correct interceptors. -func RegisterJobsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client JobsClient) error { - - mux.Handle("POST", pattern_Jobs_GetJobStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Jobs_GetJobStatus_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Jobs_GetJobStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Jobs_GetJobDetails_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Jobs_GetJobDetails_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Jobs_GetJobDetails_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Jobs_GetJobRunDetails_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Jobs_GetJobRunDetails_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Jobs_GetJobRunDetails_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Jobs_GetJobStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "job", "status"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Jobs_GetJobDetails_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "job", "details"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Jobs_GetJobRunDetails_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "run", "details"}, "", runtime.AssumeColonVerbOpt(true))) -) - -var ( - forward_Jobs_GetJobStatus_0 = runtime.ForwardResponseMessage - - forward_Jobs_GetJobDetails_0 = runtime.ForwardResponseMessage - - forward_Jobs_GetJobRunDetails_0 = runtime.ForwardResponseMessage -) diff --git a/pkg/api/jobservice/jobservice.pb.go b/pkg/api/jobservice/jobservice.pb.go deleted file mode 100644 index 3d0c45bf2b4..00000000000 --- a/pkg/api/jobservice/jobservice.pb.go +++ /dev/null @@ -1,460 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.34.1 -// protoc (unknown) -// source: api/jobservice/jobservice.proto - -package jobservice - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type HealthCheckResponse_ServingStatus int32 - -const ( - HealthCheckResponse_UNKNOWN HealthCheckResponse_ServingStatus = 0 - HealthCheckResponse_SERVING HealthCheckResponse_ServingStatus = 1 - HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2 -) - -// Enum value maps for HealthCheckResponse_ServingStatus. -var ( - HealthCheckResponse_ServingStatus_name = map[int32]string{ - 0: "UNKNOWN", - 1: "SERVING", - 2: "NOT_SERVING", - } - HealthCheckResponse_ServingStatus_value = map[string]int32{ - "UNKNOWN": 0, - "SERVING": 1, - "NOT_SERVING": 2, - } -) - -func (x HealthCheckResponse_ServingStatus) Enum() *HealthCheckResponse_ServingStatus { - p := new(HealthCheckResponse_ServingStatus) - *p = x - return p -} - -func (x HealthCheckResponse_ServingStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (HealthCheckResponse_ServingStatus) Descriptor() protoreflect.EnumDescriptor { - return file_api_jobservice_jobservice_proto_enumTypes[0].Descriptor() -} - -func (HealthCheckResponse_ServingStatus) Type() protoreflect.EnumType { - return &file_api_jobservice_jobservice_proto_enumTypes[0] -} - -func (x HealthCheckResponse_ServingStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use HealthCheckResponse_ServingStatus.Descriptor instead. -func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) { - return file_api_jobservice_jobservice_proto_rawDescGZIP(), []int{0, 0} -} - -// See event.proto for a list of possible events -// We have filtered down these events to only the important ones for a user -type JobServiceResponse_State int32 - -const ( - JobServiceResponse_SUBMITTED JobServiceResponse_State = 0 - JobServiceResponse_DUPLICATE_FOUND JobServiceResponse_State = 1 - JobServiceResponse_RUNNING JobServiceResponse_State = 2 - JobServiceResponse_FAILED JobServiceResponse_State = 3 - JobServiceResponse_SUCCEEDED JobServiceResponse_State = 4 - JobServiceResponse_CANCELLED JobServiceResponse_State = 5 - JobServiceResponse_JOB_ID_NOT_FOUND JobServiceResponse_State = 6 - JobServiceResponse_CONNECTION_ERR JobServiceResponse_State = 7 -) - -// Enum value maps for JobServiceResponse_State. -var ( - JobServiceResponse_State_name = map[int32]string{ - 0: "SUBMITTED", - 1: "DUPLICATE_FOUND", - 2: "RUNNING", - 3: "FAILED", - 4: "SUCCEEDED", - 5: "CANCELLED", - 6: "JOB_ID_NOT_FOUND", - 7: "CONNECTION_ERR", - } - JobServiceResponse_State_value = map[string]int32{ - "SUBMITTED": 0, - "DUPLICATE_FOUND": 1, - "RUNNING": 2, - "FAILED": 3, - "SUCCEEDED": 4, - "CANCELLED": 5, - "JOB_ID_NOT_FOUND": 6, - "CONNECTION_ERR": 7, - } -) - -func (x JobServiceResponse_State) Enum() *JobServiceResponse_State { - p := new(JobServiceResponse_State) - *p = x - return p -} - -func (x JobServiceResponse_State) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (JobServiceResponse_State) Descriptor() protoreflect.EnumDescriptor { - return file_api_jobservice_jobservice_proto_enumTypes[1].Descriptor() -} - -func (JobServiceResponse_State) Type() protoreflect.EnumType { - return &file_api_jobservice_jobservice_proto_enumTypes[1] -} - -func (x JobServiceResponse_State) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use JobServiceResponse_State.Descriptor instead. -func (JobServiceResponse_State) EnumDescriptor() ([]byte, []int) { - return file_api_jobservice_jobservice_proto_rawDescGZIP(), []int{2, 0} -} - -type HealthCheckResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=jobservice.HealthCheckResponse_ServingStatus" json:"status,omitempty"` -} - -func (x *HealthCheckResponse) Reset() { - *x = HealthCheckResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_jobservice_jobservice_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *HealthCheckResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HealthCheckResponse) ProtoMessage() {} - -func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_jobservice_jobservice_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead. -func (*HealthCheckResponse) Descriptor() ([]byte, []int) { - return file_api_jobservice_jobservice_proto_rawDescGZIP(), []int{0} -} - -func (x *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus { - if x != nil { - return x.Status - } - return HealthCheckResponse_UNKNOWN -} - -type JobServiceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` - JobSetId string `protobuf:"bytes,2,opt,name=job_set_id,json=jobSetId,proto3" json:"job_set_id,omitempty"` - Queue string `protobuf:"bytes,3,opt,name=queue,proto3" json:"queue,omitempty"` -} - -func (x *JobServiceRequest) Reset() { - *x = JobServiceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_api_jobservice_jobservice_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *JobServiceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*JobServiceRequest) ProtoMessage() {} - -func (x *JobServiceRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_jobservice_jobservice_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use JobServiceRequest.ProtoReflect.Descriptor instead. -func (*JobServiceRequest) Descriptor() ([]byte, []int) { - return file_api_jobservice_jobservice_proto_rawDescGZIP(), []int{1} -} - -func (x *JobServiceRequest) GetJobId() string { - if x != nil { - return x.JobId - } - return "" -} - -func (x *JobServiceRequest) GetJobSetId() string { - if x != nil { - return x.JobSetId - } - return "" -} - -func (x *JobServiceRequest) GetQueue() string { - if x != nil { - return x.Queue - } - return "" -} - -type JobServiceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - State JobServiceResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=jobservice.JobServiceResponse_State" json:"state,omitempty"` - // For failed jobs, this will contain a reason why the job failed - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` -} - -func (x *JobServiceResponse) Reset() { - *x = JobServiceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_api_jobservice_jobservice_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *JobServiceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*JobServiceResponse) ProtoMessage() {} - -func (x *JobServiceResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_jobservice_jobservice_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use JobServiceResponse.ProtoReflect.Descriptor instead. -func (*JobServiceResponse) Descriptor() ([]byte, []int) { - return file_api_jobservice_jobservice_proto_rawDescGZIP(), []int{2} -} - -func (x *JobServiceResponse) GetState() JobServiceResponse_State { - if x != nil { - return x.State - } - return JobServiceResponse_SUBMITTED -} - -func (x *JobServiceResponse) GetError() string { - if x != nil { - return x.Error - } - return "" -} - -var File_api_jobservice_jobservice_proto protoreflect.FileDescriptor - -var file_api_jobservice_jobservice_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x0a, 0x6a, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x1b, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, - 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x98, 0x01, 0x0a, 0x13, 0x48, - 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x45, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x6a, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, - 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x3a, 0x0a, 0x0d, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, - 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x45, 0x52, 0x56, 0x49, - 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x52, 0x56, - 0x49, 0x4e, 0x47, 0x10, 0x02, 0x22, 0x5e, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, - 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, - 0x64, 0x12, 0x1c, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x49, 0x64, 0x12, - 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x71, 0x75, 0x65, 0x75, 0x65, 0x22, 0xf5, 0x01, 0x0a, 0x12, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x24, 0x2e, 0x6a, 0x6f, - 0x62, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x8c, - 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x42, 0x4d, - 0x49, 0x54, 0x54, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x55, 0x50, 0x4c, 0x49, - 0x43, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, - 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, - 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, - 0x45, 0x44, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, - 0x44, 0x10, 0x05, 0x12, 0x14, 0x0a, 0x10, 0x4a, 0x4f, 0x42, 0x5f, 0x49, 0x44, 0x5f, 0x4e, 0x4f, - 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x06, 0x12, 0x12, 0x0a, 0x0e, 0x43, 0x4f, 0x4e, - 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x10, 0x07, 0x32, 0x9e, 0x01, - 0x0a, 0x0a, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4d, 0x0a, 0x0c, - 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1d, 0x2e, 0x6a, - 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6a, 0x6f, - 0x62, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x06, 0x48, - 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1f, 0x2e, - 0x6a, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, - 0x68, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x56, - 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, - 0x61, 0x64, 0x61, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, - 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0xaa, 0x02, 0x1f, 0x41, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x6f, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_api_jobservice_jobservice_proto_rawDescOnce sync.Once - file_api_jobservice_jobservice_proto_rawDescData = file_api_jobservice_jobservice_proto_rawDesc -) - -func file_api_jobservice_jobservice_proto_rawDescGZIP() []byte { - file_api_jobservice_jobservice_proto_rawDescOnce.Do(func() { - file_api_jobservice_jobservice_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_jobservice_jobservice_proto_rawDescData) - }) - return file_api_jobservice_jobservice_proto_rawDescData -} - -var file_api_jobservice_jobservice_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_api_jobservice_jobservice_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_api_jobservice_jobservice_proto_goTypes = []interface{}{ - (HealthCheckResponse_ServingStatus)(0), // 0: jobservice.HealthCheckResponse.ServingStatus - (JobServiceResponse_State)(0), // 1: jobservice.JobServiceResponse.State - (*HealthCheckResponse)(nil), // 2: jobservice.HealthCheckResponse - (*JobServiceRequest)(nil), // 3: jobservice.JobServiceRequest - (*JobServiceResponse)(nil), // 4: jobservice.JobServiceResponse - (*emptypb.Empty)(nil), // 5: google.protobuf.Empty -} -var file_api_jobservice_jobservice_proto_depIdxs = []int32{ - 0, // 0: jobservice.HealthCheckResponse.status:type_name -> jobservice.HealthCheckResponse.ServingStatus - 1, // 1: jobservice.JobServiceResponse.state:type_name -> jobservice.JobServiceResponse.State - 3, // 2: jobservice.JobService.GetJobStatus:input_type -> jobservice.JobServiceRequest - 5, // 3: jobservice.JobService.Health:input_type -> google.protobuf.Empty - 4, // 4: jobservice.JobService.GetJobStatus:output_type -> jobservice.JobServiceResponse - 2, // 5: jobservice.JobService.Health:output_type -> jobservice.HealthCheckResponse - 4, // [4:6] is the sub-list for method output_type - 2, // [2:4] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_api_jobservice_jobservice_proto_init() } -func file_api_jobservice_jobservice_proto_init() { - if File_api_jobservice_jobservice_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_api_jobservice_jobservice_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*HealthCheckResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_jobservice_jobservice_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*JobServiceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_api_jobservice_jobservice_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*JobServiceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_api_jobservice_jobservice_proto_rawDesc, - NumEnums: 2, - NumMessages: 3, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_api_jobservice_jobservice_proto_goTypes, - DependencyIndexes: file_api_jobservice_jobservice_proto_depIdxs, - EnumInfos: file_api_jobservice_jobservice_proto_enumTypes, - MessageInfos: file_api_jobservice_jobservice_proto_msgTypes, - }.Build() - File_api_jobservice_jobservice_proto = out.File - file_api_jobservice_jobservice_proto_rawDesc = nil - file_api_jobservice_jobservice_proto_goTypes = nil - file_api_jobservice_jobservice_proto_depIdxs = nil -} diff --git a/pkg/api/jobservice/jobservice.proto b/pkg/api/jobservice/jobservice.proto deleted file mode 100644 index c4dc04e1424..00000000000 --- a/pkg/api/jobservice/jobservice.proto +++ /dev/null @@ -1,46 +0,0 @@ -syntax = 'proto3'; - -package jobservice; -option go_package = "github.com/armadaproject/armada/pkg/api/jobservice"; -option csharp_namespace = "ArmadaProject.Io.Api.JobService"; - -import "google/protobuf/empty.proto"; - - -message HealthCheckResponse { - enum ServingStatus { - UNKNOWN = 0; - SERVING = 1; - NOT_SERVING = 2; - } - ServingStatus status = 1; -} - -message JobServiceRequest { - string job_id = 1; - string job_set_id = 2; - string queue = 3; -} - -message JobServiceResponse { -// See event.proto for a list of possible events -// We have filtered down these events to only the important ones for a user - enum State { - SUBMITTED = 0; - DUPLICATE_FOUND = 1; - RUNNING = 2; - FAILED = 3; - SUCCEEDED = 4; - CANCELLED = 5; - JOB_ID_NOT_FOUND = 6; - CONNECTION_ERR = 7; - } - State state = 1; -// For failed jobs, this will contain a reason why the job failed - string error = 2; -} - -service JobService { - rpc GetJobStatus (JobServiceRequest) returns (JobServiceResponse); - rpc Health (google.protobuf.Empty) returns (HealthCheckResponse); -} \ No newline at end of file diff --git a/pkg/api/jobservice/jobserviceconnect/jobservice.connect.go b/pkg/api/jobservice/jobserviceconnect/jobservice.connect.go deleted file mode 100644 index 7fc0b176b7d..00000000000 --- a/pkg/api/jobservice/jobserviceconnect/jobservice.connect.go +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: api/jobservice/jobservice.proto - -package jobserviceconnect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - jobservice "github.com/armadaproject/armada/pkg/api/jobservice" - emptypb "google.golang.org/protobuf/types/known/emptypb" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // JobServiceName is the fully-qualified name of the JobService service. - JobServiceName = "jobservice.JobService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // JobServiceGetJobStatusProcedure is the fully-qualified name of the JobService's GetJobStatus RPC. - JobServiceGetJobStatusProcedure = "/jobservice.JobService/GetJobStatus" - // JobServiceHealthProcedure is the fully-qualified name of the JobService's Health RPC. - JobServiceHealthProcedure = "/jobservice.JobService/Health" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - jobServiceServiceDescriptor = jobservice.File_api_jobservice_jobservice_proto.Services().ByName("JobService") - jobServiceGetJobStatusMethodDescriptor = jobServiceServiceDescriptor.Methods().ByName("GetJobStatus") - jobServiceHealthMethodDescriptor = jobServiceServiceDescriptor.Methods().ByName("Health") -) - -// JobServiceClient is a client for the jobservice.JobService service. -type JobServiceClient interface { - GetJobStatus(context.Context, *connect.Request[jobservice.JobServiceRequest]) (*connect.Response[jobservice.JobServiceResponse], error) - Health(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[jobservice.HealthCheckResponse], error) -} - -// NewJobServiceClient constructs a client for the jobservice.JobService service. By default, it -// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends -// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or -// connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewJobServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) JobServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &jobServiceClient{ - getJobStatus: connect.NewClient[jobservice.JobServiceRequest, jobservice.JobServiceResponse]( - httpClient, - baseURL+JobServiceGetJobStatusProcedure, - connect.WithSchema(jobServiceGetJobStatusMethodDescriptor), - connect.WithClientOptions(opts...), - ), - health: connect.NewClient[emptypb.Empty, jobservice.HealthCheckResponse]( - httpClient, - baseURL+JobServiceHealthProcedure, - connect.WithSchema(jobServiceHealthMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// jobServiceClient implements JobServiceClient. -type jobServiceClient struct { - getJobStatus *connect.Client[jobservice.JobServiceRequest, jobservice.JobServiceResponse] - health *connect.Client[emptypb.Empty, jobservice.HealthCheckResponse] -} - -// GetJobStatus calls jobservice.JobService.GetJobStatus. -func (c *jobServiceClient) GetJobStatus(ctx context.Context, req *connect.Request[jobservice.JobServiceRequest]) (*connect.Response[jobservice.JobServiceResponse], error) { - return c.getJobStatus.CallUnary(ctx, req) -} - -// Health calls jobservice.JobService.Health. -func (c *jobServiceClient) Health(ctx context.Context, req *connect.Request[emptypb.Empty]) (*connect.Response[jobservice.HealthCheckResponse], error) { - return c.health.CallUnary(ctx, req) -} - -// JobServiceHandler is an implementation of the jobservice.JobService service. -type JobServiceHandler interface { - GetJobStatus(context.Context, *connect.Request[jobservice.JobServiceRequest]) (*connect.Response[jobservice.JobServiceResponse], error) - Health(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[jobservice.HealthCheckResponse], error) -} - -// NewJobServiceHandler builds an HTTP handler from the service implementation. It returns the path -// on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewJobServiceHandler(svc JobServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - jobServiceGetJobStatusHandler := connect.NewUnaryHandler( - JobServiceGetJobStatusProcedure, - svc.GetJobStatus, - connect.WithSchema(jobServiceGetJobStatusMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - jobServiceHealthHandler := connect.NewUnaryHandler( - JobServiceHealthProcedure, - svc.Health, - connect.WithSchema(jobServiceHealthMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/jobservice.JobService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case JobServiceGetJobStatusProcedure: - jobServiceGetJobStatusHandler.ServeHTTP(w, r) - case JobServiceHealthProcedure: - jobServiceHealthHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedJobServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedJobServiceHandler struct{} - -func (UnimplementedJobServiceHandler) GetJobStatus(context.Context, *connect.Request[jobservice.JobServiceRequest]) (*connect.Response[jobservice.JobServiceResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("jobservice.JobService.GetJobStatus is not implemented")) -} - -func (UnimplementedJobServiceHandler) Health(context.Context, *connect.Request[emptypb.Empty]) (*connect.Response[jobservice.HealthCheckResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("jobservice.JobService.Health is not implemented")) -} diff --git a/pkg/api/submit.go b/pkg/api/submit.go deleted file mode 100644 index 0a913f1215b..00000000000 --- a/pkg/api/submit.go +++ /dev/null @@ -1,27 +0,0 @@ -package api - -import ( - "context" - - "github.com/gogo/status" - "google.golang.org/grpc" -) - -type CustomSubmitClient struct { - Inner SubmitClient -} - -func (c *CustomSubmitClient) SubmitJobs(ctx context.Context, in *JobSubmitRequest, opts ...grpc.CallOption) (*JobSubmitResponse, error) { - out, err := c.Inner.SubmitJobs(ctx, in, opts...) - if err != nil { - st := status.Convert(err) - for _, detail := range st.Details() { - switch t := detail.(type) { - case *JobSubmitResponse: - return t, err - } - } - return nil, err - } - return out, nil -} diff --git a/pkg/api/submit.pb.go b/pkg/api/submit.pb.go index 300f8a7bbaa..83882c07606 100644 --- a/pkg/api/submit.pb.go +++ b/pkg/api/submit.pb.go @@ -2598,7 +2598,7 @@ var file_api_submit_proto_rawDesc = []byte{ 0x41, 0x53, 0x45, 0x44, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x45, 0x45, 0x4d, 0x50, 0x54, 0x45, 0x44, 0x10, 0x08, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x09, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, - 0x10, 0x0a, 0x32, 0xb8, 0x03, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x65, 0x72, 0x76, + 0x10, 0x0a, 0x32, 0xec, 0x02, 0x0a, 0x0c, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x33, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, @@ -2621,89 +2621,78 @@ var file_api_submit_proto_rawDesc = []byte{ 0x00, 0x12, 0x2e, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x22, - 0x00, 0x12, 0x4a, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x1d, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x51, 0x75, - 0x65, 0x75, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x51, 0x75, 0x65, - 0x75, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x00, 0x30, 0x01, 0x32, 0x8b, 0x09, - 0x0a, 0x06, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x12, 0x56, 0x0a, 0x0a, 0x53, 0x75, 0x62, 0x6d, - 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, - 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, - 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x12, 0x57, 0x0a, 0x0a, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x15, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x43, 0x61, 0x6e, 0x63, - 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x19, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x6a, - 0x6f, 0x62, 0x2f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x5e, 0x0a, 0x0c, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x00, 0x32, 0xa5, 0x08, 0x0a, 0x06, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x12, 0x56, 0x0a, 0x0a, + 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x75, 0x62, 0x6d, 0x69, + 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x73, 0x75, + 0x62, 0x6d, 0x69, 0x74, 0x12, 0x57, 0x0a, 0x0a, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, + 0x62, 0x73, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x13, 0x3a, 0x01, 0x2a, 0x22, 0x0e, 0x2f, + 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x5e, 0x0a, + 0x0c, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x12, 0x18, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x65, 0x74, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, + 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x3a, 0x01, 0x2a, 0x22, 0x11, 0x2f, 0x76, 0x31, 0x2f, + 0x6a, 0x6f, 0x62, 0x73, 0x65, 0x74, 0x2f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x6e, 0x0a, + 0x10, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x4a, 0x6f, 0x62, + 0x73, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, + 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, + 0x74, 0x69, 0x7a, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x19, 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, + 0x2f, 0x72, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x12, 0x59, 0x0a, + 0x0b, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x16, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82, 0xd3, + 0xe4, 0x93, 0x02, 0x14, 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, + 0x2f, 0x70, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x47, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, + 0x65, 0x75, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x14, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x0e, 0x3a, 0x01, 0x2a, 0x22, 0x09, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, + 0x65, 0x12, 0x63, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, + 0x73, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4c, 0x69, 0x73, + 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x76, 0x31, + 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, + 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x15, 0x3a, 0x01, 0x2a, 0x1a, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2f, + 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x63, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, + 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x51, 0x75, 0x65, 0x75, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, + 0x1a, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x2f, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1c, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x16, 0x3a, 0x01, 0x2a, 0x22, 0x11, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x73, - 0x65, 0x74, 0x2f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x6e, 0x0a, 0x10, 0x52, 0x65, 0x70, - 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x1b, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, - 0x69, 0x7a, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, - 0x3a, 0x01, 0x2a, 0x22, 0x14, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x72, 0x65, 0x70, - 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x12, 0x59, 0x0a, 0x0b, 0x50, 0x72, 0x65, - 0x65, 0x6d, 0x70, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4a, - 0x6f, 0x62, 0x50, 0x72, 0x65, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, - 0x3a, 0x01, 0x2a, 0x22, 0x0f, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2f, 0x70, 0x72, 0x65, - 0x65, 0x6d, 0x70, 0x74, 0x12, 0x47, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, - 0x65, 0x75, 0x65, 0x12, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x1a, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x3a, - 0x01, 0x2a, 0x22, 0x09, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x12, 0x63, 0x0a, - 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x0e, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x51, 0x75, 0x65, 0x75, 0x65, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x24, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x22, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x64, 0x2f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x71, 0x75, 0x65, 0x75, - 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, - 0x65, 0x12, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x3a, 0x01, 0x2a, - 0x1a, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, - 0x65, 0x7d, 0x12, 0x63, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x51, 0x75, 0x65, 0x75, - 0x65, 0x73, 0x12, 0x0e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4c, 0x69, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x51, 0x75, - 0x65, 0x75, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x24, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1e, 0x3a, 0x01, 0x2a, 0x1a, 0x19, 0x2f, 0x76, - 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x2f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x58, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, - 0x75, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x2a, - 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, - 0x7d, 0x12, 0x46, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x14, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x22, - 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, - 0x75, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x64, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x51, 0x75, 0x65, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x53, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x51, 0x75, 0x65, 0x75, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x12, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x62, - 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x30, 0x01, 0x12, - 0x3a, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, - 0x65, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x40, 0x5a, 0x27, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, - 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0xaa, 0x02, 0x14, 0x41, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x6f, 0x2e, 0x41, 0x70, 0x69, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x18, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x12, 0x2a, 0x10, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2f, 0x7b, + 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x46, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x51, 0x75, 0x65, 0x75, + 0x65, 0x12, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x47, 0x65, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x51, 0x75, + 0x65, 0x75, 0x65, 0x22, 0x18, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x12, 0x12, 0x10, 0x2f, 0x76, 0x31, + 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x7d, 0x12, 0x3a, 0x0a, + 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, + 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x40, 0x5a, 0x27, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x70, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x61, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x2f, 0x70, 0x6b, 0x67, + 0x2f, 0x61, 0x70, 0x69, 0xaa, 0x02, 0x14, 0x41, 0x72, 0x6d, 0x61, 0x64, 0x61, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x49, 0x6f, 0x2e, 0x41, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -2824,42 +2813,38 @@ var file_api_submit_proto_depIdxs = []int32{ 19, // 45: api.QueueService.UpdateQueues:input_type -> api.QueueList 23, // 46: api.QueueService.DeleteQueue:input_type -> api.QueueDeleteRequest 21, // 47: api.QueueService.GetQueue:input_type -> api.QueueGetRequest - 22, // 48: api.QueueService.GetQueues:input_type -> api.StreamingQueueGetRequest - 6, // 49: api.Submit.SubmitJobs:input_type -> api.JobSubmitRequest - 8, // 50: api.Submit.CancelJobs:input_type -> api.JobCancelRequest - 9, // 51: api.Submit.CancelJobSet:input_type -> api.JobSetCancelRequest - 12, // 52: api.Submit.ReprioritizeJobs:input_type -> api.JobReprioritizeRequest - 7, // 53: api.Submit.PreemptJobs:input_type -> api.JobPreemptRequest - 16, // 54: api.Submit.CreateQueue:input_type -> api.Queue - 19, // 55: api.Submit.CreateQueues:input_type -> api.QueueList - 16, // 56: api.Submit.UpdateQueue:input_type -> api.Queue - 19, // 57: api.Submit.UpdateQueues:input_type -> api.QueueList - 23, // 58: api.Submit.DeleteQueue:input_type -> api.QueueDeleteRequest - 21, // 59: api.Submit.GetQueue:input_type -> api.QueueGetRequest - 22, // 60: api.Submit.GetQueues:input_type -> api.StreamingQueueGetRequest - 51, // 61: api.Submit.Health:input_type -> google.protobuf.Empty - 51, // 62: api.QueueService.CreateQueue:output_type -> google.protobuf.Empty - 28, // 63: api.QueueService.CreateQueues:output_type -> api.BatchQueueCreateResponse - 51, // 64: api.QueueService.UpdateQueue:output_type -> google.protobuf.Empty - 26, // 65: api.QueueService.UpdateQueues:output_type -> api.BatchQueueUpdateResponse - 51, // 66: api.QueueService.DeleteQueue:output_type -> google.protobuf.Empty - 16, // 67: api.QueueService.GetQueue:output_type -> api.Queue - 30, // 68: api.QueueService.GetQueues:output_type -> api.StreamingQueueMessage - 15, // 69: api.Submit.SubmitJobs:output_type -> api.JobSubmitResponse - 20, // 70: api.Submit.CancelJobs:output_type -> api.CancellationResult - 51, // 71: api.Submit.CancelJobSet:output_type -> google.protobuf.Empty - 13, // 72: api.Submit.ReprioritizeJobs:output_type -> api.JobReprioritizeResponse - 51, // 73: api.Submit.PreemptJobs:output_type -> google.protobuf.Empty - 51, // 74: api.Submit.CreateQueue:output_type -> google.protobuf.Empty - 28, // 75: api.Submit.CreateQueues:output_type -> api.BatchQueueCreateResponse - 51, // 76: api.Submit.UpdateQueue:output_type -> google.protobuf.Empty - 26, // 77: api.Submit.UpdateQueues:output_type -> api.BatchQueueUpdateResponse - 51, // 78: api.Submit.DeleteQueue:output_type -> google.protobuf.Empty - 16, // 79: api.Submit.GetQueue:output_type -> api.Queue - 30, // 80: api.Submit.GetQueues:output_type -> api.StreamingQueueMessage - 52, // 81: api.Submit.Health:output_type -> api.HealthCheckResponse - 62, // [62:82] is the sub-list for method output_type - 42, // [42:62] is the sub-list for method input_type + 6, // 48: api.Submit.SubmitJobs:input_type -> api.JobSubmitRequest + 8, // 49: api.Submit.CancelJobs:input_type -> api.JobCancelRequest + 9, // 50: api.Submit.CancelJobSet:input_type -> api.JobSetCancelRequest + 12, // 51: api.Submit.ReprioritizeJobs:input_type -> api.JobReprioritizeRequest + 7, // 52: api.Submit.PreemptJobs:input_type -> api.JobPreemptRequest + 16, // 53: api.Submit.CreateQueue:input_type -> api.Queue + 19, // 54: api.Submit.CreateQueues:input_type -> api.QueueList + 16, // 55: api.Submit.UpdateQueue:input_type -> api.Queue + 19, // 56: api.Submit.UpdateQueues:input_type -> api.QueueList + 23, // 57: api.Submit.DeleteQueue:input_type -> api.QueueDeleteRequest + 21, // 58: api.Submit.GetQueue:input_type -> api.QueueGetRequest + 51, // 59: api.Submit.Health:input_type -> google.protobuf.Empty + 51, // 60: api.QueueService.CreateQueue:output_type -> google.protobuf.Empty + 28, // 61: api.QueueService.CreateQueues:output_type -> api.BatchQueueCreateResponse + 51, // 62: api.QueueService.UpdateQueue:output_type -> google.protobuf.Empty + 26, // 63: api.QueueService.UpdateQueues:output_type -> api.BatchQueueUpdateResponse + 51, // 64: api.QueueService.DeleteQueue:output_type -> google.protobuf.Empty + 16, // 65: api.QueueService.GetQueue:output_type -> api.Queue + 15, // 66: api.Submit.SubmitJobs:output_type -> api.JobSubmitResponse + 20, // 67: api.Submit.CancelJobs:output_type -> api.CancellationResult + 51, // 68: api.Submit.CancelJobSet:output_type -> google.protobuf.Empty + 13, // 69: api.Submit.ReprioritizeJobs:output_type -> api.JobReprioritizeResponse + 51, // 70: api.Submit.PreemptJobs:output_type -> google.protobuf.Empty + 51, // 71: api.Submit.CreateQueue:output_type -> google.protobuf.Empty + 28, // 72: api.Submit.CreateQueues:output_type -> api.BatchQueueCreateResponse + 51, // 73: api.Submit.UpdateQueue:output_type -> google.protobuf.Empty + 26, // 74: api.Submit.UpdateQueues:output_type -> api.BatchQueueUpdateResponse + 51, // 75: api.Submit.DeleteQueue:output_type -> google.protobuf.Empty + 16, // 76: api.Submit.GetQueue:output_type -> api.Queue + 52, // 77: api.Submit.Health:output_type -> api.HealthCheckResponse + 60, // [60:78] is the sub-list for method output_type + 42, // [42:60] is the sub-list for method input_type 42, // [42:42] is the sub-list for extension type_name 42, // [42:42] is the sub-list for extension extendee 0, // [0:42] is the sub-list for field type_name diff --git a/pkg/api/submit.pb.gw.go b/pkg/api/submit.pb.gw.go deleted file mode 100644 index 59e891d3e3f..00000000000 --- a/pkg/api/submit.pb.gw.go +++ /dev/null @@ -1,1114 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: pkg/api/submit.proto - -/* -Package api is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package api - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/descriptor" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" -) - -// Suppress "imported and not used" errors -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray -var _ = descriptor.ForMessage -var _ = metadata.Join - -func request_Submit_SubmitJobs_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobSubmitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SubmitJobs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_SubmitJobs_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobSubmitRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.SubmitJobs(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Submit_CancelJobs_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobCancelRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CancelJobs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_CancelJobs_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobCancelRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CancelJobs(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Submit_CancelJobSet_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobSetCancelRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CancelJobSet(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_CancelJobSet_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobSetCancelRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CancelJobSet(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Submit_ReprioritizeJobs_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobReprioritizeRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ReprioritizeJobs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_ReprioritizeJobs_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobReprioritizeRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.ReprioritizeJobs(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Submit_PreemptJobs_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobPreemptRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.PreemptJobs(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_PreemptJobs_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq JobPreemptRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.PreemptJobs(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Submit_CreateQueue_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Queue - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateQueue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_CreateQueue_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Queue - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateQueue(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Submit_CreateQueues_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueueList - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateQueues(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_CreateQueues_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueueList - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.CreateQueues(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Submit_UpdateQueue_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Queue - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - - protoReq.Name, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - - msg, err := client.UpdateQueue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_UpdateQueue_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq Queue - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - - protoReq.Name, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - - msg, err := server.UpdateQueue(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Submit_UpdateQueues_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueueList - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.UpdateQueues(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_UpdateQueues_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueueList - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.UpdateQueues(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Submit_DeleteQueue_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueueDeleteRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - - protoReq.Name, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - - msg, err := client.DeleteQueue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_DeleteQueue_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueueDeleteRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - - protoReq.Name, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - - msg, err := server.DeleteQueue(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Submit_GetQueue_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueueGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - - protoReq.Name, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - - msg, err := client.GetQueue(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Submit_GetQueue_0(ctx context.Context, marshaler runtime.Marshaler, server SubmitServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq QueueGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - - protoReq.Name, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - - msg, err := server.GetQueue(ctx, &protoReq) - return msg, metadata, err - -} - -var ( - filter_Submit_GetQueues_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_Submit_GetQueues_0(ctx context.Context, marshaler runtime.Marshaler, client SubmitClient, req *http.Request, pathParams map[string]string) (Submit_GetQueuesClient, runtime.ServerMetadata, error) { - var protoReq StreamingQueueGetRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_Submit_GetQueues_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - stream, err := client.GetQueues(ctx, &protoReq) - if err != nil { - return nil, metadata, err - } - header, err := stream.Header() - if err != nil { - return nil, metadata, err - } - metadata.HeaderMD = header - return stream, metadata, nil - -} - -// RegisterSubmitHandlerServer registers the http handlers for service Submit to "mux". -// UnaryRPC :call SubmitServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSubmitHandlerFromEndpoint instead. -func RegisterSubmitHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SubmitServer) error { - - mux.Handle("POST", pattern_Submit_SubmitJobs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_SubmitJobs_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_SubmitJobs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_CancelJobs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_CancelJobs_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_CancelJobs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_CancelJobSet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_CancelJobSet_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_CancelJobSet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_ReprioritizeJobs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_ReprioritizeJobs_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_ReprioritizeJobs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_PreemptJobs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_PreemptJobs_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_PreemptJobs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_CreateQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_CreateQueue_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_CreateQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_CreateQueues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_CreateQueues_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_CreateQueues_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_Submit_UpdateQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_UpdateQueue_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_UpdateQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_Submit_UpdateQueues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_UpdateQueues_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_UpdateQueues_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_Submit_DeleteQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_DeleteQueue_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_DeleteQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Submit_GetQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Submit_GetQueue_0(rctx, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_GetQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Submit_GetQueues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport") - _, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - }) - - return nil -} - -// RegisterSubmitHandlerFromEndpoint is same as RegisterSubmitHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterSubmitHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterSubmitHandler(ctx, mux, conn) -} - -// RegisterSubmitHandler registers the http handlers for service Submit to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterSubmitHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterSubmitHandlerClient(ctx, mux, NewSubmitClient(conn)) -} - -// RegisterSubmitHandlerClient registers the http handlers for service Submit -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SubmitClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SubmitClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "SubmitClient" to call the correct interceptors. -func RegisterSubmitHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SubmitClient) error { - - mux.Handle("POST", pattern_Submit_SubmitJobs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_SubmitJobs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_SubmitJobs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_CancelJobs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_CancelJobs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_CancelJobs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_CancelJobSet_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_CancelJobSet_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_CancelJobSet_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_ReprioritizeJobs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_ReprioritizeJobs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_ReprioritizeJobs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_PreemptJobs_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_PreemptJobs_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_PreemptJobs_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_CreateQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_CreateQueue_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_CreateQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Submit_CreateQueues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_CreateQueues_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_CreateQueues_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_Submit_UpdateQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_UpdateQueue_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_UpdateQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_Submit_UpdateQueues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_UpdateQueues_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_UpdateQueues_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_Submit_DeleteQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_DeleteQueue_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_DeleteQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Submit_GetQueue_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_GetQueue_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_GetQueue_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_Submit_GetQueues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Submit_GetQueues_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Submit_GetQueues_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_Submit_SubmitJobs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "job", "submit"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_CancelJobs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "job", "cancel"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_CancelJobSet_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "jobset", "cancel"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_ReprioritizeJobs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "job", "reprioritize"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_PreemptJobs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "job", "preempt"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_CreateQueue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "queue"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_CreateQueues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "batched", "create_queues"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_UpdateQueue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "queue", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_UpdateQueues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "batched", "update_queues"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_DeleteQueue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "queue", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_GetQueue_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 1, 5, 2}, []string{"v1", "queue", "name"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Submit_GetQueues_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "batched", "queues"}, "", runtime.AssumeColonVerbOpt(true))) -) - -var ( - forward_Submit_SubmitJobs_0 = runtime.ForwardResponseMessage - - forward_Submit_CancelJobs_0 = runtime.ForwardResponseMessage - - forward_Submit_CancelJobSet_0 = runtime.ForwardResponseMessage - - forward_Submit_ReprioritizeJobs_0 = runtime.ForwardResponseMessage - - forward_Submit_PreemptJobs_0 = runtime.ForwardResponseMessage - - forward_Submit_CreateQueue_0 = runtime.ForwardResponseMessage - - forward_Submit_CreateQueues_0 = runtime.ForwardResponseMessage - - forward_Submit_UpdateQueue_0 = runtime.ForwardResponseMessage - - forward_Submit_UpdateQueues_0 = runtime.ForwardResponseMessage - - forward_Submit_DeleteQueue_0 = runtime.ForwardResponseMessage - - forward_Submit_GetQueue_0 = runtime.ForwardResponseMessage - - forward_Submit_GetQueues_0 = runtime.ForwardResponseStream -) diff --git a/pkg/api/submit.proto b/pkg/api/submit.proto index da1726d5a93..49854af837c 100644 --- a/pkg/api/submit.proto +++ b/pkg/api/submit.proto @@ -273,7 +273,7 @@ service QueueService { rpc UpdateQueues (QueueList) returns (BatchQueueUpdateResponse){} rpc DeleteQueue (QueueDeleteRequest) returns (google.protobuf.Empty) {} rpc GetQueue (QueueGetRequest) returns (Queue) {} - rpc GetQueues (StreamingQueueGetRequest) returns (stream StreamingQueueMessage) {} + // rpc GetQueues (StreamingQueueGetRequest) returns (stream StreamingQueueMessage) {} } service Submit { @@ -341,10 +341,10 @@ service Submit { get: "/v1/queue/{name}" }; } - rpc GetQueues (StreamingQueueGetRequest) returns (stream StreamingQueueMessage) { - option (google.api.http) = { - get: "/v1/batched/queues" - }; - } +// rpc GetQueues (StreamingQueueGetRequest) returns (stream StreamingQueueMessage) { +// option (google.api.http) = { +// get: "/v1/batched/queues" +// }; +// } rpc Health(google.protobuf.Empty) returns (HealthCheckResponse); }