typekro 0.27.0 → 0.28.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.
Files changed (211) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/core/containers/build.d.ts +2 -46
  3. package/dist/core/containers/build.d.ts.map +1 -1
  4. package/dist/core/containers/build.js +219 -134
  5. package/dist/core/containers/build.js.map +1 -1
  6. package/dist/core/containers/errors.d.ts +4 -0
  7. package/dist/core/containers/errors.d.ts.map +1 -1
  8. package/dist/core/containers/errors.js +14 -1
  9. package/dist/core/containers/errors.js.map +1 -1
  10. package/dist/core/containers/exec.d.ts +6 -23
  11. package/dist/core/containers/exec.d.ts.map +1 -1
  12. package/dist/core/containers/exec.js +94 -78
  13. package/dist/core/containers/exec.js.map +1 -1
  14. package/dist/core/containers/image.d.ts +11 -7
  15. package/dist/core/containers/image.d.ts.map +1 -1
  16. package/dist/core/containers/image.js +102 -13
  17. package/dist/core/containers/image.js.map +1 -1
  18. package/dist/core/containers/index.d.ts +5 -1
  19. package/dist/core/containers/index.d.ts.map +1 -1
  20. package/dist/core/containers/index.js +3 -0
  21. package/dist/core/containers/index.js.map +1 -1
  22. package/dist/core/containers/registries/credentials.d.ts +30 -0
  23. package/dist/core/containers/registries/credentials.d.ts.map +1 -0
  24. package/dist/core/containers/registries/credentials.js +87 -0
  25. package/dist/core/containers/registries/credentials.js.map +1 -0
  26. package/dist/core/containers/registries/docker-session.d.ts +14 -0
  27. package/dist/core/containers/registries/docker-session.d.ts.map +1 -0
  28. package/dist/core/containers/registries/docker-session.js +164 -0
  29. package/dist/core/containers/registries/docker-session.js.map +1 -0
  30. package/dist/core/containers/registries/ecr.d.ts +2 -3
  31. package/dist/core/containers/registries/ecr.d.ts.map +1 -1
  32. package/dist/core/containers/registries/ecr.js +13 -22
  33. package/dist/core/containers/registries/ecr.js.map +1 -1
  34. package/dist/core/containers/registries/harbor.d.ts +7 -0
  35. package/dist/core/containers/registries/harbor.d.ts.map +1 -0
  36. package/dist/core/containers/registries/harbor.js +9 -0
  37. package/dist/core/containers/registries/harbor.js.map +1 -0
  38. package/dist/core/containers/registries/index.d.ts.map +1 -1
  39. package/dist/core/containers/registries/index.js +5 -0
  40. package/dist/core/containers/registries/index.js.map +1 -1
  41. package/dist/core/containers/registries/oci.d.ts +13 -0
  42. package/dist/core/containers/registries/oci.d.ts.map +1 -0
  43. package/dist/core/containers/registries/oci.js +68 -0
  44. package/dist/core/containers/registries/oci.js.map +1 -0
  45. package/dist/core/containers/registries/orbstack.d.ts +2 -3
  46. package/dist/core/containers/registries/orbstack.d.ts.map +1 -1
  47. package/dist/core/containers/registries/orbstack.js +8 -8
  48. package/dist/core/containers/registries/orbstack.js.map +1 -1
  49. package/dist/core/containers/registries/types.d.ts +75 -49
  50. package/dist/core/containers/registries/types.d.ts.map +1 -1
  51. package/dist/core/containers/registries/types.js +1 -9
  52. package/dist/core/containers/registries/types.js.map +1 -1
  53. package/dist/core/deployment/direct-factory.d.ts.map +1 -1
  54. package/dist/core/deployment/direct-factory.js +15 -8
  55. package/dist/core/deployment/direct-factory.js.map +1 -1
  56. package/dist/core/deployment/engine.d.ts.map +1 -1
  57. package/dist/core/deployment/engine.js +46 -5
  58. package/dist/core/deployment/engine.js.map +1 -1
  59. package/dist/core/deployment/kro-factory.d.ts +7 -7
  60. package/dist/core/deployment/kro-factory.d.ts.map +1 -1
  61. package/dist/core/deployment/kro-factory.js +148 -60
  62. package/dist/core/deployment/kro-factory.js.map +1 -1
  63. package/dist/core/deployment/kro-instance-safety.d.ts +7 -0
  64. package/dist/core/deployment/kro-instance-safety.d.ts.map +1 -1
  65. package/dist/core/deployment/kro-instance-safety.js +15 -0
  66. package/dist/core/deployment/kro-instance-safety.js.map +1 -1
  67. package/dist/core/deployment/kro-namespace-teardown.d.ts +7 -5
  68. package/dist/core/deployment/kro-namespace-teardown.d.ts.map +1 -1
  69. package/dist/core/deployment/kro-namespace-teardown.js +29 -10
  70. package/dist/core/deployment/kro-namespace-teardown.js.map +1 -1
  71. package/dist/core/deployment/kro-readiness.d.ts +1 -0
  72. package/dist/core/deployment/kro-readiness.d.ts.map +1 -1
  73. package/dist/core/deployment/kro-readiness.js +22 -1
  74. package/dist/core/deployment/kro-readiness.js.map +1 -1
  75. package/dist/core/deployment/rollback-manager.d.ts +13 -0
  76. package/dist/core/deployment/rollback-manager.d.ts.map +1 -1
  77. package/dist/core/deployment/rollback-manager.js +8 -0
  78. package/dist/core/deployment/rollback-manager.js.map +1 -1
  79. package/dist/core/serialization/core.js +3 -1
  80. package/dist/core/serialization/core.js.map +1 -1
  81. package/dist/core/serialization/schema.d.ts +2 -2
  82. package/dist/core/serialization/schema.d.ts.map +1 -1
  83. package/dist/core/serialization/schema.js +57 -4
  84. package/dist/core/serialization/schema.js.map +1 -1
  85. package/dist/core/types/serialization.d.ts +9 -0
  86. package/dist/core/types/serialization.d.ts.map +1 -1
  87. package/dist/factories/apisix/types.js +11 -11
  88. package/dist/factories/apisix/types.js.map +1 -1
  89. package/dist/factories/caddy/types.js +2 -2
  90. package/dist/factories/caddy/types.js.map +1 -1
  91. package/dist/factories/cert-manager/types.js +6 -6
  92. package/dist/factories/cert-manager/types.js.map +1 -1
  93. package/dist/factories/cilium/compositions/cilium-bootstrap.js +6 -6
  94. package/dist/factories/cilium/compositions/cilium-bootstrap.js.map +1 -1
  95. package/dist/factories/clickhouse/compositions/clickhouse-cluster.js +1 -1
  96. package/dist/factories/clickhouse/compositions/clickhouse-cluster.js.map +1 -1
  97. package/dist/factories/clickhouse/types.js +8 -8
  98. package/dist/factories/clickhouse/types.js.map +1 -1
  99. package/dist/factories/clickstack/types.js +5 -5
  100. package/dist/factories/clickstack/types.js.map +1 -1
  101. package/dist/factories/cnpg/types.js +6 -6
  102. package/dist/factories/cnpg/types.js.map +1 -1
  103. package/dist/factories/dagster/types.js +14 -14
  104. package/dist/factories/dagster/types.js.map +1 -1
  105. package/dist/factories/external-dns/types.js +3 -3
  106. package/dist/factories/external-dns/types.js.map +1 -1
  107. package/dist/factories/harbor/compositions/harbor-installation.d.ts +610 -0
  108. package/dist/factories/harbor/compositions/harbor-installation.d.ts.map +1 -0
  109. package/dist/factories/harbor/compositions/harbor-installation.js +348 -0
  110. package/dist/factories/harbor/compositions/harbor-installation.js.map +1 -0
  111. package/dist/factories/harbor/compositions/index.d.ts +2 -0
  112. package/dist/factories/harbor/compositions/index.d.ts.map +1 -0
  113. package/dist/factories/harbor/compositions/index.js +2 -0
  114. package/dist/factories/harbor/compositions/index.js.map +1 -0
  115. package/dist/factories/harbor/index.d.ts +7 -0
  116. package/dist/factories/harbor/index.d.ts.map +1 -0
  117. package/dist/factories/harbor/index.js +7 -0
  118. package/dist/factories/harbor/index.js.map +1 -0
  119. package/dist/factories/harbor/provider/harbor-api.d.ts +123 -0
  120. package/dist/factories/harbor/provider/harbor-api.d.ts.map +1 -0
  121. package/dist/factories/harbor/provider/harbor-api.js +595 -0
  122. package/dist/factories/harbor/provider/harbor-api.js.map +1 -0
  123. package/dist/factories/harbor/provider/index.d.ts +4 -0
  124. package/dist/factories/harbor/provider/index.d.ts.map +1 -0
  125. package/dist/factories/harbor/provider/index.js +4 -0
  126. package/dist/factories/harbor/provider/index.js.map +1 -0
  127. package/dist/factories/harbor/provider/kubernetes-secret-store.d.ts +12 -0
  128. package/dist/factories/harbor/provider/kubernetes-secret-store.d.ts.map +1 -0
  129. package/dist/factories/harbor/provider/kubernetes-secret-store.js +81 -0
  130. package/dist/factories/harbor/provider/kubernetes-secret-store.js.map +1 -0
  131. package/dist/factories/harbor/provider/rook-s3-binding.d.ts +30 -0
  132. package/dist/factories/harbor/provider/rook-s3-binding.d.ts.map +1 -0
  133. package/dist/factories/harbor/provider/rook-s3-binding.js +74 -0
  134. package/dist/factories/harbor/provider/rook-s3-binding.js.map +1 -0
  135. package/dist/factories/harbor/resources/helm.d.ts +12 -0
  136. package/dist/factories/harbor/resources/helm.d.ts.map +1 -0
  137. package/dist/factories/harbor/resources/helm.js +46 -0
  138. package/dist/factories/harbor/resources/helm.js.map +1 -0
  139. package/dist/factories/harbor/resources/index.d.ts +2 -0
  140. package/dist/factories/harbor/resources/index.d.ts.map +1 -0
  141. package/dist/factories/harbor/resources/index.js +2 -0
  142. package/dist/factories/harbor/resources/index.js.map +1 -0
  143. package/dist/factories/harbor/types.d.ts +319 -0
  144. package/dist/factories/harbor/types.d.ts.map +1 -0
  145. package/dist/factories/harbor/types.js +252 -0
  146. package/dist/factories/harbor/types.js.map +1 -0
  147. package/dist/factories/harbor/utils/helm-values-mapper.d.ts +8 -0
  148. package/dist/factories/harbor/utils/helm-values-mapper.d.ts.map +1 -0
  149. package/dist/factories/harbor/utils/helm-values-mapper.js +322 -0
  150. package/dist/factories/harbor/utils/helm-values-mapper.js.map +1 -0
  151. package/dist/factories/harbor/utils/index.d.ts +2 -0
  152. package/dist/factories/harbor/utils/index.d.ts.map +1 -0
  153. package/dist/factories/harbor/utils/index.js +2 -0
  154. package/dist/factories/harbor/utils/index.js.map +1 -0
  155. package/dist/factories/helm/helm-release.d.ts +10 -0
  156. package/dist/factories/helm/helm-release.d.ts.map +1 -1
  157. package/dist/factories/helm/helm-release.js +30 -2
  158. package/dist/factories/helm/helm-release.js.map +1 -1
  159. package/dist/factories/helm/readiness-evaluators.d.ts.map +1 -1
  160. package/dist/factories/helm/readiness-evaluators.js +26 -1
  161. package/dist/factories/helm/readiness-evaluators.js.map +1 -1
  162. package/dist/factories/helm/types.d.ts +5 -0
  163. package/dist/factories/helm/types.d.ts.map +1 -1
  164. package/dist/factories/index.d.ts +1 -0
  165. package/dist/factories/index.d.ts.map +1 -1
  166. package/dist/factories/index.js +4 -0
  167. package/dist/factories/index.js.map +1 -1
  168. package/dist/factories/inngest/types.js +8 -8
  169. package/dist/factories/inngest/types.js.map +1 -1
  170. package/dist/factories/kubernetes/networking/network-policy.d.ts.map +1 -1
  171. package/dist/factories/kubernetes/networking/network-policy.js +34 -1
  172. package/dist/factories/kubernetes/networking/network-policy.js.map +1 -1
  173. package/dist/factories/ory/types.js +40 -40
  174. package/dist/factories/ory/types.js.map +1 -1
  175. package/dist/factories/rook/compositions/index.d.ts +1 -0
  176. package/dist/factories/rook/compositions/index.d.ts.map +1 -1
  177. package/dist/factories/rook/compositions/index.js +1 -0
  178. package/dist/factories/rook/compositions/index.js.map +1 -1
  179. package/dist/factories/rook/compositions/rook-ceph-operator-installation.d.ts +2 -0
  180. package/dist/factories/rook/compositions/rook-ceph-operator-installation.d.ts.map +1 -1
  181. package/dist/factories/rook/compositions/rook-ceph-operator-installation.js +17 -0
  182. package/dist/factories/rook/compositions/rook-ceph-operator-installation.js.map +1 -1
  183. package/dist/factories/rook/compositions/rook-ceph-platform.d.ts +181 -0
  184. package/dist/factories/rook/compositions/rook-ceph-platform.d.ts.map +1 -0
  185. package/dist/factories/rook/compositions/rook-ceph-platform.js +388 -0
  186. package/dist/factories/rook/compositions/rook-ceph-platform.js.map +1 -0
  187. package/dist/factories/rook/resources/bucket-storage-class.d.ts.map +1 -1
  188. package/dist/factories/rook/resources/bucket-storage-class.js +4 -1
  189. package/dist/factories/rook/resources/bucket-storage-class.js.map +1 -1
  190. package/dist/factories/rook/resources/ceph-object-store.d.ts.map +1 -1
  191. package/dist/factories/rook/resources/ceph-object-store.js +2 -0
  192. package/dist/factories/rook/resources/ceph-object-store.js.map +1 -1
  193. package/dist/factories/rook/resources/helm.d.ts +4 -0
  194. package/dist/factories/rook/resources/helm.d.ts.map +1 -1
  195. package/dist/factories/rook/resources/helm.js +22 -0
  196. package/dist/factories/rook/resources/helm.js.map +1 -1
  197. package/dist/factories/rook/types.d.ts +180 -1
  198. package/dist/factories/rook/types.d.ts.map +1 -1
  199. package/dist/factories/rook/types.js +100 -9
  200. package/dist/factories/rook/types.js.map +1 -1
  201. package/dist/factories/rook/utils/helm-values-mapper.d.ts +34 -1
  202. package/dist/factories/rook/utils/helm-values-mapper.d.ts.map +1 -1
  203. package/dist/factories/rook/utils/helm-values-mapper.js +207 -0
  204. package/dist/factories/rook/utils/helm-values-mapper.js.map +1 -1
  205. package/dist/factories/searxng/types.js +2 -2
  206. package/dist/factories/searxng/types.js.map +1 -1
  207. package/dist/factories/valkey/types.js +4 -4
  208. package/dist/factories/valkey/types.js.map +1 -1
  209. package/dist/factories/webapp/types.js +8 -8
  210. package/dist/factories/webapp/types.js.map +1 -1
  211. package/package.json +6 -1
