kubernetes-fluent-client 1.8.1 → 1.8.3
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/kinds.d.ts.map +1 -1
- package/dist/kinds.js +16 -2
- package/dist/kinds.test.js +4 -0
- package/dist/upstream.d.ts +1 -1
- package/dist/upstream.d.ts.map +1 -1
- package/dist/upstream.js +3 -2
- package/package.json +13 -13
- package/src/kinds.test.ts +4 -0
- package/src/kinds.ts +16 -3
- package/src/upstream.ts +2 -1
package/dist/kinds.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../src/kinds.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"kinds.d.ts","sourceRoot":"","sources":["../src/kinds.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAokBzD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAErE;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,UAAW,YAAY,oBAAoB,gBAAgB,SAUnF,CAAC"}
|
package/dist/kinds.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RegisterKind = exports.modelToGroupVersionKind = void 0;
|
|
6
6
|
const gvkMap = {
|
|
7
7
|
/**
|
|
8
|
-
* Represents a K8s Event resource.
|
|
8
|
+
* Represents a K8s Event resource (new Event in the events.k8s.io API)
|
|
9
9
|
* Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
|
10
10
|
* Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not
|
|
11
11
|
* rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued
|
|
@@ -13,11 +13,25 @@ const gvkMap = {
|
|
|
13
13
|
*
|
|
14
14
|
* @see {@link https://kubernetes.io/docs/reference/kubernetes-api/cluster-resources/event-v1/}
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
EventsV1Event: {
|
|
17
17
|
kind: "Event",
|
|
18
18
|
version: "v1",
|
|
19
19
|
group: "events.k8s.io",
|
|
20
20
|
},
|
|
21
|
+
/**
|
|
22
|
+
* Represents a K8s Event resource (legacy core v1 Event, use the above one instead, it is more complete)
|
|
23
|
+
* Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
|
24
|
+
* Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not
|
|
25
|
+
* rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued
|
|
26
|
+
* existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
|
|
27
|
+
*
|
|
28
|
+
* @see {@link https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#event-v1-core}
|
|
29
|
+
*/
|
|
30
|
+
CoreV1Event: {
|
|
31
|
+
kind: "Event",
|
|
32
|
+
version: "v1",
|
|
33
|
+
group: "",
|
|
34
|
+
},
|
|
21
35
|
/**
|
|
22
36
|
* Represents a K8s ClusterRole resource.
|
|
23
37
|
* ClusterRole is a set of permissions that can be bound to a user or group in a cluster-wide scope.
|
package/dist/kinds.test.js
CHANGED
|
@@ -10,6 +10,10 @@ const testCases = [
|
|
|
10
10
|
name: index_1.kind.Event,
|
|
11
11
|
expected: { group: "events.k8s.io", version: "v1", kind: "Event" },
|
|
12
12
|
},
|
|
13
|
+
{
|
|
14
|
+
name: index_1.kind.CoreEvent,
|
|
15
|
+
expected: { group: "", version: "v1", kind: "Event" },
|
|
16
|
+
},
|
|
13
17
|
{
|
|
14
18
|
name: index_1.kind.ClusterRole,
|
|
15
19
|
expected: { group: "rbac.authorization.k8s.io", version: "v1", kind: "ClusterRole" },
|
package/dist/upstream.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** a is a collection of K8s types to be used within an action: `When(a.Configmap)` */
|
|
2
|
-
export { CoreV1Event as Event, V1APIService as APIService, V1CertificateSigningRequest as CertificateSigningRequest, V1ClusterRole as ClusterRole, V1ClusterRoleBinding as ClusterRoleBinding, V1ConfigMap as ConfigMap, V1ControllerRevision as ControllerRevision, V1CronJob as CronJob, V1CSIDriver as CSIDriver, V1CustomResourceDefinition as CustomResourceDefinition, V1DaemonSet as DaemonSet, V1Deployment as Deployment, V1EndpointSlice as EndpointSlice, V1HorizontalPodAutoscaler as HorizontalPodAutoscaler, V1Ingress as Ingress, V1IngressClass as IngressClass, V1Job as Job, V1LimitRange as LimitRange, V1LocalSubjectAccessReview as LocalSubjectAccessReview, V1MutatingWebhookConfiguration as MutatingWebhookConfiguration, V1Namespace as Namespace, V1NetworkPolicy as NetworkPolicy, V1Node as Node, V1PersistentVolume as PersistentVolume, V1PersistentVolumeClaim as PersistentVolumeClaim, V1Pod as Pod, V1PodDisruptionBudget as PodDisruptionBudget, V1PodTemplate as PodTemplate, V1ReplicaSet as ReplicaSet, V1ReplicationController as ReplicationController, V1ResourceQuota as ResourceQuota, V1Role as Role, V1RoleBinding as RoleBinding, V1RuntimeClass as RuntimeClass, V1Secret as Secret, V1SelfSubjectAccessReview as SelfSubjectAccessReview, V1SelfSubjectRulesReview as SelfSubjectRulesReview, V1Service as Service, V1ServiceAccount as ServiceAccount, V1StatefulSet as StatefulSet, V1StorageClass as StorageClass, V1SubjectAccessReview as SubjectAccessReview, V1TokenReview as TokenReview, V1ValidatingWebhookConfiguration as ValidatingWebhookConfiguration, V1VolumeAttachment as VolumeAttachment, } from "@kubernetes/client-node";
|
|
2
|
+
export { CoreV1Event as CoreEvent, EventsV1Event as Event, V1APIService as APIService, V1CertificateSigningRequest as CertificateSigningRequest, V1ClusterRole as ClusterRole, V1ClusterRoleBinding as ClusterRoleBinding, V1ConfigMap as ConfigMap, V1ControllerRevision as ControllerRevision, V1CronJob as CronJob, V1CSIDriver as CSIDriver, V1CustomResourceDefinition as CustomResourceDefinition, V1DaemonSet as DaemonSet, V1Deployment as Deployment, V1EndpointSlice as EndpointSlice, V1HorizontalPodAutoscaler as HorizontalPodAutoscaler, V1Ingress as Ingress, V1IngressClass as IngressClass, V1Job as Job, V1LimitRange as LimitRange, V1LocalSubjectAccessReview as LocalSubjectAccessReview, V1MutatingWebhookConfiguration as MutatingWebhookConfiguration, V1Namespace as Namespace, V1NetworkPolicy as NetworkPolicy, V1Node as Node, V1PersistentVolume as PersistentVolume, V1PersistentVolumeClaim as PersistentVolumeClaim, V1Pod as Pod, V1PodDisruptionBudget as PodDisruptionBudget, V1PodTemplate as PodTemplate, V1ReplicaSet as ReplicaSet, V1ReplicationController as ReplicationController, V1ResourceQuota as ResourceQuota, V1Role as Role, V1RoleBinding as RoleBinding, V1RuntimeClass as RuntimeClass, V1Secret as Secret, V1SelfSubjectAccessReview as SelfSubjectAccessReview, V1SelfSubjectRulesReview as SelfSubjectRulesReview, V1Service as Service, V1ServiceAccount as ServiceAccount, V1StatefulSet as StatefulSet, V1StorageClass as StorageClass, V1SubjectAccessReview as SubjectAccessReview, V1TokenReview as TokenReview, V1ValidatingWebhookConfiguration as ValidatingWebhookConfiguration, V1VolumeAttachment as VolumeAttachment, } from "@kubernetes/client-node";
|
|
3
3
|
export { GenericKind } from "./types";
|
|
4
4
|
//# sourceMappingURL=upstream.d.ts.map
|
package/dist/upstream.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upstream.d.ts","sourceRoot":"","sources":["../src/upstream.ts"],"names":[],"mappings":"AAGA,sFAAsF;AACtF,OAAO,EACL,WAAW,IAAI,KAAK,
|
|
1
|
+
{"version":3,"file":"upstream.d.ts","sourceRoot":"","sources":["../src/upstream.ts"],"names":[],"mappings":"AAGA,sFAAsF;AACtF,OAAO,EACL,WAAW,IAAI,SAAS,EACxB,aAAa,IAAI,KAAK,EACtB,YAAY,IAAI,UAAU,EAC1B,2B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2,10 +2,11 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
// SPDX-FileCopyrightText: 2023-Present The Kubernetes Fluent Client Authors
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.GenericKind = exports.VolumeAttachment = exports.ValidatingWebhookConfiguration = exports.TokenReview = exports.SubjectAccessReview = exports.StorageClass = exports.StatefulSet = exports.ServiceAccount = exports.Service = exports.SelfSubjectRulesReview = exports.SelfSubjectAccessReview = exports.Secret = exports.RuntimeClass = exports.RoleBinding = exports.Role = exports.ResourceQuota = exports.ReplicationController = exports.ReplicaSet = exports.PodTemplate = exports.PodDisruptionBudget = exports.Pod = exports.PersistentVolumeClaim = exports.PersistentVolume = exports.Node = exports.NetworkPolicy = exports.Namespace = exports.MutatingWebhookConfiguration = exports.LocalSubjectAccessReview = exports.LimitRange = exports.Job = exports.IngressClass = exports.Ingress = exports.HorizontalPodAutoscaler = exports.EndpointSlice = exports.Deployment = exports.DaemonSet = exports.CustomResourceDefinition = exports.CSIDriver = exports.CronJob = exports.ControllerRevision = exports.ConfigMap = exports.ClusterRoleBinding = exports.ClusterRole = exports.CertificateSigningRequest = exports.APIService = exports.Event = void 0;
|
|
5
|
+
exports.GenericKind = exports.VolumeAttachment = exports.ValidatingWebhookConfiguration = exports.TokenReview = exports.SubjectAccessReview = exports.StorageClass = exports.StatefulSet = exports.ServiceAccount = exports.Service = exports.SelfSubjectRulesReview = exports.SelfSubjectAccessReview = exports.Secret = exports.RuntimeClass = exports.RoleBinding = exports.Role = exports.ResourceQuota = exports.ReplicationController = exports.ReplicaSet = exports.PodTemplate = exports.PodDisruptionBudget = exports.Pod = exports.PersistentVolumeClaim = exports.PersistentVolume = exports.Node = exports.NetworkPolicy = exports.Namespace = exports.MutatingWebhookConfiguration = exports.LocalSubjectAccessReview = exports.LimitRange = exports.Job = exports.IngressClass = exports.Ingress = exports.HorizontalPodAutoscaler = exports.EndpointSlice = exports.Deployment = exports.DaemonSet = exports.CustomResourceDefinition = exports.CSIDriver = exports.CronJob = exports.ControllerRevision = exports.ConfigMap = exports.ClusterRoleBinding = exports.ClusterRole = exports.CertificateSigningRequest = exports.APIService = exports.Event = exports.CoreEvent = void 0;
|
|
6
6
|
/** a is a collection of K8s types to be used within an action: `When(a.Configmap)` */
|
|
7
7
|
var client_node_1 = require("@kubernetes/client-node");
|
|
8
|
-
Object.defineProperty(exports, "
|
|
8
|
+
Object.defineProperty(exports, "CoreEvent", { enumerable: true, get: function () { return client_node_1.CoreV1Event; } });
|
|
9
|
+
Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return client_node_1.EventsV1Event; } });
|
|
9
10
|
Object.defineProperty(exports, "APIService", { enumerable: true, get: function () { return client_node_1.V1APIService; } });
|
|
10
11
|
Object.defineProperty(exports, "CertificateSigningRequest", { enumerable: true, get: function () { return client_node_1.V1CertificateSigningRequest; } });
|
|
11
12
|
Object.defineProperty(exports, "ClusterRole", { enumerable: true, get: function () { return client_node_1.V1ClusterRole; } });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kubernetes-fluent-client",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "A @kubernetes/client-node fluent API wrapper that leverages K8s Server Side Apply",
|
|
5
5
|
"bin": "./dist/cli.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,24 +40,24 @@
|
|
|
40
40
|
"fast-json-patch": "3.1.1",
|
|
41
41
|
"http-status-codes": "2.3.0",
|
|
42
42
|
"node-fetch": "2.7.0",
|
|
43
|
-
"quicktype-core": "
|
|
44
|
-
"type-fest": "4.
|
|
43
|
+
"quicktype-core": "github:defenseunicorns/temp-quicktype-fork#main",
|
|
44
|
+
"type-fest": "4.7.1",
|
|
45
45
|
"yargs": "17.7.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@commitlint/cli": "18.
|
|
49
|
-
"@commitlint/config-conventional": "18.
|
|
48
|
+
"@commitlint/cli": "18.4.0",
|
|
49
|
+
"@commitlint/config-conventional": "18.4.0",
|
|
50
50
|
"@jest/globals": "29.7.0",
|
|
51
|
-
"@types/byline": "4.2.
|
|
52
|
-
"@types/readable-stream": "4.0.
|
|
53
|
-
"@types/yargs": "17.0.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "6.
|
|
55
|
-
"@typescript-eslint/parser": "6.
|
|
56
|
-
"eslint-plugin-jsdoc": "46.
|
|
51
|
+
"@types/byline": "4.2.36",
|
|
52
|
+
"@types/readable-stream": "4.0.5",
|
|
53
|
+
"@types/yargs": "17.0.31",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "6.10.0",
|
|
55
|
+
"@typescript-eslint/parser": "6.10.0",
|
|
56
|
+
"eslint-plugin-jsdoc": "46.9.0",
|
|
57
57
|
"jest": "29.7.0",
|
|
58
|
-
"nock": "13.3.
|
|
58
|
+
"nock": "13.3.8",
|
|
59
59
|
"prettier": "3.0.3",
|
|
60
|
-
"semantic-release": "22.0.
|
|
60
|
+
"semantic-release": "22.0.7",
|
|
61
61
|
"ts-jest": "29.1.1",
|
|
62
62
|
"typescript": "5.2.2"
|
|
63
63
|
},
|
package/src/kinds.test.ts
CHANGED
|
@@ -12,6 +12,10 @@ const testCases = [
|
|
|
12
12
|
name: kind.Event,
|
|
13
13
|
expected: { group: "events.k8s.io", version: "v1", kind: "Event" },
|
|
14
14
|
},
|
|
15
|
+
{
|
|
16
|
+
name: kind.CoreEvent,
|
|
17
|
+
expected: { group: "", version: "v1", kind: "Event" },
|
|
18
|
+
},
|
|
15
19
|
{
|
|
16
20
|
name: kind.ClusterRole,
|
|
17
21
|
expected: { group: "rbac.authorization.k8s.io", version: "v1", kind: "ClusterRole" },
|
package/src/kinds.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { GenericClass, GroupVersionKind } from "./types";
|
|
|
5
5
|
|
|
6
6
|
const gvkMap: Record<string, GroupVersionKind> = {
|
|
7
7
|
/**
|
|
8
|
-
* Represents a K8s Event resource.
|
|
8
|
+
* Represents a K8s Event resource (new Event in the events.k8s.io API)
|
|
9
9
|
* Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
|
10
10
|
* Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not
|
|
11
11
|
* rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued
|
|
@@ -13,12 +13,25 @@ const gvkMap: Record<string, GroupVersionKind> = {
|
|
|
13
13
|
*
|
|
14
14
|
* @see {@link https://kubernetes.io/docs/reference/kubernetes-api/cluster-resources/event-v1/}
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
EventsV1Event: {
|
|
17
17
|
kind: "Event",
|
|
18
18
|
version: "v1",
|
|
19
19
|
group: "events.k8s.io",
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Represents a K8s Event resource (legacy core v1 Event, use the above one instead, it is more complete)
|
|
23
|
+
* Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
|
|
24
|
+
* Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not
|
|
25
|
+
* rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued
|
|
26
|
+
* existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
|
|
27
|
+
*
|
|
28
|
+
* @see {@link https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#event-v1-core}
|
|
29
|
+
*/
|
|
30
|
+
CoreV1Event: {
|
|
31
|
+
kind: "Event",
|
|
32
|
+
version: "v1",
|
|
33
|
+
group: "",
|
|
34
|
+
},
|
|
22
35
|
/**
|
|
23
36
|
* Represents a K8s ClusterRole resource.
|
|
24
37
|
* ClusterRole is a set of permissions that can be bound to a user or group in a cluster-wide scope.
|
package/src/upstream.ts
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
/** a is a collection of K8s types to be used within an action: `When(a.Configmap)` */
|
|
5
5
|
export {
|
|
6
|
-
CoreV1Event as
|
|
6
|
+
CoreV1Event as CoreEvent,
|
|
7
|
+
EventsV1Event as Event,
|
|
7
8
|
V1APIService as APIService,
|
|
8
9
|
V1CertificateSigningRequest as CertificateSigningRequest,
|
|
9
10
|
V1ClusterRole as ClusterRole,
|