@intentius/chant-lexicon-k8s 0.1.20 → 0.1.21

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.
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "62d619a7f24cdaeee1db7c66d6eea98397944372dbbf5eb1353b9c42d2e295e4",
5
- "meta.json": "f315a2abf6e1407dfdef268c3bf2464c0ce1e64efee2c0024e7988ccb998dbce",
6
- "types/index.d.ts": "72113f9248f36975a96fea9adfddbd79d5b2c9b97d507cf5b3d11a413887d2e1",
4
+ "manifest.json": "f40fc25f533fecde7d6d15bac92e1ba8317cda2b870af8c5a8615118794a49cf",
5
+ "meta.json": "4b5a8e54681b5968490520a0e166d8d4c14448e404bd6f1d890311a5425a348a",
6
+ "types/index.d.ts": "d4bb24d2e60e97dcc25d5c902b14a87ce34f2ba9c0ca6fc520bb908e9901609d",
7
7
  "rules/argo-appset-single-project.ts": "afa9f310753aa2d475f35012b13135b2dfaebed2a35d44edbe185ebc07673674",
8
8
  "rules/argo-ast.ts": "f57b7d84fef9c9cd326a7cad0dff290914e01299415d64bdab48e2f6eb4181c3",
9
9
  "rules/argo-automated-prune.ts": "176ac5441c3ccb7106a194abab3abe22fd8a29f976716761c66c243b72d57b14",
@@ -50,5 +50,5 @@
50
50
  "skills/chant-k8s-aks.md": "e18f0e2b055f72cd7a37deaf258d7027c2d4d3e286e8fd4975b27a1f981a3ad9",
51
51
  "skills/chant-k8s-argo.md": "b1a0b826559d8c5033a479c5781efaf650320f0aee4419d8841170bd3393cea5"
52
52
  },
53
- "composite": "78c6b4b1315fa05bd804b6ae50b5c2ed6b17e0bfae360315552990651f5dd024"
53
+ "composite": "37fec7d459f6ae28828bef835c044a6697cdacb752f128b1f36345fe130b6753"
54
54
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k8s",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "K8s",
6
6
  "intrinsics": [],
package/dist/meta.json CHANGED
@@ -384,6 +384,53 @@
384
384
  "apiVersion": "v1",
385
385
  "gvkKind": "EventList"
386
386
  },
387
+ "CrdbCluster": {
388
+ "resourceType": "K8s::Crdb::CrdbCluster",
389
+ "kind": "resource",
390
+ "lexicon": "k8s",
391
+ "apiVersion": "crdb.cockroachlabs.com/v1alpha1",
392
+ "gvkKind": "CrdbCluster"
393
+ },
394
+ "CrdbCluster_Affinity": {
395
+ "resourceType": "K8s::Crdb::CrdbCluster.affinity",
396
+ "kind": "property",
397
+ "lexicon": "k8s"
398
+ },
399
+ "CrdbCluster_DataStore": {
400
+ "resourceType": "K8s::Crdb::CrdbCluster.dataStore",
401
+ "kind": "property",
402
+ "lexicon": "k8s"
403
+ },
404
+ "CrdbCluster_Image": {
405
+ "resourceType": "K8s::Crdb::CrdbCluster.image",
406
+ "kind": "property",
407
+ "lexicon": "k8s"
408
+ },
409
+ "CrdbCluster_Ingress": {
410
+ "resourceType": "K8s::Crdb::CrdbCluster.ingress",
411
+ "kind": "property",
412
+ "lexicon": "k8s"
413
+ },
414
+ "CrdbCluster_PodEnvVariable": {
415
+ "resourceType": "K8s::Crdb::CrdbCluster.podEnvVariables",
416
+ "kind": "property",
417
+ "lexicon": "k8s"
418
+ },
419
+ "CrdbCluster_Resources": {
420
+ "resourceType": "K8s::Crdb::CrdbCluster.resources",
421
+ "kind": "property",
422
+ "lexicon": "k8s"
423
+ },
424
+ "CrdbCluster_Toleration": {
425
+ "resourceType": "K8s::Crdb::CrdbCluster.tolerations",
426
+ "kind": "property",
427
+ "lexicon": "k8s"
428
+ },
429
+ "CrdbCluster_TopologySpreadConstraint": {
430
+ "resourceType": "K8s::Crdb::CrdbCluster.topologySpreadConstraints",
431
+ "kind": "property",
432
+ "lexicon": "k8s"
433
+ },
387
434
  "CronJob": {
388
435
  "resourceType": "K8s::Batch::CronJob",
389
436
  "kind": "resource",
@@ -433,6 +480,11 @@
433
480
  "apiVersion": "apps/v1",
434
481
  "gvkKind": "DaemonSetList"
435
482
  },