@@ -0,0 +1,388 @@
1
+ import { kubernetesComposition } from '../../../core/composition/imperative.js';
2
+ import { isValuesMergeExpression, mergeValuesExpression, } from '../../../core/aspects/values-merge.js';
3
+ import { Cel } from '../../../core/references/cel.js';
4
+ import { observedResource } from '../../../core/references/external-refs.js';
5
+ import { isCelExpression, isKubernetesRef } from '../../../utils/type-guards.js';
6
+ import { namespace } from '../../kubernetes/core/namespace.js';
7
+ import { cephObjectStore } from '../resources/ceph-object-store.js';
8
+ import { rookBucketStorageClass } from '../resources/bucket-storage-class.js';
9
+ import { DEFAULT_ROOK_CEPH_REPO_NAME, DEFAULT_ROOK_CEPH_REPO_URL, DEFAULT_ROOK_CEPH_VERSION, rookCephClusterHelmRelease, rookCephHelmRepository, rookCephOperatorHelmRelease, } from '../resources/helm.js';
10
+ import { RookCephProductionPlatformConfigSchema, RookCephPlatformStatusSchema, RookCephExternalOperatorSingleNodePlatformConfigSchema, RookCephSingleNodePlatformConfigSchema, } from '../types.js';
11
+ import { mapRookCephProductionPlatformToHelmValues, mapRookCephProductionObjectStoreSpec, mapRookCephSingleNodePlatformToHelmValues, mapRookCephSingleNodeObjectStoreSpec, } from '../utils/helm-values-mapper.js';
12
+ /**
13
+ * Complete one-node Rook/Ceph platform for local development.
14
+ *
15
+ * This profile is deliberately replication-one and not highly available. It owns the operator and
16
+ * cluster lifecycle but leaves OBC claims and retained buckets outside consumer graphs.
17
+ */
18
+ export const rookCephSingleNodePlatform = kubernetesComposition({
19
+ name: 'rook-ceph-single-node-platform',
20
+ kind: 'RookCephSingleNodePlatform',
21
+ spec: RookCephSingleNodePlatformConfigSchema,
22
+ status: RookCephPlatformStatusSchema,
23
+ }, (spec) => {
24
+ const platformNamespace = spec.namespace ?? 'rook-ceph';
25
+ const operatorNamespace = spec.operatorNamespace ?? 'rook-ceph-operator';
26
+ const version = spec.version ?? DEFAULT_ROOK_CEPH_VERSION;
27
+ const cephVersion = spec.cephImageTag ?? 'v20.2.2';
28
+ const storageSize = spec.storageSize ?? '8Gi';
29
+ const repositoryName = spec.repositoryName ?? DEFAULT_ROOK_CEPH_REPO_NAME;
30
+ const repositoryNamespace = spec.repositoryNamespace ?? operatorNamespace;
31
+ const repositoryUrl = spec.repositoryUrl ?? DEFAULT_ROOK_CEPH_REPO_URL;
32
+ const objectStoreName = spec.objectStoreName ?? 'harbor-object-store';
33
+ const bucketStorageClassName = spec.bucketStorageClassName ?? 'harbor-ceph-bucket-retain';
34
+ const profile = 'single-node-development';
35
+ namespace({
36
+ metadata: {
37
+ name: operatorNamespace,
38
+ labels: {
39
+ 'app.kubernetes.io/name': 'rook-ceph',
40
+ 'app.kubernetes.io/managed-by': 'typekro',
41
+ 'typekro.dev/profile': profile,
42
+ },
43
+ },
44
+ id: 'operatorNamespace',
45
+ });
46
+ namespace({
47
+ metadata: {
48
+ name: platformNamespace,
49
+ labels: {
50
+ 'app.kubernetes.io/name': 'rook-ceph-cluster',
51
+ 'app.kubernetes.io/managed-by': 'typekro',
52
+ 'typekro.dev/profile': profile,
53
+ },
54
+ },
55
+ id: 'platformNamespace',
56
+ });
57
+ createOwnedRepositoryNamespace(spec, repositoryNamespace, operatorNamespace, profile);
58
+ const repository = rookCephHelmRepository({
59
+ name: repositoryName,
60
+ namespace: repositoryNamespace,
61
+ url: repositoryUrl,
62
+ id: 'rookRepository',
63
+ });
64
+ const operatorRelease = rookCephOperatorHelmRelease({
65
+ name: `${spec.name}-operator`,
66
+ namespace: operatorNamespace,
67
+ version,
68
+ repositoryName,
69
+ repositoryNamespace,
70
+ repositoryUrl,
71
+ values: {
72
+ enableOBCWatchOperatorNamespace: false,
73
+ resources: { requests: { cpu: '100m', memory: '128Mi' } },
74
+ },
75
+ id: 'operatorRelease',
76
+ });
77
+ operatorRelease.dependsOn(repository);
78
+ const clusterRelease = rookCephClusterHelmRelease({
79
+ name: `${spec.name}-cluster`,
80
+ namespace: platformNamespace,
81
+ version,
82
+ repositoryName,
83
+ repositoryNamespace,
84
+ repositoryUrl,
85
+ values: clusterOnlyValues(mapRookCephSingleNodePlatformToHelmValues(spec, storageSize)),
86
+ id: 'clusterRelease',
87
+ });
88
+ clusterRelease.dependsOn(operatorRelease);
89
+ const cluster = observedResource({
90
+ apiVersion: 'ceph.rook.io/v1',
91
+ kind: 'CephCluster',
92
+ metadata: { name: spec.name, namespace: platformNamespace },
93
+ id: 'cluster',
94
+ });
95
+ cluster.dependsOn(clusterRelease);
96
+ const objectStore = cephObjectStore({
97
+ name: objectStoreName,
98
+ namespace: platformNamespace,
99
+ annotations: {
100
+ 'typekro.dev/rook-version': version,
101
+ 'typekro.dev/ceph-version': cephVersion,
102
+ },
103
+ spec: mapRookCephSingleNodeObjectStoreSpec(spec),
104
+ id: 'objectStore',
105
+ });
106
+ objectStore.dependsOn(cluster);
107
+ const bucketStorageClass = rookBucketStorageClass({
108
+ name: bucketStorageClassName,
109
+ objectStoreName,
110
+ objectStoreNamespace: platformNamespace,
111
+ operatorNamespace,
112
+ reclaimPolicy: 'Retain',
113
+ id: 'bucketStorageClass',
114
+ });
115
+ bucketStorageClass.dependsOn(objectStore);
116
+ const operatorReady = Cel.expr(operatorRelease.status.conditions, '.exists(c, c.type == "Ready" && c.status == "True")');
117
+ const storageClassReady = Cel.expr('bucketStorageClass.metadata.name != ""');
118
+ return {
119
+ ready: Cel.expr('operatorRelease.status.conditions.exists(c, c.type == "Ready" && c.status == "True") && cluster.status.phase == "Ready" && objectStore.status.phase == "Ready" && bucketStorageClass.metadata.name != ""'),
120
+ failed: Cel.expr('operatorRelease.status.conditions.exists(c, c.type == "Ready" && c.status == "False") || cluster.status.phase == "Failure" || objectStore.status.phase == "Failure"'),
121
+ phase: Cel.expr('operatorRelease.status.conditions.exists(c, c.type == "Ready" && c.status == "False") || cluster.status.phase == "Failure" || objectStore.status.phase == "Failure" ? "Failed" : (operatorRelease.status.conditions.exists(c, c.type == "Ready" && c.status == "True") && cluster.status.phase == "Ready" && objectStore.status.phase == "Ready" && bucketStorageClass.metadata.name != "" ? "Ready" : "Installing")'),
122
+ operatorReady,
123
+ clusterReady: cluster.status.phase === 'Ready',
124
+ objectStoreReady: objectStore.status.phase === 'Ready',
125
+ storageClassReady,
126
+ cephHealth: cluster.status.ceph.health,
127
+ endpoint: objectStoreEndpoint(),
128
+ bucketStorageClassName: Cel.expr('bucketStorageClass.metadata.name'),
129
+ version: Cel.expr('objectStore.metadata.annotations["typekro.dev/rook-version"]'),
130
+ cephVersion: Cel.expr('objectStore.metadata.annotations["typekro.dev/ceph-version"]'),
131
+ profile: Cel.expr('cluster.metadata.labels["typekro.dev/profile"]'),
132
+ };
133
+ });
134
+ /** Complete multi-node production Rook/Ceph platform with mandatory safety decisions. */
135
+ export const rookCephProductionPlatform = kubernetesComposition({
136
+ name: 'rook-ceph-production-platform',
137
+ kind: 'RookCephProductionPlatform',
138
+ spec: RookCephProductionPlatformConfigSchema,
139
+ status: RookCephPlatformStatusSchema,
140
+ }, (spec) => {
141
+ const platformNamespace = spec.namespace ?? 'rook-ceph';
142
+ const operatorNamespace = spec.operatorNamespace ?? 'rook-ceph-operator';
143
+ const version = spec.version ?? DEFAULT_ROOK_CEPH_VERSION;
144
+ const cephVersion = spec.cephImageTag ?? 'v20.2.2';
145
+ const repositoryName = spec.repositoryName ?? DEFAULT_ROOK_CEPH_REPO_NAME;
146
+ const repositoryNamespace = spec.repositoryNamespace ?? operatorNamespace;
147
+ const repositoryUrl = spec.repositoryUrl ?? DEFAULT_ROOK_CEPH_REPO_URL;
148
+ const objectStoreName = spec.objectStoreName ?? 'harbor-object-store';
149
+ const bucketStorageClassName = spec.bucketStorageClassName ?? 'harbor-ceph-bucket-retain';
150
+ const profile = 'production';
151
+ namespace({
152
+ metadata: {
153
+ name: operatorNamespace,
154
+ labels: {
155
+ 'app.kubernetes.io/name': 'rook-ceph',
156
+ 'app.kubernetes.io/managed-by': 'typekro',
157
+ 'typekro.dev/profile': profile,
158
+ },
159
+ },
160
+ id: 'operatorNamespace',
161
+ });
162
+ namespace({
163
+ metadata: {
164
+ name: platformNamespace,
165
+ labels: {
166
+ 'app.kubernetes.io/name': 'rook-ceph-cluster',
167
+ 'app.kubernetes.io/managed-by': 'typekro',
168
+ 'typekro.dev/profile': profile,
169
+ },
170
+ },
171
+ id: 'platformNamespace',
172
+ });
173
+ createOwnedRepositoryNamespace(spec, repositoryNamespace, operatorNamespace, profile);
174
+ const repository = rookCephHelmRepository({
175
+ name: repositoryName,
176
+ namespace: repositoryNamespace,
177
+ url: repositoryUrl,
178
+ id: 'rookRepository',
179
+ });
180
+ const operatorRelease = rookCephOperatorHelmRelease({
181
+ name: `${spec.name}-operator`,
182
+ namespace: operatorNamespace,
183
+ version,
184
+ repositoryName,
185
+ repositoryNamespace,
186
+ repositoryUrl,
187
+ id: 'operatorRelease',
188
+ });
189
+ operatorRelease.dependsOn(repository);
190
+ const clusterRelease = rookCephClusterHelmRelease({
191
+ name: `${spec.name}-cluster`,
192
+ namespace: platformNamespace,
193
+ version,
194
+ repositoryName,
195
+ repositoryNamespace,
196
+ repositoryUrl,
197
+ values: clusterOnlyValues(mapRookCephProductionPlatformToHelmValues(spec)),
198
+ id: 'clusterRelease',
199
+ });
200
+ clusterRelease.dependsOn(operatorRelease);
201
+ const cluster = observedResource({
202
+ apiVersion: 'ceph.rook.io/v1',
203
+ kind: 'CephCluster',
204
+ metadata: { name: spec.name, namespace: platformNamespace },
205
+ id: 'cluster',
206
+ });
207
+ cluster.dependsOn(clusterRelease);
208
+ const objectStore = cephObjectStore({
209
+ name: objectStoreName,
210
+ namespace: platformNamespace,
211
+ annotations: {
212
+ 'typekro.dev/rook-version': version,
213
+ 'typekro.dev/ceph-version': cephVersion,
214
+ },
215
+ spec: mapRookCephProductionObjectStoreSpec(spec),
216
+ id: 'objectStore',
217
+ });
218
+ objectStore.dependsOn(cluster);
219
+ const bucketStorageClass = rookBucketStorageClass({
220
+ name: bucketStorageClassName,
221
+ objectStoreName,
222
+ objectStoreNamespace: platformNamespace,
223
+ operatorNamespace,
224
+ reclaimPolicy: 'Retain',
225
+ id: 'bucketStorageClass',
226
+ });
227
+ bucketStorageClass.dependsOn(objectStore);
228
+ const operatorReady = Cel.expr(operatorRelease.status.conditions, '.exists(c, c.type == "Ready" && c.status == "True")');
229
+ const storageClassReady = Cel.expr('bucketStorageClass.metadata.name != ""');
230
+ return {
231
+ ready: Cel.expr('operatorRelease.status.conditions.exists(c, c.type == "Ready" && c.status == "True") && cluster.status.phase == "Ready" && objectStore.status.phase == "Ready" && bucketStorageClass.metadata.name != ""'),
232
+ failed: Cel.expr('operatorRelease.status.conditions.exists(c, c.type == "Ready" && c.status == "False") || cluster.status.phase == "Failure" || objectStore.status.phase == "Failure"'),
233
+ phase: Cel.expr('operatorRelease.status.conditions.exists(c, c.type == "Ready" && c.status == "False") || cluster.status.phase == "Failure" || objectStore.status.phase == "Failure" ? "Failed" : (operatorRelease.status.conditions.exists(c, c.type == "Ready" && c.status == "True") && cluster.status.phase == "Ready" && objectStore.status.phase == "Ready" && bucketStorageClass.metadata.name != "" ? "Ready" : "Installing")'),
234
+ operatorReady,
235
+ clusterReady: cluster.status.phase === 'Ready',
236
+ objectStoreReady: objectStore.status.phase === 'Ready',
237
+ storageClassReady,
238
+ cephHealth: cluster.status.ceph.health,
239
+ endpoint: objectStoreEndpoint(),
240
+ bucketStorageClassName: Cel.expr('bucketStorageClass.metadata.name'),
241
+ version: Cel.expr('objectStore.metadata.annotations["typekro.dev/rook-version"]'),
242
+ cephVersion: Cel.expr('objectStore.metadata.annotations["typekro.dev/ceph-version"]'),
243
+ profile: Cel.expr('cluster.metadata.labels["typekro.dev/profile"]'),
244
+ };
245
+ });
246
+ /**
247
+ * Complete one-node Ceph cluster that references an already managed Rook
248
+ * operator. The operator Deployment is an observed prerequisite and is never
249
+ * emitted, adopted, or deleted by this composition.
250
+ */
251
+ export const rookCephExternalOperatorSingleNodePlatform = kubernetesComposition({
252
+ name: 'rook-ceph-external-operator-single-node-platform',
253
+ kind: 'RookCephExternalOperatorSingleNodePlatform',
254
+ spec: RookCephExternalOperatorSingleNodePlatformConfigSchema,
255
+ status: RookCephPlatformStatusSchema,
256
+ }, (spec) => {
257
+ const platformNamespace = spec.namespace ?? 'rook-ceph';
258
+ const operatorNamespace = spec.operatorNamespace;
259
+ const operatorDeploymentName = spec.operatorDeploymentName ?? 'rook-ceph-operator';
260
+ const version = spec.version ?? DEFAULT_ROOK_CEPH_VERSION;
261
+ const cephVersion = spec.cephImageTag ?? 'v20.2.2';
262
+ const storageSize = spec.storageSize ?? '8Gi';
263
+ const repositoryName = spec.repositoryName ?? DEFAULT_ROOK_CEPH_REPO_NAME;
264
+ const repositoryNamespace = spec.repositoryNamespace ?? platformNamespace;
265
+ const repositoryUrl = spec.repositoryUrl ?? DEFAULT_ROOK_CEPH_REPO_URL;
266
+ const objectStoreName = spec.objectStoreName ?? 'harbor-object-store';
267
+ const bucketStorageClassName = spec.bucketStorageClassName ?? 'harbor-ceph-bucket-retain';
268
+ const profile = 'single-node-development';
269
+ namespace({
270
+ metadata: {
271
+ name: platformNamespace,
272
+ labels: {
273
+ 'app.kubernetes.io/name': 'rook-ceph-cluster',
274
+ 'app.kubernetes.io/managed-by': 'typekro',
275
+ 'typekro.dev/profile': profile,
276
+ },
277
+ },
278
+ id: 'platformNamespace',
279
+ });
280
+ createOwnedRepositoryNamespace(spec, repositoryNamespace, platformNamespace, profile);
281
+ const externalOperator = observedResource({
282
+ apiVersion: 'apps/v1',
283
+ kind: 'Deployment',
284
+ metadata: { name: operatorDeploymentName, namespace: operatorNamespace },
285
+ id: 'externalOperator',
286
+ });
287
+ const repository = rookCephHelmRepository({
288
+ name: repositoryName,
289
+ namespace: repositoryNamespace,
290
+ url: repositoryUrl,
291
+ id: 'rookRepository',
292
+ });
293
+ const clusterRelease = rookCephClusterHelmRelease({
294
+ name: `${spec.name}-cluster`,
295
+ namespace: platformNamespace,
296
+ version,
297
+ repositoryName,
298
+ repositoryNamespace,
299
+ repositoryUrl,
300
+ values: clusterOnlyValues(mapRookCephSingleNodePlatformToHelmValues(spec, storageSize)),
301
+ id: 'clusterRelease',
302
+ });
303
+ clusterRelease.dependsOn(externalOperator);
304
+ clusterRelease.dependsOn(repository);
305
+ const cluster = observedResource({
306
+ apiVersion: 'ceph.rook.io/v1',
307
+ kind: 'CephCluster',
308
+ metadata: { name: spec.name, namespace: platformNamespace },
309
+ id: 'cluster',
310
+ });
311
+ cluster.dependsOn(clusterRelease);
312
+ const objectStore = cephObjectStore({
313
+ name: objectStoreName,
314
+ namespace: platformNamespace,
315
+ annotations: {
316
+ 'typekro.dev/rook-version': version,
317
+ 'typekro.dev/ceph-version': cephVersion,
318
+ },
319
+ spec: mapRookCephSingleNodeObjectStoreSpec(spec),
320
+ id: 'objectStore',
321
+ });
322
+ objectStore.dependsOn(cluster);
323
+ const bucketStorageClass = rookBucketStorageClass({
324
+ name: bucketStorageClassName,
325
+ objectStoreName,
326
+ objectStoreNamespace: platformNamespace,
327
+ operatorNamespace,
328
+ reclaimPolicy: 'Retain',
329
+ id: 'bucketStorageClass',
330
+ });
331
+ bucketStorageClass.dependsOn(objectStore);
332
+ const operatorReady = Cel.expr('has(externalOperator.status.availableReplicas) && externalOperator.status.availableReplicas > 0');
333
+ const storageClassReady = Cel.expr('bucketStorageClass.metadata.name != ""');
334
+ return {
335
+ ready: Cel.expr('has(externalOperator.status.availableReplicas) && externalOperator.status.availableReplicas > 0 && cluster.status.phase == "Ready" && objectStore.status.phase == "Ready" && bucketStorageClass.metadata.name != ""'),
336
+ failed: Cel.expr('cluster.status.phase == "Failure" || objectStore.status.phase == "Failure"'),
337
+ phase: Cel.expr('cluster.status.phase == "Failure" || objectStore.status.phase == "Failure" ? "Failed" : (has(externalOperator.status.availableReplicas) && externalOperator.status.availableReplicas > 0 && cluster.status.phase == "Ready" && objectStore.status.phase == "Ready" && bucketStorageClass.metadata.name != "" ? "Ready" : "Installing")'),
338
+ operatorReady,
339
+ clusterReady: cluster.status.phase === 'Ready',
340
+ objectStoreReady: objectStore.status.phase === 'Ready',
341
+ storageClassReady,
342
+ cephHealth: cluster.status.ceph.health,
343
+ endpoint: objectStoreEndpoint(),
344
+ bucketStorageClassName: Cel.expr('bucketStorageClass.metadata.name'),
345
+ version: Cel.expr('objectStore.metadata.annotations["typekro.dev/rook-version"]'),
346
+ cephVersion: Cel.expr('objectStore.metadata.annotations["typekro.dev/ceph-version"]'),
347
+ profile: Cel.expr('cluster.metadata.labels["typekro.dev/profile"]'),
348
+ };
349
+ });
350
+ function createOwnedRepositoryNamespace(spec, repositoryNamespace, existingOwnedNamespace, profile) {
351
+ const graphMode = isKubernetesRef(spec.name);
352
+ const ownsRepositoryNamespace = graphMode
353
+ ? Cel.expr('!has(schema.spec.repositoryNamespaceOwnership) || schema.spec.repositoryNamespaceOwnership == "owned"')
354
+ : spec.repositoryNamespaceOwnership !== 'external';
355
+ return namespace({
356
+ metadata: {
357
+ name: repositoryNamespace,
358
+ labels: {
359
+ 'app.kubernetes.io/name': 'rook-ceph-helm-source',
360
+ 'app.kubernetes.io/managed-by': 'typekro',
361
+ 'typekro.dev/profile': profile,
362
+ },
363
+ },
364
+ id: 'repositoryNamespace',
365
+ }).withIncludeWhen(graphMode
366
+ ? Cel.expr(ownsRepositoryNamespace, ' && ', repositoryNamespace, ' != ', existingOwnedNamespace)
367
+ : ownsRepositoryNamespace && repositoryNamespace !== existingOwnedNamespace);
368
+ }
369
+ function objectStoreEndpoint() {
370
+ return Cel.expr('has(objectStore.status.endpoints.secure) && size(objectStore.status.endpoints.secure) > 0 ? objectStore.status.endpoints.secure[0] : (has(objectStore.status.endpoints.insecure) && size(objectStore.status.endpoints.insecure) > 0 ? objectStore.status.endpoints.insecure[0] : "")');
371
+ }
372
+ /**
373
+ * The cluster chart owns only the CephCluster. TypeKro materializes stores and
374
+ * StorageClasses as separate dependency-ordered children so deletion cannot
375
+ * race a CephCluster finalizer against its dependents.
376
+ */
377
+ function clusterOnlyValues(values) {
378
+ const clusterOnly = {
379
+ cephBlockPools: [],
380
+ cephFileSystems: [],
381
+ cephObjectStores: [],
382
+ };
383
+ if (isKubernetesRef(values) || isCelExpression(values) || isValuesMergeExpression(values)) {
384
+ return mergeValuesExpression(values, clusterOnly);
385
+ }
386
+ return { ...structuredClone(values), ...clusterOnly };
387
+ }
388
+ //# sourceMappingURL=rook-ceph-platform.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rook-ceph-platform.js","sourceRoot":"","sources":["../../../../src/factories/rook/compositions/rook-ceph-platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAEhF,OAAO,EACL,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,sCAAsC,EACtC,4BAA4B,EAG5B,sDAAsD,EACtD,sCAAsC,GACvC,MAAM,aAAa,CAAC;AACrB,OAAO,E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QAClB,eAAe,EAAE,EAAE;QACnB,gBAAgB,EAAE,EAAE;KACrB,CAAC;IACF,IAAI,eAAe,CAAC,MAAM,CAAC,IAAI,eAAe,CAAC,MAAM,CAAC,IAAI,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC;QAC1F,OAAO,qBAAqB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACpD,CAAC;IACD,OAAO,EAAE,GAAI,eAAe,CAAC,MAAM,CAA6B,EAAE,GAAG,WAAW,EAAE,CAAC;AACrF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"bucket-storage-class.d.ts","sourceRoot":"","sources":["../../../../src/factories/rook/resources/bucket-storage-class.ts"],"names":[],"mappings":"AAAA,oDAAoD;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAEhE;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,UAAU,CAAC,4BAA4B,CAAC,GAC/C,cAAc,GAAG,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC,CAoBnD"}
1
+ {"version":3,"file":"bucket-storage-class.d.ts","sourceRoot":"","sources":["../../../../src/factories/rook/resources/bucket-storage-class.ts"],"names":[],"mappings":"AAAA,oDAAoD;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAEhE;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,UAAU,CAAC,4BAA4B,CAAC,GAC/C,cAAc,GAAG,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC,CAuBnD"}
@@ -7,7 +7,10 @@ import { storageClass } from '../../kubernetes/storage/storage-class.js';
7
7
  * Application graphs should reference it by name and own only their claim.
