Skip to content

Commit

Permalink
discovery client hashes for APIGroup (#6)
Browse files Browse the repository at this point in the history
* discovery client hash for GroupVersionForDiscovery

* Update generated files

* update compatibility fixture data
  • Loading branch information
kevindelgado authored Apr 28, 2022
1 parent f02682c commit 96cc06c
Show file tree
Hide file tree
Showing 35 changed files with 491 additions and 184 deletions.
4 changes: 4 additions & 0 deletions api/openapi-spec/swagger.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__apiextensions.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__apps_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__authentication.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__authorization.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__autoscaling_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__batch_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__certificates.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__coordination.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__discovery.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__events.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__networking.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__node.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__policy_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__scheduling.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis__storage.k8s.io_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
4 changes: 4 additions & 0 deletions api/openapi-spec/v3/apis_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
"description": "groupVersion specifies the API group and version in the form \"group/version\"",
"type": "string"
},
"hash": {
"description": "hash is the current hash of the GroupVersion, used allow the client to detect if the groupversion has changed at all.",
"type": "string"
},
"version": {
"default": "",
"description": "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.",
Expand Down
7 changes: 7 additions & 0 deletions pkg/generated/openapi/zz_generated.openapi.go

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

6 changes: 4 additions & 2 deletions staging/src/k8s.io/api/testdata/HEAD/core.v1.APIGroup.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
"versions": [
{
"groupVersion": "groupVersionValue",
"version": "versionValue"
"version": "versionValue",
"hash": "hashValue"
}
],
"preferredVersion": {
"groupVersion": "groupVersionValue",
"version": "versionValue"
"version": "versionValue",
"hash": "hashValue"
},
"serverAddressByClientCIDRs": [
{
Expand Down
Binary file modified staging/src/k8s.io/api/testdata/HEAD/core.v1.APIGroup.pb
Binary file not shown.
2 changes: 2 additions & 0 deletions staging/src/k8s.io/api/testdata/HEAD/core.v1.APIGroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ kind: APIGroup
name: nameValue
preferredVersion:
groupVersion: groupVersionValue
hash: hashValue
version: versionValue
serverAddressByClientCIDRs:
- clientCIDR: clientCIDRValue
serverAddress: serverAddressValue
versions:
- groupVersion: groupVersionValue
hash: hashValue
version: versionValue

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

Loading

0 comments on commit 96cc06c

Please sign in to comment.