483
+ "DataStore": {
484
+ "resourceType": "K8s::Crdb::CrdbCluster.dataStore",
485
+ "kind": "property",
486
+ "lexicon": "k8s"
487
+ },
436
488
  "DeleteOptions": {
437
489
  "resourceType": "K8s::Core::DeleteOptions",
438
490
  "kind": "resource",
@@ -748,6 +800,11 @@
748
800
  "kind": "property",
749
801
  "lexicon": "k8s"
750
802
  },
803
+ "Image": {
804
+ "resourceType": "K8s::Crdb::CrdbCluster.image",
805
+ "kind": "property",
806
+ "lexicon": "k8s"
807
+ },
751
808
  "Info": {
752
809
  "resourceType": "K8s::Argo::Application.info",
753
810
  "kind": "property",
@@ -1110,6 +1167,11 @@
1110
1167
  "kind": "property",
1111
1168
  "lexicon": "k8s"
1112
1169
  },
1170
+ "PodEnvVariable": {
1171
+ "resourceType": "K8s::Crdb::CrdbCluster.podEnvVariables",
1172
+ "kind": "property",
1173
+ "lexicon": "k8s"
1174
+ },
1113
1175
  "PodList": {
1114
1176
  "resourceType": "K8s::Core::PodList",
1115
1177
  "kind": "resource",
@@ -1423,6 +1485,11 @@
1423
1485
  "apiVersion": "resource.k8s.io/v1beta1",
1424
1486
  "gvkKind": "ResourceSliceList"
1425
1487
  },
