forked from instrumenta/kubernetes-json-schema
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yann Hamon
committed
Jul 27, 2024
1 parent
b5d36d0
commit c7a46bf
Showing
68 changed files
with
4,817 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"description": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", | ||
"properties": { | ||
"apiVersion": { | ||
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"enum": [ | ||
"coordination.k8s.io/v1alpha1" | ||
] | ||
}, | ||
"kind": { | ||
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"enum": [ | ||
"LeaseCandidate" | ||
] | ||
}, | ||
"metadata": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", | ||
"description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" | ||
}, | ||
"spec": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1alpha1.LeaseCandidateSpec", | ||
"description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" | ||
} | ||
}, | ||
"type": "object", | ||
"x-kubernetes-group-version-kind": [ | ||
{ | ||
"group": "coordination.k8s.io", | ||
"kind": "LeaseCandidate", | ||
"version": "v1alpha1" | ||
} | ||
], | ||
"$schema": "http://json-schema.org/schema#" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"description": "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.", | ||
"properties": { | ||
"apiVersion": { | ||
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"kind": { | ||
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"enum": [ | ||
"LeaseCandidate" | ||
] | ||
}, | ||
"metadata": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta", | ||
"description": "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" | ||
}, | ||
"spec": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1alpha1.LeaseCandidateSpec", | ||
"description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" | ||
} | ||
}, | ||
"type": "object", | ||
"x-kubernetes-group-version-kind": [ | ||
{ | ||
"group": "coordination.k8s.io", | ||
"kind": "LeaseCandidate", | ||
"version": "v1alpha1" | ||
} | ||
], | ||
"$schema": "http://json-schema.org/schema#" | ||
} |
51 changes: 51 additions & 0 deletions
51
master-local/leasecandidatelist-coordination-v1alpha1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"description": "LeaseCandidateList is a list of Lease objects.", | ||
"properties": { | ||
"apiVersion": { | ||
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"enum": [ | ||
"coordination.k8s.io/v1alpha1" | ||
] | ||
}, | ||
"items": { | ||
"description": "items is a list of schema objects.", | ||
"items": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.api.coordination.v1alpha1.LeaseCandidate" | ||
}, | ||
"type": [ | ||
"array", | ||
"null" | ||
] | ||
}, | ||
"kind": { | ||
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"enum": [ | ||
"LeaseCandidateList" | ||
] | ||
}, | ||
"metadata": { | ||
"$ref": "_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta", | ||
"description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" | ||
} | ||
}, | ||
"required": [ | ||
"items" | ||
], | ||
"type": "object", | ||
"x-kubernetes-group-version-kind": [ | ||
{ | ||
"group": "coordination.k8s.io", | ||
"kind": "LeaseCandidateList", | ||
"version": "v1alpha1" | ||
} | ||
], | ||
"$schema": "http://json-schema.org/schema#" | ||
} |
Oops, something went wrong.