kubernetypes 1.35.8 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/admission/v1.d.ts +13 -13
- package/dist/api/admission/v1beta1.d.ts +7 -7
- package/dist/api/apiextensions/v1.d.ts +15 -15
- package/dist/api/authentication/v1.d.ts +33 -33
- package/dist/api/authentication/v1alpha1.d.ts +3 -3
- package/dist/api/authentication/v1beta1.d.ts +24 -24
- package/dist/api/authorization/v1.d.ts +48 -48
- package/dist/api/authorization/v1beta1.d.ts +48 -48
- package/dist/api/autoscaling/v1.d.ts +23 -23
- package/dist/api/autoscaling/v2.d.ts +16 -16
- package/dist/api/batch/v1.d.ts +1 -1
- package/dist/api/batch/v1beta1.d.ts +1 -1
- package/dist/api/certificates/v1beta1.d.ts +43 -15
- package/dist/api/coordination/v1alpha2.d.ts +1 -1
- package/dist/api/coordination/v1beta1.d.ts +1 -1
- package/dist/api/core/v1.d.ts +130 -63
- package/dist/api/discovery/v1.d.ts +1 -1
- package/dist/api/discovery/v1beta1.d.ts +9 -9
- package/dist/api/extensions/v1beta1.d.ts +44 -44
- package/dist/api/imagepolicy/v1alpha1.d.ts +2 -2
- package/dist/api/networking/v1.d.ts +1 -1
- package/dist/api/networking/v1beta1.d.ts +22 -22
- package/dist/api/policy/v1.d.ts +4 -4
- package/dist/api/policy/v1beta1.d.ts +18 -18
- package/dist/api/resource/v1.d.ts +123 -30
- package/dist/api/resource/v1alpha3.d.ts +166 -1
- package/dist/api/resource/v1beta1.d.ts +134 -27
- package/dist/api/resource/v1beta2.d.ts +261 -45
- package/dist/api/scheduling/v1.d.ts +1 -1
- package/dist/api/scheduling/v1alpha2.d.ts +405 -0
- package/dist/api/scheduling/v1beta1.d.ts +1 -1
- package/dist/api/storage/v1.d.ts +53 -33
- package/dist/api/storage/v1alpha1.d.ts +5 -5
- package/dist/api/storage/v1beta1.d.ts +51 -31
- package/dist/apimachinery/apis/meta/v1.d.ts +78 -9
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as m2 from 'kubernetypes/api/authentication/v1';
|
|
2
|
-
import * as
|
|
2
|
+
import * as m1 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
3
3
|
import * as m3 from 'kubernetypes/apimachinery/runtime';
|
|
4
|
-
import * as
|
|
4
|
+
import * as m0 from 'kubernetypes/apimachinery/types';
|
|
5
5
|
/**
|
|
6
6
|
* AdmissionRequest describes the admission.Attributes for the admission request.
|
|
7
7
|
*/
|
|
@@ -14,7 +14,7 @@ export type AdmissionRequest = {
|
|
|
14
14
|
/**
|
|
15
15
|
* kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
|
|
16
16
|
*/
|
|
17
|
-
'kind'
|
|
17
|
+
'kind'?: m1.GroupVersionKind;
|
|
18
18
|
/**
|
|
19
19
|
* name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and
|
|
20
20
|
* rely on the server to generate the name. If that is the case, this field will contain an empty string.
|
|
@@ -36,7 +36,7 @@ export type AdmissionRequest = {
|
|
|
36
36
|
* operation is the operation being performed. This may be different than the operation
|
|
37
37
|
* requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
|
|
38
38
|
*/
|
|
39
|
-
'operation'
|
|
39
|
+
'operation'?: Operation;
|
|
40
40
|
/**
|
|
41
41
|
* options is the operation option structure of the operation being performed.
|
|
42
42
|
* e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be
|
|
@@ -57,7 +57,7 @@ export type AdmissionRequest = {
|
|
|
57
57
|
*
|
|
58
58
|
* See documentation for the "matchPolicy" field in the webhook configuration type for more details.
|
|
59
59
|
*/
|
|
60
|
-
'requestKind'?:
|
|
60
|
+
'requestKind'?: m1.GroupVersionKind;
|
|
61
61
|
/**
|
|
62
62
|
* requestResource is the fully-qualified resource of the original API request (for example, v1.pods).
|
|
63
63
|
* If this is specified and differs from the value in "resource", an equivalent match and conversion was performed.
|
|
@@ -70,7 +70,7 @@ export type AdmissionRequest = {
|
|
|
70
70
|
*
|
|
71
71
|
* See documentation for the "matchPolicy" field in the webhook configuration type.
|
|
72
72
|
*/
|
|
73
|
-
'requestResource'?:
|
|
73
|
+
'requestResource'?: m1.GroupVersionResource;
|
|
74
74
|
/**
|
|
75
75
|
* requestSubResource is the name of the subresource of the original API request, if any (for example, "status" or "scale")
|
|
76
76
|
* If this is specified and differs from the value in "subResource", an equivalent match and conversion was performed.
|
|
@@ -80,7 +80,7 @@ export type AdmissionRequest = {
|
|
|
80
80
|
/**
|
|
81
81
|
* resource is the fully-qualified resource being requested (for example, v1.pods)
|
|
82
82
|
*/
|
|
83
|
-
'resource'
|
|
83
|
+
'resource'?: m1.GroupVersionResource;
|
|
84
84
|
/**
|
|
85
85
|
* subResource is the subresource being requested, if any (for example, "status" or "scale")
|
|
86
86
|
*/
|
|
@@ -91,11 +91,11 @@ export type AdmissionRequest = {
|
|
|
91
91
|
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
|
|
92
92
|
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
|
|
93
93
|
*/
|
|
94
|
-
'uid'
|
|
94
|
+
'uid'?: m0.UID;
|
|
95
95
|
/**
|
|
96
96
|
* userInfo is information about the requesting user
|
|
97
97
|
*/
|
|
98
|
-
'userInfo'
|
|
98
|
+
'userInfo'?: m2.UserInfo;
|
|
99
99
|
};
|
|
100
100
|
/**
|
|
101
101
|
* AdmissionResponse describes an admission response.
|
|
@@ -104,7 +104,7 @@ export type AdmissionResponse = {
|
|
|
104
104
|
/**
|
|
105
105
|
* allowed indicates whether or not the admission request was permitted.
|
|
106
106
|
*/
|
|
107
|
-
'allowed'
|
|
107
|
+
'allowed'?: boolean;
|
|
108
108
|
/**
|
|
109
109
|
* auditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
|
|
110
110
|
* MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with
|
|
@@ -126,12 +126,12 @@ export type AdmissionResponse = {
|
|
|
126
126
|
* status is the result contains extra details into why an admission request was denied.
|
|
127
127
|
* This field IS NOT consulted in any way if "Allowed" is "true".
|
|
128
128
|
*/
|
|
129
|
-
'status'?:
|
|
129
|
+
'status'?: m1.Status;
|
|
130
130
|
/**
|
|
131
131
|
* uid is an identifier for the individual request/response.
|
|
132
132
|
* This must be copied over from the corresponding AdmissionRequest.
|
|
133
133
|
*/
|
|
134
|
-
'uid'
|
|
134
|
+
'uid'?: m0.UID;
|
|
135
135
|
/**
|
|
136
136
|
* warnings is a list of warning messages to return to the requesting API client.
|
|
137
137
|
* Warning messages describe a problem the client making the API request should correct or be aware of.
|
|
@@ -143,7 +143,7 @@ export type AdmissionResponse = {
|
|
|
143
143
|
/**
|
|
144
144
|
* AdmissionReview describes an admission review request/response.
|
|
145
145
|
*/
|
|
146
|
-
export type AdmissionReview =
|
|
146
|
+
export type AdmissionReview = m1.TypeMeta<'admission.k8s.io/v1', 'AdmissionReview'> & {
|
|
147
147
|
/**
|
|
148
148
|
* request describes the attributes for the admission request.
|
|
149
149
|
*/
|
|
@@ -14,7 +14,7 @@ export type AdmissionRequest = {
|
|
|
14
14
|
/**
|
|
15
15
|
* kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
|
|
16
16
|
*/
|
|
17
|
-
'kind'
|
|
17
|
+
'kind'?: m0.GroupVersionKind;
|
|
18
18
|
/**
|
|
19
19
|
* name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and
|
|
20
20
|
* rely on the server to generate the name. If that is the case, this field will contain an empty string.
|
|
@@ -36,7 +36,7 @@ export type AdmissionRequest = {
|
|
|
36
36
|
* operation is the operation being performed. This may be different than the operation
|
|
37
37
|
* requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
|
|
38
38
|
*/
|
|
39
|
-
'operation'
|
|
39
|
+
'operation'?: Operation;
|
|
40
40
|
/**
|
|
41
41
|
* options is the operation option structure of the operation being performed.
|
|
42
42
|
* e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be
|
|
@@ -80,7 +80,7 @@ export type AdmissionRequest = {
|
|
|
80
80
|
/**
|
|
81
81
|
* resource is the fully-qualified resource being requested (for example, v1.pods)
|
|
82
82
|
*/
|
|
83
|
-
'resource'
|
|
83
|
+
'resource'?: m0.GroupVersionResource;
|
|
84
84
|
/**
|
|
85
85
|
* subResource is the subresource being requested, if any (for example, "status" or "scale")
|
|
86
86
|
*/
|
|
@@ -91,11 +91,11 @@ export type AdmissionRequest = {
|
|
|
91
91
|
* The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request.
|
|
92
92
|
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
|
|
93
93
|
*/
|
|
94
|
-
'uid'
|
|
94
|
+
'uid'?: m1.UID;
|
|
95
95
|
/**
|
|
96
96
|
* userInfo is information about the requesting user
|
|
97
97
|
*/
|
|
98
|
-
'userInfo'
|
|
98
|
+
'userInfo'?: m2.UserInfo;
|
|
99
99
|
};
|
|
100
100
|
/**
|
|
101
101
|
* AdmissionResponse describes an admission response.
|
|
@@ -104,7 +104,7 @@ export type AdmissionResponse = {
|
|
|
104
104
|
/**
|
|
105
105
|
* allowed indicates whether or not the admission request was permitted.
|
|
106
106
|
*/
|
|
107
|
-
'allowed'
|
|
107
|
+
'allowed'?: boolean;
|
|
108
108
|
/**
|
|
109
109
|
* auditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
|
|
110
110
|
* MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with
|
|
@@ -131,7 +131,7 @@ export type AdmissionResponse = {
|
|
|
131
131
|
* uid is an identifier for the individual request/response.
|
|
132
132
|
* This should be copied over from the corresponding AdmissionRequest.
|
|
133
133
|
*/
|
|
134
|
-
'uid'
|
|
134
|
+
'uid'?: m1.UID;
|
|
135
135
|
/**
|
|
136
136
|
* warnings is a list of warning messages to return to the requesting API client.
|
|
137
137
|
* Warning messages describe a problem the client making the API request should correct or be aware of.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
1
|
+
import * as m2 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
2
|
+
import * as m1 from 'kubernetypes/apimachinery/runtime';
|
|
3
|
+
import * as m0 from 'kubernetypes/apimachinery/types';
|
|
4
4
|
export type ConditionStatus = 'False' | 'True' | 'Unknown' | (string & {});
|
|
5
5
|
/**
|
|
6
6
|
* ConversionRequest describes the conversion request parameters.
|
|
@@ -13,14 +13,14 @@ export type ConversionRequest = {
|
|
|
13
13
|
/**
|
|
14
14
|
* objects is the list of custom resource objects to be converted.
|
|
15
15
|
*/
|
|
16
|
-
'objects':
|
|
16
|
+
'objects': m1.RawExtension[];
|
|
17
17
|
/**
|
|
18
18
|
* uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are
|
|
19
19
|
* otherwise identical (parallel requests, etc).
|
|
20
20
|
* The UID is meant to track the round trip (request/response) between the Kubernetes API server and the webhook, not the user request.
|
|
21
21
|
* It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging.
|
|
22
22
|
*/
|
|
23
|
-
'uid':
|
|
23
|
+
'uid': m0.UID;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* ConversionResponse describes a conversion response.
|
|
@@ -32,7 +32,7 @@ export type ConversionResponse = {
|
|
|
32
32
|
* must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace).
|
|
33
33
|
* The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored.
|
|
34
34
|
*/
|
|
35
|
-
'convertedObjects':
|
|
35
|
+
'convertedObjects': m1.RawExtension[];
|
|
36
36
|
/**
|
|
37
37
|
* result contains the result of conversion with extra details if the conversion failed. `result.status` determines if
|
|
38
38
|
* the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the
|
|
@@ -40,17 +40,17 @@ export type ConversionResponse = {
|
|
|
40
40
|
* `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message`
|
|
41
41
|
* will be used to construct an error message for the end user.
|
|
42
42
|
*/
|
|
43
|
-
'result':
|
|
43
|
+
'result': m2.Status;
|
|
44
44
|
/**
|
|
45
45
|
* uid is an identifier for the individual request/response.
|
|
46
46
|
* This should be copied over from the corresponding `request.uid`.
|
|
47
47
|
*/
|
|
48
|
-
'uid':
|
|
48
|
+
'uid': m0.UID;
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* ConversionReview describes a conversion request/response.
|
|
52
52
|
*/
|
|
53
|
-
export type ConversionReview =
|
|
53
|
+
export type ConversionReview = m2.TypeMeta<'apiextensions.k8s.io/v1', 'ConversionReview'> & {
|
|
54
54
|
/**
|
|
55
55
|
* request describes the attributes for the conversion request.
|
|
56
56
|
*/
|
|
@@ -119,12 +119,12 @@ export type CustomResourceConversion = {
|
|
|
119
119
|
* CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format
|
|
120
120
|
* <.spec.name>.<.spec.group>.
|
|
121
121
|
*/
|
|
122
|
-
export type CustomResourceDefinition =
|
|
122
|
+
export type CustomResourceDefinition = m2.TypeMeta<'apiextensions.k8s.io/v1', 'CustomResourceDefinition'> & {
|
|
123
123
|
/**
|
|
124
124
|
* Standard object's metadata
|
|
125
125
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
126
126
|
*/
|
|
127
|
-
'metadata'?:
|
|
127
|
+
'metadata'?: m2.ObjectMeta;
|
|
128
128
|
/**
|
|
129
129
|
* spec describes how the user wants the resources to appear
|
|
130
130
|
*/
|
|
@@ -141,7 +141,7 @@ export type CustomResourceDefinitionCondition = {
|
|
|
141
141
|
/**
|
|
142
142
|
* lastTransitionTime last time the condition transitioned from one status to another.
|
|
143
143
|
*/
|
|
144
|
-
'lastTransitionTime'?:
|
|
144
|
+
'lastTransitionTime'?: m2.Time;
|
|
145
145
|
/**
|
|
146
146
|
* message is a human-readable message indicating details about last transition.
|
|
147
147
|
*/
|
|
@@ -169,11 +169,11 @@ export type CustomResourceDefinitionCondition = {
|
|
|
169
169
|
/**
|
|
170
170
|
* CustomResourceDefinitionConditionType is a valid value for CustomResourceDefinitionCondition.Type
|
|
171
171
|
*/
|
|
172
|
-
export type CustomResourceDefinitionConditionType = 'Established' | 'KubernetesAPIApprovalPolicyConformant' | 'NamesAccepted' | 'NonStructuralSchema' | 'Terminating' | (string & {});
|
|
172
|
+
export type CustomResourceDefinitionConditionType = 'Established' | 'KubernetesAPIApprovalPolicyConformant' | 'NamesAccepted' | 'NonStructuralSchema' | 'StorageMigrating' | 'Terminating' | (string & {});
|
|
173
173
|
/**
|
|
174
174
|
* CustomResourceDefinitionList is a list of CustomResourceDefinition objects.
|
|
175
175
|
*/
|
|
176
|
-
export type CustomResourceDefinitionList =
|
|
176
|
+
export type CustomResourceDefinitionList = m2.TypeMeta<'apiextensions.k8s.io/v1', 'CustomResourceDefinitionList'> & {
|
|
177
177
|
/**
|
|
178
178
|
* items list individual CustomResourceDefinition objects
|
|
179
179
|
*/
|
|
@@ -182,7 +182,7 @@ export type CustomResourceDefinitionList = m0.TypeMeta<'apiextensions.k8s.io/v1'
|
|
|
182
182
|
* Standard object's metadata
|
|
183
183
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
184
184
|
*/
|
|
185
|
-
'metadata'?:
|
|
185
|
+
'metadata'?: m2.ListMeta;
|
|
186
186
|
};
|
|
187
187
|
/**
|
|
188
188
|
* CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
|
|
@@ -5,19 +5,19 @@ import * as m1 from 'kubernetypes/apimachinery/types';
|
|
|
5
5
|
*/
|
|
6
6
|
export type BoundObjectReference = {
|
|
7
7
|
/**
|
|
8
|
-
* API version of the referent.
|
|
8
|
+
* apiVersion is API version of the referent.
|
|
9
9
|
*/
|
|
10
10
|
'apiVersion'?: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* kind of the referent. Valid kinds are 'Pod' and 'Secret'.
|
|
13
13
|
*/
|
|
14
14
|
'kind'?: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* name of the referent.
|
|
17
17
|
*/
|
|
18
18
|
'name'?: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* uid of the referent.
|
|
21
21
|
*/
|
|
22
22
|
'uid'?: m1.UID;
|
|
23
23
|
};
|
|
@@ -32,12 +32,12 @@ export type ExtraValue = string[];
|
|
|
32
32
|
*/
|
|
33
33
|
export type SelfSubjectReview = m0.TypeMeta<'authentication.k8s.io/v1', 'SelfSubjectReview'> & {
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* metadata is standard object's metadata.
|
|
36
36
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
37
37
|
*/
|
|
38
38
|
'metadata'?: m0.ObjectMeta;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* status is filled in by the server with the user attributes.
|
|
41
41
|
*/
|
|
42
42
|
'status'?: SelfSubjectReviewStatus;
|
|
43
43
|
};
|
|
@@ -46,7 +46,7 @@ export type SelfSubjectReview = m0.TypeMeta<'authentication.k8s.io/v1', 'SelfSub
|
|
|
46
46
|
*/
|
|
47
47
|
export type SelfSubjectReviewStatus = {
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* userInfo is a set of attributes belonging to the user making this request.
|
|
50
50
|
*/
|
|
51
51
|
'userInfo'?: UserInfo;
|
|
52
52
|
};
|
|
@@ -55,16 +55,16 @@ export type SelfSubjectReviewStatus = {
|
|
|
55
55
|
*/
|
|
56
56
|
export type TokenRequest = m0.TypeMeta<'authentication.k8s.io/v1', 'TokenRequest'> & {
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* metadata is the standard object's metadata.
|
|
59
59
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
60
60
|
*/
|
|
61
61
|
'metadata'?: m0.ObjectMeta;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* spec holds information about the request being evaluated
|
|
64
64
|
*/
|
|
65
|
-
'spec'
|
|
65
|
+
'spec'?: TokenRequestSpec;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* status is filled in by the server and indicates whether the token can be authenticated.
|
|
68
68
|
*/
|
|
69
69
|
'status'?: TokenRequestStatus;
|
|
70
70
|
};
|
|
@@ -73,16 +73,16 @@ export type TokenRequest = m0.TypeMeta<'authentication.k8s.io/v1', 'TokenRequest
|
|
|
73
73
|
*/
|
|
74
74
|
export type TokenRequestSpec = {
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* audiences are the intendend audiences of the token. A recipient of a
|
|
77
77
|
* token must identify themself with an identifier in the list of
|
|
78
78
|
* audiences of the token, and otherwise should reject the token. A
|
|
79
79
|
* token issued for multiple audiences may be used to authenticate
|
|
80
80
|
* against any of the audiences listed but implies a high degree of
|
|
81
81
|
* trust between the target audiences.
|
|
82
82
|
*/
|
|
83
|
-
'audiences'
|
|
83
|
+
'audiences'?: string[];
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* boundObjectRef is a reference to an object that the token will be bound to.
|
|
86
86
|
* The token will only be valid for as long as the bound object exists.
|
|
87
87
|
* NOTE: The API server's TokenReview endpoint will validate the
|
|
88
88
|
* BoundObjectRef, but other audiences may not. Keep ExpirationSeconds
|
|
@@ -90,7 +90,7 @@ export type TokenRequestSpec = {
|
|
|
90
90
|
*/
|
|
91
91
|
'boundObjectRef'?: BoundObjectReference;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* expirationSeconds is the requested duration of validity of the request. The
|
|
94
94
|
* token issuer may return a token with a different validity duration so a
|
|
95
95
|
* client needs to check the 'expiration' field in a response.
|
|
96
96
|
*/
|
|
@@ -101,13 +101,13 @@ export type TokenRequestSpec = {
|
|
|
101
101
|
*/
|
|
102
102
|
export type TokenRequestStatus = {
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* expirationTimestamp is the time of expiration of the returned token.
|
|
105
105
|
*/
|
|
106
|
-
'expirationTimestamp'
|
|
106
|
+
'expirationTimestamp'?: m0.Time;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* token is the opaque bearer token.
|
|
109
109
|
*/
|
|
110
|
-
'token'
|
|
110
|
+
'token'?: string;
|
|
111
111
|
};
|
|
112
112
|
/**
|
|
113
113
|
* TokenReview attempts to authenticate a token to a known user.
|
|
@@ -116,16 +116,16 @@ export type TokenRequestStatus = {
|
|
|
116
116
|
*/
|
|
117
117
|
export type TokenReview = m0.TypeMeta<'authentication.k8s.io/v1', 'TokenReview'> & {
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* metadata is the standard object's metadata.
|
|
120
120
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
121
121
|
*/
|
|
122
122
|
'metadata'?: m0.ObjectMeta;
|
|
123
123
|
/**
|
|
124
|
-
*
|
|
124
|
+
* spec holds information about the request being evaluated
|
|
125
125
|
*/
|
|
126
126
|
'spec': TokenReviewSpec;
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* status is filled in by the server and indicates whether the request can be authenticated.
|
|
129
129
|
*/
|
|
130
130
|
'status'?: TokenReviewStatus;
|
|
131
131
|
};
|
|
@@ -134,7 +134,7 @@ export type TokenReview = m0.TypeMeta<'authentication.k8s.io/v1', 'TokenReview'>
|
|
|
134
134
|
*/
|
|
135
135
|
export type TokenReviewSpec = {
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
137
|
+
* audiences is a list of the identifiers that the resource server presented
|
|
138
138
|
* with the token identifies as. Audience-aware token authenticators will
|
|
139
139
|
* verify that the token was intended for at least one of the audiences in
|
|
140
140
|
* this list. If no audiences are provided, the audience will default to the
|
|
@@ -142,16 +142,16 @@ export type TokenReviewSpec = {
|
|
|
142
142
|
*/
|
|
143
143
|
'audiences'?: string[];
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
145
|
+
* token is the opaque bearer token.
|
|
146
146
|
*/
|
|
147
|
-
'token'
|
|
147
|
+
'token': string;
|
|
148
148
|
};
|
|
149
149
|
/**
|
|
150
150
|
* TokenReviewStatus is the result of the token authentication request.
|
|
151
151
|
*/
|
|
152
152
|
export type TokenReviewStatus = {
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* audiences are audience identifiers chosen by the authenticator that are
|
|
155
155
|
* compatible with both the TokenReview and token. An identifier is any
|
|
156
156
|
* identifier in the intersection of the TokenReviewSpec audiences and the
|
|
157
157
|
* token's audiences. A client of the TokenReview API that sets the
|
|
@@ -163,15 +163,15 @@ export type TokenReviewStatus = {
|
|
|
163
163
|
*/
|
|
164
164
|
'audiences'?: string[];
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
166
|
+
* authenticated indicates that the token was associated with a known user.
|
|
167
167
|
*/
|
|
168
168
|
'authenticated'?: boolean;
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* error indicates that the token couldn't be checked
|
|
171
171
|
*/
|
|
172
172
|
'error'?: string;
|
|
173
173
|
/**
|
|
174
|
-
*
|
|
174
|
+
* user is the UserInfo associated with the provided token.
|
|
175
175
|
*/
|
|
176
176
|
'user'?: UserInfo;
|
|
177
177
|
};
|
|
@@ -181,23 +181,23 @@ export type TokenReviewStatus = {
|
|
|
181
181
|
*/
|
|
182
182
|
export type UserInfo = {
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* extra is any additional information provided by the authenticator.
|
|
185
185
|
*/
|
|
186
186
|
'extra'?: {
|
|
187
187
|
[key: string]: ExtraValue;
|
|
188
188
|
};
|
|
189
189
|
/**
|
|
190
|
-
*
|
|
190
|
+
* groups is the names of groups this user is a part of.
|
|
191
191
|
*/
|
|
192
192
|
'groups'?: string[];
|
|
193
193
|
/**
|
|
194
|
-
*
|
|
194
|
+
* uid is a unique value that identifies this user across time. If this user is
|
|
195
195
|
* deleted and another user by the same name is added, they will have
|
|
196
196
|
* different UIDs.
|
|
197
197
|
*/
|
|
198
198
|
'uid'?: string;
|
|
199
199
|
/**
|
|
200
|
-
*
|
|
200
|
+
* username is the name that uniquely identifies this user among all active users.
|
|
201
201
|
*/
|
|
202
202
|
'username'?: string;
|
|
203
203
|
};
|
|
@@ -7,12 +7,12 @@ import * as m0 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
|
7
7
|
*/
|
|
8
8
|
export type SelfSubjectReview = m0.TypeMeta<'authentication.k8s.io/v1alpha1', 'SelfSubjectReview'> & {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* metadata is the standard object's metadata.
|
|
11
11
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
12
12
|
*/
|
|
13
13
|
'metadata'?: m0.ObjectMeta;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* status is filled in by the server with the user attributes.
|
|
16
16
|
*/
|
|
17
17
|
'status'?: SelfSubjectReviewStatus;
|
|
18
18
|
};
|
|
@@ -21,7 +21,7 @@ export type SelfSubjectReview = m0.TypeMeta<'authentication.k8s.io/v1alpha1', 'S
|
|
|
21
21
|
*/
|
|
22
22
|
export type SelfSubjectReviewStatus = {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* userInfo is a set of attributes belonging to the user making this request.
|
|
25
25
|
*/
|
|
26
26
|
'userInfo'?: m1.UserInfo;
|
|
27
27
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as m1 from 'kubernetypes/api/authentication/v1';
|
|
2
|
+
import * as m0 from 'kubernetypes/apimachinery/apis/meta/v1';
|
|
3
3
|
/**
|
|
4
4
|
* ExtraValue masks the value so protobuf can generate
|
|
5
5
|
*/
|
|
@@ -9,14 +9,14 @@ export type ExtraValue = string[];
|
|
|
9
9
|
* When using impersonation, users will receive the user info of the user being impersonated. If impersonation or
|
|
10
10
|
* request header authentication is used, any extra keys will have their case ignored and returned as lowercase.
|
|
11
11
|
*/
|
|
12
|
-
export type SelfSubjectReview =
|
|
12
|
+
export type SelfSubjectReview = m0.TypeMeta<'authentication.k8s.io/v1beta1', 'SelfSubjectReview'> & {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* metadata is the standard object's metadata.
|
|
15
15
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
16
16
|
*/
|
|
17
|
-
'metadata'?:
|
|
17
|
+
'metadata'?: m0.ObjectMeta;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* status is filled in by the server with the user attributes.
|
|
20
20
|
*/
|
|
21
21
|
'status'?: SelfSubjectReviewStatus;
|
|
22
22
|
};
|
|
@@ -25,27 +25,27 @@ export type SelfSubjectReview = m1.TypeMeta<'authentication.k8s.io/v1beta1', 'Se
|
|
|
25
25
|
*/
|
|
26
26
|
export type SelfSubjectReviewStatus = {
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* userInfo is a set of attributes belonging to the user making this request.
|
|
29
29
|
*/
|
|
30
|
-
'userInfo'?:
|
|
30
|
+
'userInfo'?: m1.UserInfo;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* TokenReview attempts to authenticate a token to a known user.
|
|
34
34
|
* Note: TokenReview requests may be cached by the webhook token authenticator
|
|
35
35
|
* plugin in the kube-apiserver.
|
|
36
36
|
*/
|
|
37
|
-
export type TokenReview =
|
|
37
|
+
export type TokenReview = m0.TypeMeta<'authentication.k8s.io/v1beta1', 'TokenReview'> & {
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* metadata is the standard object's metadata.
|
|
40
40
|
* More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
|
|
41
41
|
*/
|
|
42
|
-
'metadata'?:
|
|
42
|
+
'metadata'?: m0.ObjectMeta;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* spec holds information about the request being evaluated
|
|
45
45
|
*/
|
|
46
46
|
'spec': TokenReviewSpec;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* status is filled in by the server and indicates whether the token can be authenticated.
|
|
49
49
|
*/
|
|
50
50
|
'status'?: TokenReviewStatus;
|
|
51
51
|
};
|
|
@@ -54,7 +54,7 @@ export type TokenReview = m1.TypeMeta<'authentication.k8s.io/v1beta1', 'TokenRev
|
|
|
54
54
|
*/
|
|
55
55
|
export type TokenReviewSpec = {
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* audiences is a list of the identifiers that the resource server presented
|
|
58
58
|
* with the token identifies as. Audience-aware token authenticators will
|
|
59
59
|
* verify that the token was intended for at least one of the audiences in
|
|
60
60
|
* this list. If no audiences are provided, the audience will default to the
|
|
@@ -62,16 +62,16 @@ export type TokenReviewSpec = {
|
|
|
62
62
|
*/
|
|
63
63
|
'audiences'?: string[];
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* token is the opaque bearer token.
|
|
66
66
|
*/
|
|
67
|
-
'token'
|
|
67
|
+
'token': string;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
70
|
* TokenReviewStatus is the result of the token authentication request.
|
|
71
71
|
*/
|
|
72
72
|
export type TokenReviewStatus = {
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* audiences are audience identifiers chosen by the authenticator that are
|
|
75
75
|
* compatible with both the TokenReview and token. An identifier is any
|
|
76
76
|
* identifier in the intersection of the TokenReviewSpec audiences and the
|
|
77
77
|
* token's audiences. A client of the TokenReview API that sets the
|
|
@@ -83,15 +83,15 @@ export type TokenReviewStatus = {
|
|
|
83
83
|
*/
|
|
84
84
|
'audiences'?: string[];
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* authenticated indicates that the token was associated with a known user.
|
|
87
87
|
*/
|
|
88
88
|
'authenticated'?: boolean;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* error indicates that the token couldn't be checked
|
|
91
91
|
*/
|
|
92
92
|
'error'?: string;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* user is the UserInfo associated with the provided token.
|
|
95
95
|
*/
|
|
96
96
|
'user'?: UserInfo;
|
|
97
97
|
};
|
|
@@ -101,23 +101,23 @@ export type TokenReviewStatus = {
|
|
|
101
101
|
*/
|
|
102
102
|
export type UserInfo = {
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* extra is any additional information provided by the authenticator.
|
|
105
105
|
*/
|
|
106
106
|
'extra'?: {
|
|
107
107
|
[key: string]: ExtraValue;
|
|
108
108
|
};
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* groups is the names of groups this user is a part of.
|
|
111
111
|
*/
|
|
112
112
|
'groups'?: string[];
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* uid is a unique value that identifies this user across time. If this user is
|
|
115
115
|
* deleted and another user by the same name is added, they will have
|
|
116
116
|
* different UIDs.
|
|
117
117
|
*/
|
|
118
118
|
'uid'?: string;
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* username is the name that uniquely identifies this user among all active users.
|
|
121
121
|
*/
|
|
122
122
|
'username'?: string;
|
|
123
123
|
};
|