8
8
  */
9
9
  export function rookBucketStorageClass(config) {
10
- const provisionerNamePrefix = config.provisionerNamePrefix ?? config.operatorNamespace;
10
+ // Rook registers one bucket provisioner per Ceph cluster namespace. The
11
+ // operator namespace only happens to match in the common single-namespace
12
+ // installation. `obcProvisionerNamePrefix` is the explicit override.
13
+ const provisionerNamePrefix = config.provisionerNamePrefix ?? config.objectStoreNamespace;
11
14
  return storageClass({
12
15
  apiVersion: 'storage.k8s.io/v1',
13
16
  kind: 'StorageClass',
@@ -1 +1 @@
1
- {"version":3,"file":"bucket-storage-class.js","sourceRoot":"","sources":["../../../../src/factories/rook/resources/bucket-storage-class.ts"],"names":[],"mappings":"AAAA,oDAAoD;AAIpD,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAGzE;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAAgD;IAEhD,MAAM,qBAAqB,GAAG,MAAM,CAAC,qBAAqB,IAAI,MAAM,CAAC,iBAAiB,CAAC;IAEvF,OAAO,YAAY,CAAC;QAClB,UAAU,EAAE,mBAAmB;QAC/B,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;YAC/C,GAAG,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC;SAC/D;QACD,WAAW,EAAE,GAAG,qBAAqB,sBAAsB;QAC3D,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,QAAQ;QAC/C,UAAU,EAAE;YACV,eAAe,EAAE,MAAM,CAAC,eAAe;YACvC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;YACjD,GAAG,CAAC,MAAM,CAAC,kBAAkB,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,kBAAkB,EAAE,CAAC;SAC5E;QACD,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;KACpC,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"bucket-storage-class.js","sourceRoot":"","sources":["../../../../src/factories/rook/resources/bucket-storage-class.ts"],"names":[],"mappings":"AAAA,oDAAoD;AAIpD,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAGzE;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAAgD;IAEhD,wEAAwE;IACxE,0EAA0E;IAC1E,qEAAqE;IACrE,MAAM,qBAAqB,GAAG,MAAM,CAAC,qBAAqB,IAAI,MAAM,CAAC,oBAAoB,CAAC;IAE1F,OAAO,YAAY,CAAC;QAClB,UAAU,EAAE,mBAAmB;QAC/B,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,GAAG,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC;YAC/C,GAAG,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC;SAC/D;QACD,WAAW,EAAE,GAAG,qBAAqB,sBAAsB;QAC3D,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,QAAQ;QAC/C,UAAU,EAAE;YACV,eAAe,EAAE,MAAM,CAAC,eAAe;YACvC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;YACjD,GAAG,CAAC,MAAM,CAAC,kBAAkB,IAAI,EAAE,UAAU,EAAE,MAAM,CAAC,kBAAkB,EAAE,CAAC;SAC5E;QACD,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;KACpC,CAAC,CAAC;AACL,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ceph-object-store.d.ts","sourceRoot":"","sources":["../../../../src/factories/rook/resources/ceph-object-store.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEzF,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEhF,wEAAwE;AACxE,wBAAgB,iCAAiC,CAAC,YAAY,EAAE,OAAO,GAAG,cAAc,CAiBvF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,CAAC,qBAAqB,CAAC,GACxC,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,qBAAqB,CAAC,CAsBhE"}
1
+ {"version":3,"file":"ceph-object-store.d.ts","sourceRoot":"","sources":["../../../../src/factories/rook/resources/ceph-object-store.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEzF,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEhF,wEAAwE;AACxE,wBAAgB,iCAAiC,CAAC,YAAY,EAAE,OAAO,GAAG,cAAc,CAiBvF;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,UAAU,CAAC,qBAAqB,CAAC,GACxC,QAAQ,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,qBAAqB,CAAC,CAwBhE"}
@@ -47,7 +47,9 @@ export function cephObjectStore(config) {
47
47
  'app.kubernetes.io/name': 'rook-ceph-object-store',
48
48
  'app.kubernetes.io/instance': config.name,
49
49
  'app.kubernetes.io/managed-by': 'typekro',
50
+ ...config.labels,
50
51
  },
52
+ ...(config.annotations && { annotations: config.annotations }),
51
53
  },
52
54
  spec: config.spec,
53
55
  ...(config.id && { id: config.id }),
@@ -1 +1 @@
1
- {"version":3,"file":"ceph-object-store.js","sourceRoot":"","sources":["../../../../src/factories/rook/resources/ceph-object-store.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAG5E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,wEAAwE;AACxE,MAAM,UAAU,iCAAiC,CAAC,YAAqB;IACrE,MAAM,QAAQ,GAAG,YAAqE,CAAC;IACvF,MAAM,MAAM,GAAG,QAAQ,EAAE,MAAM,CAAC;IAEhC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;IACjG,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,KAAK,OAAO,EAAE,CAAC;QAC7B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,0BAA0B,EAAE,CAAC;IACjG,CAAC;IAED,OAAO;QACL,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,cAAc;QACtC,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,4BAA4B,MAAM,CAAC,KAAK,IAAI,SAAS,EAAE;KACnF,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,eAAe,CAC7B,MAAyC;IAEzC,OAAO,cAAc,CACnB;QACE,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,GAAG,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC;YACxD,MAAM,EAAE;gBACN,wBAAwB,EAAE,wBAAwB;gBAClD,4BAA4B,EAAE,MAAM,CAAC,IAAI;gBACzC,8BAA8B,EAAE,SAAS;aAC1C;SACF;QACD,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;KACpC,EACD,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,IAAI,EAAE,CAC9C,CAAC,sBAAsB,CAAC,iCAAiC,CAGzD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"ceph-object-store.js","sourceRoot":"","sources":["../../../../src/factories/rook/resources/ceph-object-store.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAG5E,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,wEAAwE;AACxE,MAAM,UAAU,iCAAiC,CAAC,YAAqB;IACrE,MAAM,QAAQ,GAAG,YAAqE,CAAC;IACvF,MAAM,MAAM,GAAG,QAAQ,EAAE,MAAM,CAAC;IAEhC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;IACjG,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,KAAK,OAAO,EAAE,CAAC;QAC7B,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,0BAA0B,EAAE,CAAC;IACjG,CAAC;IAED,OAAO;QACL,KAAK,EAAE,KAAK;QACZ,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,cAAc;QACtC,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,4BAA4B,MAAM,CAAC,KAAK,IAAI,SAAS,EAAE;KACnF,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,eAAe,CAC7B,MAAyC;IAEzC,OAAO,cAAc,CACnB;QACE,UAAU,EAAE,iBAAiB;QAC7B,IAAI,EAAE,iBAAiB;QACvB,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,GAAG,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC;YACxD,MAAM,EAAE;gBACN,wBAAwB,EAAE,wBAAwB;gBAClD,4BAA4B,EAAE,MAAM,CAAC,IAAI;gBACzC,8BAA8B,EAAE,SAAS;gBACzC,GAAG,MAAM,CAAC,MAAM;aACjB;YACD,GAAG,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC;SAC/D;QACD,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;KACpC,EACD,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,IAAI,EAAE,CAC9C,CAAC,sBAAsB,CAAC,iCAAiC,CAGzD,CAAC;AACJ,CAAC"}
@@ -9,10 +9,14 @@ export declare const DEFAULT_ROOK_CEPH_REPO_URL = "https://charts.rook.io/releas
9
9
  export declare const DEFAULT_ROOK_CEPH_REPO_NAME = "rook-release";
10
10
  /** Official Rook Ceph operator chart name. */
11
11
  export declare const ROOK_CEPH_OPERATOR_CHART_NAME = "rook-ceph";
12
+ /** Official chart that creates a CephCluster and optional storage resources. */
13
+ export declare const ROOK_CEPH_CLUSTER_CHART_NAME = "rook-ceph-cluster";
12
14
  /** Latest stable Rook Ceph operator chart verified on 2026-07-09. */
13
15
  export declare const DEFAULT_ROOK_CEPH_VERSION = "v1.20.2";
14
16
  /** Create the shared Flux source for official Rook release charts. */
15
17
  export declare function rookCephHelmRepository(config: Composable<RookCephHelmRepositoryConfig>): Enhanced<HelmRepositorySpec, HelmRepositoryStatus>;
16
18
  /** Create a Flux HelmRelease for the official `rook-ceph` operator chart. */
17
19
  export declare function rookCephOperatorHelmRelease(config: Composable<RookCephHelmReleaseConfig>): Enhanced<HelmReleaseSpec, HelmReleaseStatus>;
20
+ /** Create a Flux HelmRelease for the official `rook-ceph-cluster` chart. */
21
+ export declare function rookCephClusterHelmRelease(config: Composable<RookCephHelmReleaseConfig>): Enhanced<HelmReleaseSpec, HelmReleaseStatus>;
18
22
  //# sourceMappingURL=helm.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helm.d.ts","sourceRoot":"","sources":["../../../../src/factories/rook/resources/helm.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAG3D,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAE1B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAE3F,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,mCAAmC,CAAC;AAE3E,uCAAuC;AACvC,eAAO,MAAM,2BAA2B,iBAAiB,CAAC;AAE1D,8CAA8C;AAC9C,eAAO,MAAM,6BAA6B,cAAc,CAAC;AAEzD,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,YAAY,CAAC;AAEnD,sEAAsE;AACtE,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,UAAU,CAAC,4BAA4B,CAAC,GAC/C,QAAQ,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAapD;AAED,6EAA6E;AAC7E,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,UAAU,CAAC,yBAAyB,CAAC,GAC5C,QAAQ,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAqB9C"}
1
+ {"version":3,"file":"helm.d.ts","sourceRoot":"","sources":["../../../../src/factories/rook/resources/helm.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAG3D,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAEzE,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAE1B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,KAAK,EAAE,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAE3F,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,mCAAmC,CAAC;AAE3E,uCAAuC;AACvC,eAAO,MAAM,2BAA2B,iBAAiB,CAAC;AAE1D,8CAA8C;AAC9C,eAAO,MAAM,6BAA6B,cAAc,CAAC;AAEzD,gFAAgF;AAChF,eAAO,MAAM,4BAA4B,sBAAsB,CAAC;AAEhE,qEAAqE;AACrE,eAAO,MAAM,yBAAyB,YAAY,CAAC;AAEnD,sEAAsE;AACtE,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,UAAU,CAAC,4BAA4B,CAAC,GAC/C,QAAQ,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAapD;AAED,6EAA6E;AAC7E,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,UAAU,CAAC,yBAAyB,CAAC,GAC5C,QAAQ,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAqB9C;AAED,4EAA4E;AAC5E,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,UAAU,CAAC,yBAAyB,CAAC,GAC5C,QAAQ,CAAC,eAAe,EAAE,iBAAiB,CAAC,CAqB9C"}
@@ -9,6 +9,8 @@ export const DEFAULT_ROOK_CEPH_REPO_URL = 'https://charts.rook.io/release';
9
9
  export const DEFAULT_ROOK_CEPH_REPO_NAME = 'rook-release';
10
10
  /** Official Rook Ceph operator chart name. */
11
11
  export const ROOK_CEPH_OPERATOR_CHART_NAME = 'rook-ceph';
12
+ /** Official chart that creates a CephCluster and optional storage resources. */
13
+ export const ROOK_CEPH_CLUSTER_CHART_NAME = 'rook-ceph-cluster';
12
14
  /** Latest stable Rook Ceph operator chart verified on 2026-07-09. */
13
15
  export const DEFAULT_ROOK_CEPH_VERSION = 'v1.20.2';
14
16
  /** Create the shared Flux source for official Rook release charts. */
@@ -42,4 +44,24 @@ export function rookCephOperatorHelmRelease(config) {
42
44
  ...(config.id && { id: config.id }),
43
45
  }).withReadinessEvaluator(createLabeledHelmReleaseEvaluator('Rook Ceph'));
44
46
  }
47
+ /** Create a Flux HelmRelease for the official `rook-ceph-cluster` chart. */
48
+ export function rookCephClusterHelmRelease(config) {
49
+ return helmRelease({
50
+ name: config.name,
51
+ namespace: config.namespace ?? 'rook-ceph',
52
+ chart: {
53
+ repository: config.repositoryUrl ?? DEFAULT_ROOK_CEPH_REPO_URL,
54
+ name: ROOK_CEPH_CLUSTER_CHART_NAME,
55
+ version: config.version ?? DEFAULT_ROOK_CEPH_VERSION,
56
+ },
57
+ sourceRef: {
58
+ name: config.repositoryName ?? DEFAULT_ROOK_CEPH_REPO_NAME,
59
+ namespace: config.repositoryNamespace ?? DEFAULT_FLUX_NAMESPACE,
60
+ kind: 'HelmRepository',
61
+ },
62
+ driftDetection: { mode: 'enabled' },
63
+ values: config.values ?? {},
64
+ ...(config.id && { id: config.id }),
65
+ }).withReadinessEvaluator(createLabeledHelmReleaseEvaluator('Rook Ceph cluster'));
66
+ }
45
67
  //# sourceMappingURL=helm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helm.js","sourceRoot":"","sources":["../../../../src/factories/rook/resources/helm.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAE3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,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