1488
+ "Resources": {
1489
+ "resourceType": "K8s::Crdb::CrdbCluster.resources",
1490
+ "kind": "property",
1491
+ "lexicon": "k8s"
1492
+ },
1426
1493
  "Role": {
1427
1494
  "resourceType": "K8s::Rbac::Role",
1428
1495
  "kind": "resource",
@@ -314,6 +314,17 @@ export declare class CoreEventList {
314
314
  readonly uid: string;
315
315
  }
316
316
 
317
+ export declare class CrdbCluster {
318
+ constructor(props: {
319
+ metadata?: Record<string, unknown>;
320
+ /** CrdbClusterSpec defines the desired state of a CockroachDB Cluster that the operator maintains. */
321
+ spec?: Record<string, unknown>;
322
+ });
323
+ readonly name: string;
324
+ readonly namespace: string;
325
+ readonly uid: string;
326
+ }
327
+
317
328
  export declare class CronJob {
318
329
  constructor(props: {
319
330
  /** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-k8s",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "Kubernetes lexicon for chant — declarative IaC in TypeScript",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://intentius.io/chant",
@@ -57,6 +57,23 @@ const ARGOCD_CRD_BASE = `https://raw.githubusercontent.com/argoproj/argo-cd/${AR
57
57
  const GATEWAY_API_VERSION = "v1.2.1";
58
58
  const GATEWAY_API_CRD_BASE = `https://raw.githubusercontent.com/kubernetes-sigs/gateway-api/${GATEWAY_API_VERSION}/config/crd/standard`;
59
59
 
60
+ /**
61
+ * CockroachDB Kubernetes Operator CRD — crdb.cockroachlabs.com/v1alpha1
62
+ *
63
+ * The operator-managed path for a CockroachDB cluster (the operator handles
64
+ * version upgrades, scale-down decommissioning, and cert rotation). Complements
65
+ * the self-managed `CockroachDbCluster` StatefulSet composite.
66
+ *
67
+ * Produces (the `crdb.cockroachlabs.com` group maps to the `Crdb` namespace via
68
+ * the first-segment rule in crd/parser.ts):
69
+ * K8s::Crdb::CrdbCluster → apiVersion: crdb.cockroachlabs.com/v1alpha1, kind: CrdbCluster
70
+ *
71
+ * Operator install: kubectl apply -f
72
+ * https://github.com/cockroachdb/cockroach-operator/releases/download/v2.17.0/install/operator.yaml
73
+ */
74
+ const COCKROACH_OPERATOR_VERSION = "v2.17.0";
75
+ const COCKROACH_OPERATOR_CRD_BASE = `https://raw.githubusercontent.com/cockroachdb/cockroach-operator/${COCKROACH_OPERATOR_VERSION}/config/crd/bases`;
76
+
60
77
  export const CRD_SOURCES: CRDSource[] = [
61
78
  { type: "url", url: `${KUBERAY_CRD_BASE}/ray.io_rayclusters.yaml` },
62
79
  { type: "url", url: `${KUBERAY_CRD_BASE}/ray.io_rayjobs.yaml` },
@@ -69,4 +86,5 @@ export const CRD_SOURCES: CRDSource[] = [
69
86
  { type: "url", url: `${GATEWAY_API_CRD_BASE}/gateway.networking.k8s.io_httproutes.yaml` },
70
87
  { type: "url", url: `${GATEWAY_API_CRD_BASE}/gateway.networking.k8s.io_grpcroutes.yaml` },
71
88
  { type: "url", url: `${GATEWAY_API_CRD_BASE}/gateway.networking.k8s.io_referencegrants.yaml` },
89
+ { type: "url", url: `${COCKROACH_OPERATOR_CRD_BASE}/crdb.cockroachlabs.com_crdbclusters.yaml` },
72
90
  ];
@@ -314,6 +314,17 @@ export declare class CoreEventList {
314
314
  readonly uid: string;
315
315
  }
316
316
 
317
+ export declare class CrdbCluster {
318
+ constructor(props: {
319
+ metadata?: Record<string, unknown>;
320
+ /** CrdbClusterSpec defines the desired state of a CockroachDB Cluster that the operator maintains. */
321
+ spec?: Record<string, unknown>;
322
+ });
323
+ readonly name: string;
324
+ readonly namespace: string;
325
+ readonly uid: string;
326
+ }
327
+
317
328
  export declare class CronJob {
318
329
  constructor(props: {
319
330
  /** Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata */
@@ -26,6 +26,7 @@ export const ConfigMapList = createResource("K8s::Core::ConfigMapList", "k8s", {
26
26
  export const ControllerRevision = createResource("K8s::Apps::ControllerRevision", "k8s", {"name":"name","namespace":"namespace","uid":"uid"});
27
27
  export const ControllerRevisionList = createResource("K8s::Apps::ControllerRevisionList", "k8s", {"name":"name","namespace":"namespace","uid":"uid"});
28
28
  export const CoreEventList = createResource("K8s::Core::EventList", "k8s", {"name":"name","namespace":"namespace","uid":"uid"});
29
+ export const CrdbCluster = createResource("K8s::Crdb::CrdbCluster", "k8s", {"name":"name","namespace":"namespace","uid":"uid"});
29
30
  export const CronJob = createResource("K8s::Batch::CronJob", "k8s", {"name":"name","namespace":"namespace","uid":"uid"});
30
31
  export const CronJobList = createResource("K8s::Batch::CronJobList", "k8s", {"name":"name","namespace":"namespace","uid":"uid"});
31
32
  export const CSIDriver = createResource("K8s::Storage::CSIDriver", "k8s", {"name":"name","namespace":"namespace","uid":"uid"});
@@ -187,6 +188,14 @@ export const Capabilities = createProperty("K8s::Core::Capabilities", "k8s");
187
188
  export const ConfigMapKeySelector = createProperty("K8s::Core::ConfigMapKeySelector", "k8s");
188
189
  export const Container = createProperty("K8s::Core::Container", "k8s");
189
190
  export const ContainerPort = createProperty("K8s::Core::ContainerPort", "k8s");
191
+ export const CrdbCluster_Affinity = createProperty("K8s::Crdb::CrdbCluster.affinity", "k8s");
192
+ export const CrdbCluster_DataStore = createProperty("K8s::Crdb::CrdbCluster.dataStore", "k8s");
193
+ export const CrdbCluster_Image = createProperty("K8s::Crdb::CrdbCluster.image", "k8s");
194
+ export const CrdbCluster_Ingress = createProperty("K8s::Crdb::CrdbCluster.ingress", "k8s");
195
+ export const CrdbCluster_PodEnvVariable = createProperty("K8s::Crdb::CrdbCluster.podEnvVariables", "k8s");
196
+ export const CrdbCluster_Resources = createProperty("K8s::Crdb::CrdbCluster.resources", "k8s");
197
+ export const CrdbCluster_Toleration = createProperty("K8s::Crdb::CrdbCluster.tolerations", "k8s");
198
+ export const CrdbCluster_TopologySpreadConstraint = createProperty("K8s::Crdb::CrdbCluster.topologySpreadConstraints", "k8s");
190
199
  export const DeploymentStrategy = createProperty("K8s::Apps::DeploymentStrategy", "k8s");
191
200
  export const EnvFromSource = createProperty("K8s::Core::EnvFromSource", "k8s");
192
201
  export const EnvVar = createProperty("K8s::Core::EnvVar", "k8s");
@@ -384,6 +384,53 @@
384
384
  "apiVersion": "v1",
385
385
  "gvkKind": "EventList"
386
386
  },
387
+ "CrdbCluster": {
388
+ "resourceType": "K8s::Crdb::CrdbCluster",
389
+ "kind": "resource",
390
+ "lexicon": "k8s",
391
+ "apiVersion": "crdb.cockroachlabs.com/v1alpha1",
392
+ "gvkKind": "CrdbCluster"
393
+ },
394
+ "CrdbCluster_Affinity": {
395
+ "resourceType": "K8s::Crdb::CrdbCluster.affinity",
396
+ "kind": "property",
397
+ "lexicon": "k8s"
398
+ },
399
+ "CrdbCluster_DataStore": {
400
+ "resourceType": "K8s::Crdb::CrdbCluster.dataStore",
401
+ "kind": "property",
402
+ "lexicon": "k8s"
403
+ },
404
+ "CrdbCluster_Image": {
405
+ "resourceType": "K8s::Crdb::CrdbCluster.image",
406
+ "kind": "property",
407
+ "lexicon": "k8s"
408
+ },
409
+ "CrdbCluster_Ingress": {
410
+ "resourceType": "K8s::Crdb::CrdbCluster.ingress",
411
+ "kind": "property",
412
+ "lexicon": "k8s"
413
+ },
414
+ "CrdbCluster_PodEnvVariable": {
415
+ "resourceType": "K8s::Crdb::CrdbCluster.podEnvVariables",
416
+ "kind": "property",
417
+ "lexicon": "k8s"
418
+ },
419
+ "CrdbCluster_Resources": {
420
+ "resourceType": "K8s::Crdb::CrdbCluster.resources",
421
+ "kind": "property",
422
+ "lexicon": "k8s"
423
+ },
424
+ "CrdbCluster_Toleration": {
425
+ "resourceType": "K8s::Crdb::CrdbCluster.tolerations",
426
+ "kind": "property",
427
+ "lexicon": "k8s"
428
+ },
429
+ "CrdbCluster_TopologySpreadConstraint": {
430
+ "resourceType": "K8s::Crdb::CrdbCluster.topologySpreadConstraints",
431
+ "kind": "property",
432
+ "lexicon": "k8s"
433
+ },
387
434
  "CronJob": {
388
435
  "resourceType": "K8s::Batch::CronJob",
389
436
  "kind": "resource",
@@ -433,6 +480,11 @@
433
480
  "apiVersion": "apps/v1",
434
481
  "gvkKind": "DaemonSetList"
435
482
  },
483
+ "DataStore": {
484
+ "resourceType": "K8s::Crdb::CrdbCluster.dataStore",
485
+ "kind": "property",
486
+ "lexicon": "k8s"
487
+ },
436
488
  "DeleteOptions": {
437
489
  "resourceType": "K8s::Core::DeleteOptions",
438
490
  "kind": "resource",
@@ -748,6 +800,11 @@
748
800
  "kind": "property",
749
801
  "lexicon": "k8s"
750
802
  },
803
+ "Image": {
804
+ "resourceType": "K8s::Crdb::CrdbCluster.image",
805
+ "kind": "property",
806
+ "lexicon": "k8s"
807
+ },
751
808
  "Info": {
752
809
  "resourceType": "K8s::Argo::Application.info",
753
810
  "kind": "property",
@@ -1110,6 +1167,11 @@
1110
1167
  "kind": "property",
1111
1168
  "lexicon": "k8s"
1112
1169
  },
1170
+ "PodEnvVariable": {
1171
+ "resourceType": "K8s::Crdb::CrdbCluster.podEnvVariables",
1172
+ "kind": "property",
1173
+ "lexicon": "k8s"
1174
+ },
1113
1175
  "PodList": {
1114
1176
  "resourceType": "K8s::Core::PodList",
1115
1177
  "kind": "resource",
@@ -1423,6 +1485,11 @@
1423
1485
  "apiVersion": "resource.k8s.io/v1beta1",
1424
1486
  "gvkKind": "ResourceSliceList"
1425
1487
  },
1488
+ "Resources": {
1489
+ "resourceType": "K8s::Crdb::CrdbCluster.resources",
1490
+ "kind": "property",
1491
+ "lexicon": "k8s"
1492
+ },
1426
1493
  "Role": {
1427
1494
  "resourceType": "K8s::Rbac::Role",
1428
1495
  "kind": "resource",