Repository navigation
Expand file tree
/
Copy pathschema.graphql
More file actions
1799 lines (1524 loc) · 62.4 KB
/
Copy pathschema.graphql
File metadata and controls
1799 lines (1524 loc) · 62.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
directive @isActionsServiceAccount on FIELD_DEFINITION
directive @isSelfOrRole on FIELD_DEFINITION
directive @requiresRole on FIELD_DEFINITION
directive @startedByStepRequiresActionsServiceAccount on FIELD_DEFINITION
type Action {
id: UUID!
name: String!
description: String!
location: String!
image: String
}
"""Affinity block (required + preferred) for one affinity kind."""
input AffinityBlockInput {
required: [AffinityTermInput!] = null
preferred: [WeightedAffinityTermInput!] = null
replace: Boolean = null
}
"""Single affinity term mirroring ``AffinityTerm``."""
input AffinityTermInput {
"""
Node label that defines the topology domain for pod affinity and pod anti-affinity. Node affinity ignores it, so pass an empty string.
"""
topologyKey: String!
namespaces: [String!] = null
namespaceSelector: LabelSelectorInput = null
labelSelector: LabelSelectorInput = null
deploymentRef: DeploymentReferenceInput = null
matchLabelKeys: [String!] = null
mismatchLabelKeys: [String!] = null
}
type ApplicationDriver {
id: UUID!
name: String!
createdOn: DateTime!
versions: [ApplicationDriverVersion!]!
}
type ApplicationDriverVersion {
id: UUID!
applicationDriverId: UUID!
version: String!
supportedVersions: String!
defaultVersion: String
"""Where the driver version was loaded from: `git` or `local`."""
sourceType: String!
"""URL of the git repository of a `git` version. Empty for `local`."""
sourceRepository: String!
"""Branch of a `git` version. Null for `local`."""
sourceBranch: String
"""
For a `local` version, the absolute path of the driver folder on the Styrmin server. For a `git` version, the driver directory, or null for a load from the repository root. To read the driver directory, use `driverDirectory`.
"""
sourcePath: String
contentHash: String
sourceCommitSha: String
createdOn: DateTime!
components: JSON
"""
URL of the driver's logo image, from `spec.info.icon` in the driver specification file. An absolute https URL; the browser of each viewer loads the image from it. Null when the driver does not set it, or when the server setting `STYRMIN_DRIVER_SHOW_LOGOS` is false.
"""
icon: String
"""
Description of the application, from `spec.info.description`. Null when the driver does not set it.
"""
description: String
"""
Values of `spec.info` that the load left out of this driver version, with the reason, such as an icon that is not an https URL. The load still succeeds. Filled only in the result of `loadLocalApplicationDriverVersion` and `loadRemoteApplicationDriverVersion`; empty everywhere else.
"""
loadWarnings: [String!]!
"""
Folder of the git repository that holds the driver, relative to the repository root, as given in the `driverDirectory` argument of `loadRemoteApplicationDriverVersion` in its stored form. Null for a load from the repository root and for a `local` version.
"""
driverDirectory: String
applicationDriver: ApplicationDriver!
services: [ServiceDefinition!]!
parameters: [ParameterDefinition!]!
"""
Doc-only env var declarations from the driver's spec.env_vars block. Empty when the driver omits the block.
"""
envVars: [DriverEnvVarDoc!]!
"""
Links from `spec.info.links`, in file order. Empty when the driver does not set any.
"""
links: [DriverLink!]!
componentConfigs: [ComponentConfig!]!
helmChart: HelmChart!
actions: [Action!]!
}
type ApplicationInstance {
id: UUID!
name: String!
status: String!
applicationVersion: String!
applicationDriverVersionId: UUID!
deploymentId: UUID!
applicationDriverVersion: ApplicationDriverVersion!
}
type Backup {
id: UUID!
name: String!
status: String!
createdOn: DateTime!
updatedOn: DateTime
startedAt: DateTime
completedAt: DateTime
"""
Bytes of volume data the backup read, summed over Velero's PodVolumeBackups. Measured before deduplication and compression, so the space used in object storage is usually smaller. Kubernetes resource manifests are not counted. Null when the backup captured no volume data, did not complete, or the size could not be read.
"""
sizeBytes: BigInt
errorMessage: String
instanceId: UUID!
"""
One step per component, by start time, pending steps last. Empty for backups taken before steps were recorded.
"""
steps: [Step!]!
instance: ApplicationInstance!
componentStatuses: [ComponentBackupStatus!]
"""
Retention TTL applied to this backup when it was created (e.g. ``"2160h"``). Null for backups taken before retention was recorded.
"""
ttl: String
"""
Expiration reported by Velero for this backup. Null when no expiration was recorded — a backup Velero stored nothing for, or a backup taken before expiry was recorded. A backup whose status is FAILED can still carry an expiration: Velero's PartiallyFailed phase is stored, does expire, and is reported as FAILED here.
"""
expiresAt: DateTime
}
type BackupSchedule {
id: UUID!
name: String!
enabled: Boolean!
cronExpression: String!
lastBackupAt: DateTime
nextBackupAt: DateTime
retentionCount: Int!
prefectDeploymentId: UUID
deploymentId: UUID!
createdOn: DateTime!
updatedOn: DateTime
deployment: Deployment!
}
enum BackupStatus {
PENDING
IN_PROGRESS
COMPLETED
FAILED
}
type BackupStorageLocation {
id: UUID!
name: String!
endpoint: String!
bucket: String!
region: String!
createdOn: DateTime!
updatedOn: DateTime
environmentCount: Int!
}
"""
Integer that can exceed the 32-bit range of Int, such as a byte count. Serialized as a JSON number, exact up to 2^53.
"""
scalar BigInt
type CallbackResponse {
message: String!
success: Boolean!
}
type Cluster {
id: UUID!
name: String!
config: JSON!
capabilities: JSON!
createdOn: DateTime!
updatedOn: DateTime
environments: [Environment!]!
}
type Component {
id: UUID!
name: String!
enabled: Boolean!
"""
The component container declared by the deployment's pinned driver version, or null when it declares none. See `ComponentConfig.container`.
"""
container: String
}
type ComponentBackupStatus {
componentName: String!
status: String!
sizeBytes: BigInt
errorMessage: String
}
type ComponentConfig {
id: UUID!
name: String!
config: JSON
"""
The component container the driver declares for this component (`components.<name>.container` in the driver specification file): the container that receives per-component post-render overrides such as env vars. Null when the driver declares none — component-scope env vars are then rejected and broader scopes skip this component.
"""
container: String
"""
Default replica count the driver version declares (components.<name>.replicas). Null when not declared.
"""
replicas: Int
"""
The driver version marks the component as a singleton component: its replica count is fixed at 1.
"""
singleton: Boolean!
}
"""
Per-component override block for a deployment: env vars, the container ``command``/``args``, the component container's ``image``, and the component's ``replicas`` count.
"""
input ComponentConfigInput {
"""
The component name as declared by the application-driver version the deployment is bound to after the write: the pinned one on updateDeployment, the target one on updateDeploymentVersion. Must match a known component: an unknown one raises the error of the override it carries, such as ``UNKNOWN_COMPONENT_ENV_VAR`` or ``UNKNOWN_COMPONENT_REPLICA_OVERRIDE``. Overrides on a component that declares no component container raise ``COMPONENT_CONTAINER_NOT_DECLARED`` (see ``envVars``).
"""
name: String!
"""
Environment-variable overrides scoped to this component. Submitted as a list of ``{name, value}`` rows; duplicates within the list raise ``DUPLICATE_ENV_VAR_NAME`` with the component scope in the payload. Adding or changing a value on a component that declares no component container raises ``COMPONENT_CONTAINER_NOT_DECLARED``; removing values or re-submitting the stored ones unchanged is accepted.
"""
envVars: [EnvVarInput!] = null
"""
Container entrypoint override for this component, scoped to this deployment, applied to the component container the driver declares. A non-empty list of strings; an empty list raises ``INVALID_CONTAINER_COMMAND``. Under full-replacement semantics ``null``/omitting it CLEARS the override (the chart/image default flows through) — clearing is never an empty list. Passed through verbatim — no templating. Adding or changing it on a component that declares no component container raises ``COMPONENT_CONTAINER_NOT_DECLARED``; removing it or re-submitting the stored list unchanged is accepted.
"""
command: [String!] = null
"""
Container args override for this component. Same shape and rules as ``command``, raising ``INVALID_CONTAINER_ARGS`` or ``COMPONENT_CONTAINER_NOT_DECLARED``.
"""
args: [String!] = null
"""
Image reference for this component's component container, scoped to this deployment. A full reference with an explicit tag or digest; every ``{{ app.version }}`` token is replaced with the deployment's application version at render time, and a literal tag pins the image. Under full-replacement semantics ``null``/omitting it CLEARS the override (the chart image applies). Raises ``UNKNOWN_COMPONENT_IMAGE_OVERRIDE``, ``INVALID_IMAGE_REFERENCE``, or ``COMPONENT_CONTAINER_NOT_DECLARED`` (adding or changing it on a component without a component container; removing it is always accepted).
"""
image: String = null
"""
Replica count for this component, scoped to this deployment: an integer of 1 or more, applied to `spec.replicas` of every Deployment and StatefulSet that matches the component's label selector. Needs no component container. Under full-replacement semantics `null`/omitting it CLEARS the override, and the component returns to the driver default or to the chart's count. A value below 1 raises `INVALID_REPLICA_COUNT` (stop the component instead); a value above 1 on a singleton component raises `SINGLETON_REPLICA_OVERRIDE`; adding or changing it on a component the driver version does not declare raises `UNKNOWN_COMPONENT_REPLICA_OVERRIDE`; adding or changing it to a value above the server setting `STYRMIN_MAX_REPLICA_COUNT` raises `REPLICA_COUNT_ABOVE_MAXIMUM`.
"""
replicas: Int = null
}
"""
The container ``command``/``args`` override targeting one component of a deployment. Applicable overrides are applied by a post-render patch to the component container the driver declares. ``isOrphaned`` flags blocks whose component the deployment's current driver no longer declares; ``isApplicable`` flags whether the override can reach a container. Non-applicable blocks remain visible in the API but are NOT applied to rendered pods. ``command``/``args`` are ``null`` when no override is set for that slot (the chart's own value applies).
"""
type ComponentContainerOverrides {
"""Name of the targeted component."""
component: String!
"""
Resolved entrypoint override for this component, or ``null`` when unset (the chart/image default applies).
"""
command: [String!]
"""
Resolved args override for this component, or ``null`` when unset (the chart/image default applies).
"""
args: [String!]
"""
True when the deployment's current driver no longer declares this component (the upgrade renamed or removed it). Orphaned blocks are visible in the API but are NOT applied to rendered pods, so the operator can audit and clean them up.
"""
isOrphaned: Boolean!
"""
False when the override cannot reach a container: the component is orphaned (`isOrphaned`) or the driver declares no component container for it. The stored values are kept but not applied.
"""
isApplicable: Boolean!
}
"""
A bundle of environment variables targeting one component of a deployment. Applicable env vars are injected by a post-render patch into the component container the driver declares. ``isOrphaned`` flags blocks whose component the deployment's current driver no longer declares; ``isApplicable`` flags whether the env vars can reach any container. Non-applicable blocks remain visible in the API but are NOT injected into rendered pods.
"""
type ComponentEnvVars {
"""Name of the targeted component."""
component: String!
"""
The effective env vars set on this component (env+dep+component merged).
"""
envVars: [EnvVar!]!
"""
True when the deployment's current driver no longer declares this component (the upgrade renamed or removed it). Orphaned blocks are visible in the API but are NOT injected into rendered pods, so the user can audit and clean them up.
"""
isOrphaned: Boolean!
"""
False when these env vars cannot reach any container: the component is orphaned (`isOrphaned`) or the driver declares no component container for it. Stored values are kept but not injected.
"""
isApplicable: Boolean!
}
"""
The image override for one component's component container. Orphaned or non-applicable overrides stay visible but are not rendered.
"""
type ComponentImageOverride {
"""Name of the targeted component."""
component: String!
"""The stored image reference, `{{ app.version }}` tokens included."""
reference: String!
"""
`reference` with every `{{ app.version }}` token replaced by the deployment's `applicationVersion`.
"""
resolvedReference: String!
"""
True when the deployment's current driver no longer declares this component (the upgrade renamed or removed it).
"""
isOrphaned: Boolean!
"""
False when the override cannot reach a container: the component is orphaned (`isOrphaned`) or the driver declares no component container for it. The stored reference is kept but not rendered.
"""
isApplicable: Boolean!
}
"""
The replica count of one component of a deployment and where it comes from. One row per component the bound driver version declares, plus one per orphaned replica override.
"""
type ComponentReplicas {
"""Name of the component."""
component: String!
"""
The count Styrmin applies while the component runs. Null when the source is CHART or the row is orphaned. A stopped component runs 0 pods whatever this is; see Deployment.components[].enabled.
"""
count: Int
"""Where `count` comes from."""
source: ReplicaSource!
"""The stored replica override, applied or not. Null when none is stored."""
override: Int
"""The bound driver version marks the component singleton: true."""
singleton: Boolean!
"""The bound driver version no longer declares the component."""
isOrphaned: Boolean!
"""
False when a stored override is not applied: the component is orphaned, or the override is above 1 on a singleton component.
"""
isApplicable: Boolean!
}
type ComponentRestoreStatus {
componentName: String!
status: String!
errorMessage: String
}
type ContextChange {
path: String!
action: String!
oldValue: JSON
newValue: JSON
}
type ContextDiff {
changes: [ContextChange!]!
}
input CrdConditionInput {
type: String!
status: String!
reason: String = null
message: String = null
lastTransitionTime: DateTime = null
}
type CrdConditionType {
type: String!
status: String!
reason: String
message: String
lastTransitionTime: DateTime
}
input CreateGroupInput {
name: String!
role: Role!
memberIds: [ID!] = null
}
input CreateUserInput {
username: String!
password: String!
displayName: String!
role: Role!
groupIds: [ID!] = null
}
"""Date with time (isoformat)"""
scalar DateTime
"""Dedicated per-environment ingress controller configuration."""
input DedicatedIngressInput {
implementation: String = null
type: String = null
service: IngressServiceConfigInput = null
}
type DeployedService {
id: UUID!
driverServiceName: String!
resolvedName: String!
kind: String!
scope: String!
port: Int!
component: String!
primaryFqdn: String
humanReadableFqdn: String
primaryUrl: String
humanReadableUrl: String
"""
Effective ingress class of the Ingress that Styrmin builds for this service: the service's override, else the resolved class. Null for a service that is not external, and where the deployment is not read.
"""
ingressClass: String
"""True when `ingressClass` comes from the service's ingress override."""
ingressClassOverridden: Boolean!
"""
True when the suffix of `humanReadableFqdn` and `humanReadableUrl` comes from the service's ingress override.
"""
fqdnSuffixOverridden: Boolean!
deploymentId: UUID!
}
type Deployment {
id: UUID!
name: String!
status: String!
config: JSON!
parameters: JSON!
applicationVersion: String!
applicationDriverVersionId: UUID!
environmentId: UUID!
internal: Boolean!
deletedAt: DateTime
applicationInstance: ApplicationInstance
components: [Component!]!
environment: Environment!
applicationDriverVersion: ApplicationDriverVersion!
deployedServices: [DeployedService!]!
podStatuses: [PodStatus!]!
resolvedScheduling: [ResolvedComponentScheduling!]!
"""
Effective deployment-level env vars (after merging environment & deployment scopes, but BEFORE component-level overrides). Empty when none are set.
"""
envVars: [EnvVar!]!
"""
Per-component effective env vars, including orphaned blocks (``isOrphaned=true``). Component-level entries override deployment- and environment-level entries on a per-key basis (FR-002 deepest-wins). Non-applicable blocks (``isApplicable=false``: component renamed or removed by a driver upgrade, or no component container declared) are visible here but skipped by the post-render injector so no env entries reach rendered pods.
"""
componentEnvVars: [ComponentEnvVars!]!
"""
Per-component container ``command``/``args`` overrides, including orphaned blocks (``isOrphaned=true``). Component-scope only — there is NO environment/deployment layering. Live components with neither slot set are omitted to keep the surface tidy. Non-applicable blocks (``isApplicable=false``: component renamed or removed by a driver upgrade, or no component container declared) are visible here but skipped by the post-render patch so no value reaches a rendered pod. Cleared slots are returned as ``null``.
"""
componentContainerOverrides: [ComponentContainerOverrides!]!
"""
Per-component image overrides: live components by name, then orphaned blocks (``isOrphaned=true``) by name. Components without an override are omitted.
"""
componentImageOverrides: [ComponentImageOverride!]!
"""
One row per component the bound driver version declares, plus one per orphaned replica override, sorted by component name.
"""
componentReplicas: [ComponentReplicas!]!
"""
The stored ingress overrides of this deployment's services, sorted by service name. Empty when none is stored. Read `deployedServices` for the effective class and host of each service.
"""
serviceIngressOverrides: [ServiceIngressOverride!]!
crdStatus: DeploymentStatusType
createdBy: User!
"""
Username of the user who created this deployment, or ``null`` if the creator row has been removed (forward-compatible with ``ondelete=SET NULL`` even though the FK is currently non-null). Unlike ``createdBy``, this field is NOT admin-gated — drivers and the UI can surface attribution without elevated access per FR-028.
"""
createdByUsername: String
}
"""
Typed deployment-configuration payload shared by the ``deploy`` (create) and ``updateDeployment`` mutations. Mirrors the source-of-truth ``DeploymentConfig`` Pydantic model field-for-field so both mutations accept an identical config shape.
"""
input DeploymentConfigInput {
"""
Full-replacement list of per-component override blocks. Flattened by the resolver to a dict keyed on ``name``; duplicate names raise ``DUPLICATE_COMPONENT_NAME``. An empty list explicitly clears every per-component block.
"""
components: [ComponentConfigInput!] = null
"""
Full-replacement list of per-service ingress override blocks. Flattened by the resolver to a dict keyed on ``name``; duplicate names raise ``DUPLICATE_SERVICE_NAME``. A service that is not in the list has no override after the write, and an empty list explicitly clears every override. A row with ``ingressClass``, ``fqdnSuffix`` and ``tls`` all null is the same as no override. When the write changes the driver version, a stored override on a service that the target version removes or declares ``internal`` raises ``SERVICE_INGRESS_OVERRIDE_WOULD_BE_DROPPED`` before any pod changes, unless the same write clears it.
"""
services: [ServiceConfigInput!] = null
"""
Deployment-scoped environment variables. Submitted as a list of ``{name, value}`` rows; duplicates raise ``DUPLICATE_ENV_VAR_NAME`` with the ``"deployment"`` scope in the payload.
"""
envVars: [EnvVarInput!] = null
"""
CIDR allowlist applied at the ingress layer. An empty list explicitly clears the persisted allowlist.
"""
ipWhitelist: [String!] = null
"""
Dedicated per-environment ingress controller configuration for this deployment.
"""
dedicatedIngress: DedicatedIngressInput = null
"""
Hierarchical pod scheduling & resource configuration (affinities, tolerations, topology spread, resource requests/limits, runtime class, post-render injection opt-outs).
"""
scheduling: SchedulingInput = null
"""
Suffix appended to the auto-derived FQDN for every service in this deployment.
"""
fqdnSuffix: String = null
"""
URL scheme (``http`` or ``https``) used when constructing external URLs for services in this deployment.
"""
externalUrlScheme: ExternalUrlScheme = null
"""
Port used when constructing external URLs for services in this deployment. Pydantic enforces ``1 <= port <= 65535`` at validation time.
"""
externalUrlPort: Int = null
"""
Endpoint source type used by external-DNS when publishing records for services in this deployment.
"""
externalDnsEndpointsType: ExternalDnsEndpointsType = null
"""Name of the IngressClass used by services in this deployment."""
ingressClass: String = null
"""
Default database size hint applied to managed-database components in this deployment.
"""
dbSize: String = null
"""
Retention applied to backups taken for this deployment, as a strictly positive Go duration in ``h``/``m``/``s`` units (e.g. ``"720h"``). Overrides the environment- and cluster-scope policy (deepest scope wins). Omitted means this deployment sets no policy and inherits the shallower scope, ultimately the built-in 720h default.
"""
backupTtl: String = null
"""Kubernetes RuntimeClass name applied to pods in this deployment."""
runtimeClass: String = null
"""
Standard storage configuration (default Kubernetes ``StorageClass``) used by this deployment.
"""
standardStorage: StandardStorageInput = null
"""
Fast storage configuration (Kubernetes ``StorageClass`` for the fast / NVMe tier) used by this deployment.
"""
fastStorage: FastStorageInput = null
}
input DeploymentPodStatusReport {
deploymentId: UUID!
pods: [PodStatusInput!]!
}
"""
Reference to another deployment in the same environment. Styrmin stores the id of the named deployment; a name given here is replaced with that id when the config is written.
"""
input DeploymentReferenceInput {
"""Id of a deployment in the same environment."""
deploymentId: String = null
"""
Name of a deployment in the same environment. Styrmin stores the id of that deployment instead of the name when the config is written.
"""
deploymentName: String = null
components: [String!] = null
}
"""
The declared state of one deployment captured at backup time — enough to recreate it later (clone readiness).
"""
type DeploymentSnapshot {
deploymentId: UUID!
deploymentName: String!
instanceId: UUID!
driverName: String!
driverVersion: String!
driverFingerprint: String
applicationVersion: String!
config: JSON
parameters: JSON
}
input DeploymentStatusReportInput {
deploymentId: UUID!
phase: String!
instanceId: UUID = null
displayState: String = null
message: String = null
conditions: [CrdConditionInput!] = null
managedResourceCounts: ManagedResourceCountsInput = null
}
type DeploymentStatusType {
id: UUID!
deploymentId: UUID!
phase: String!
message: String
conditions: [CrdConditionType!]!
managedResourceCounts: ManagedResourceCountsType
lastPolledAt: DateTime
createdOn: DateTime
updatedOn: DateTime
}
type DeploymentTimelineEntry {
task: Task!
applicationVersion: String
contextDiff: ContextDiff
}
"""
Doc-only declaration of an env var the driver's app respects. Surfaces in the driver detail view; does not validate, default, or constrain operator-set values (FR-015).
"""
type DriverEnvVarDoc {
name: String!
description: String!
level: DriverEnvVarLevel!
components: [String!]!
}
enum DriverEnvVarLevel {
DEPLOYMENT
COMPONENT
}
"""
A link a driver declares under `spec.info.links`, such as its homepage or documentation.
"""
type DriverLink {
"""Link text, from the `link` key of the entry."""
label: String!
"""Absolute http or https URL, from the `url` key of the entry."""
url: String!
}
"""
A single environment variable to inject into rendered containers.
WARNING: This surface is for non-secret values only. The platform stores values in plaintext and exposes them through any query that selects them. Do not store credentials, API keys, or other secret material here — use the dedicated secret env var path (separate ticket) once available.
"""
type EnvVar {
"""POSIX-portable env var name, matching ^[A-Za-z_][A-Za-z0-9_]*$."""
name: String!
"""
The value to set. May be the empty string. NOT for secret material; see the EnvVar type description.
"""
value: String!
}
"""A single environment variable name/value pair."""
input EnvVarInput {
name: String!
value: String!
}
type Environment {
id: UUID!
name: String!
config: JSON!
capabilities: JSON!
cluster: Cluster!
backupStorageLocation: BackupStorageLocation
"""
The clone that created this environment, or null when it was not clone-born. The provenance back-reference: `environmentClones` is scoped by *source* environment, so this is how a cloned environment points back at where it came from — and it keeps working after the source environment is deleted, since a clone that created an environment survives its source with `sourceEnvironmentName` intact.
"""
clonedFrom: EnvironmentClone
"""
Env vars set at the environment scope. Empty when none are set.
WARNING: This surface is for non-secret values only. The platform stores values in plaintext and exposes them through any query that selects them. Do not store credentials, API keys, or other secret material here — use the dedicated secret env var path (separate ticket) once available.
"""
envVars: [EnvVar!]!
deployments(includeDeleted: Boolean! = false, includeInternal: Boolean! = false): [Deployment!]!
}
type EnvironmentBackup {
id: UUID!
name: String!
createdOn: DateTime!
updatedOn: DateTime
environmentId: UUID!
"""
Derived from the constituent backups and recorded creation errors on every read — never stored, so it cannot contradict its constituents. An environment with no eligible deployments yields a config-only snapshot that is COMPLETED immediately.
"""
status: EnvironmentBackupStatus!
"""Environment config captured at backup time."""
environmentConfig: JSON
"""
Per-deployment declared state captured at backup time (clone readiness).
"""
deploymentSnapshots: [DeploymentSnapshot!]!
"""
One entry per eligible deployment: its constituent backup, its creation error, or neither when the constituent was deleted.
"""
constituents: [EnvironmentBackupConstituent!]!
"""Coordinated restores performed from this snapshot, newest first."""
restores: [EnvironmentRestore!]!
environment: Environment!
}
"""
One eligible deployment's outcome in the snapshot. ``backup`` is set when a constituent backup exists, ``error`` when creation failed. Both null means the constituent was deleted individually after the snapshot was taken — the gap is deliberately visible.
"""
type EnvironmentBackupConstituent {
deploymentId: UUID!
deploymentName: String!
backup: Backup
error: String
}
enum EnvironmentBackupStatus {
PENDING
IN_PROGRESS
COMPLETED
PARTIAL
FAILED
}
type EnvironmentClone {
id: UUID!
name: String!
sourceEnvironmentName: String!
createdOn: DateTime!
updatedOn: DateTime
"""
Derived on every read from the capture's own derived status, the existence of the created environment, the constituent cross-target restores and the recorded clone errors — never stored, so it cannot contradict any of them. Terminal values are COMPLETED, PARTIAL and FAILED.
"""
status: EnvironmentCloneStatus!
"""
The environment that was cloned. Null once the source has been deleted — a clone that created an environment survives its source as that environment's provenance (``sourceEnvironmentName`` keeps it readable).
"""
sourceEnvironment: Environment
"""
The capture the clone was built from. Null when registration never linked one, or once the capture has been deleted post-terminality (routine TTL cleanup does not rewrite the clone's outcome).
"""
environmentBackup: EnvironmentBackup
"""
The environment the clone created. Null until the capture succeeds and the environment materialises, and again once it has been deleted (the discard path — SC-005).
"""
createdEnvironment: Environment
"""
The explicit deployment selection as requested. Null means every eligible deployment was included (FR-003).
"""
requestedDeploymentIds: [UUID!]
"""
The environment-config override as supplied, canonicalised; null if none. Merged over the captured config by the clone flow (FR-006).
"""
configOverride: JSON
"""
The captured-config field names removed before the override merge, as supplied; null if none (FR-006).
"""
clearConfigFields: [String!]
"""
One entry per source deployment considered — cloned, skipped with a reason, or failed with a reason (SC-003).
"""
deploymentResults: [EnvironmentCloneDeploymentResult!]!
"""
Operation-level events that happened outside any single deployment (capture failed, target name lost, environment creation failed, an input deleted underneath the clone), rendered ``step: error``. Per-deployment failures are not here — they are in ``deploymentResults``.
"""
cloneErrors: [String!]!
}
"""
What became of one source deployment in a clone. ``PENDING`` is the transient value between registration and the step landing; a terminal clone contains no ``PENDING`` entry. Closed enum on the wire because the write-side vocabulary is fixed at these four values.
"""
enum EnvironmentCloneDeploymentOutcome {
PENDING
CLONED
SKIPPED
FAILED
}
"""
One source deployment's outcome in the clone. Every source deployment considered appears exactly once (SC-003). ``reason`` is set for SKIPPED and FAILED and is open text — render it, do not switch on it. ``counterpartDeploymentId`` is the deployment created in the cloned environment (null when the clone created no counterpart deployment for this source deployment); ``restoreId`` is the cross-target restore carrying the data (null until one is dispatched). An entry whose restore failed reads FAILED, with the reason ``the restore failed: <the restore's error>``, or ``the restore failed`` when the restore has no error message, and keeps its ``counterpartDeploymentId`` and ``restoreId``.
"""
type EnvironmentCloneDeploymentResult {
deploymentId: UUID!
deploymentName: String!
"""
What became of the source deployment. An entry whose restore failed reads FAILED.
"""
outcome: EnvironmentCloneDeploymentOutcome!
"""
Why the deployment was skipped or failed, as open text; null otherwise. For an entry whose restore failed, it reads ``the restore failed: <the restore's error>``, or ``the restore failed`` when the restore has no error message.
"""
reason: String
counterpartDeploymentId: UUID
restoreId: UUID
}
"""
Derived status of an environment clone — recomputed on every read, never stored (FR-009). Same vocabulary as ``EnvironmentBackupStatus`` and ``EnvironmentRestoreStatus``, but folded from different inputs: the backing capture's own derived status, whether the created environment exists, the constituent cross-target restores, and the recorded clone errors.
"""
enum EnvironmentCloneStatus {
PENDING
IN_PROGRESS
COMPLETED
PARTIAL
FAILED
}
type EnvironmentRestore {
id: UUID!
createdOn: DateTime!
updatedOn: DateTime
environmentBackupId: UUID!
"""
Derived from the constituent restores and the recorded skips on every read — never stored, so it cannot contradict its constituents. A restore that skipped everything and restored nothing is FAILED; a restore with nothing to do at all (no constituents, no skips) is COMPLETED.
"""
status: EnvironmentRestoreStatus!
"""Constituent restores dispatched by this operation."""
restores: [Restore!]!
"""
Constituents not restored, each with its deployment name and reason (zero silent skips).
"""
skippedConstituents: [SkippedConstituent!]!
environmentBackup: EnvironmentBackup!
}
"""
Derived status of an environment restore. Mirrors ``EnvironmentBackupStatus`` — both project the same service-layer ``EnvironmentOperationStatus``.
"""
enum EnvironmentRestoreStatus {
PENDING
IN_PROGRESS
COMPLETED
PARTIAL
FAILED
}
enum ExternalDnsEndpointsType {
NODE_EXTERNAL_IP
CLUSTER_IP
}
enum ExternalUrlScheme {
HTTP
HTTPS
}
"""
Fast storage configuration for the cluster, naming the Kubernetes ``StorageClass`` used as the fast (typically NVMe / local SSD) storage option for deployments.
"""
input FastStorageInput {
"""
The Kubernetes storage class name used as the fast storage option for this cluster.
"""
storageClass: String!
}
type Group {
id: UUID!
name: String!
role: Role!
}
type HelmChart {
id: UUID!
name: String!
version: String!
valueTemplate: String!
repository: String!
}
"""
What a cluster update does to an environment's dedicated ingress controller. REMOVE is requested once no application of the environment uses the controller.
"""
enum IngressControllerAction {
CREATE
REDEPLOY
REMOVE
}
"""Configuration for the dedicated ingress Kubernetes Service."""
input IngressServiceConfigInput {
type: String = null
annotations: JSON = null
loadBalancerIp: String = null
externalTrafficPolicy: String = null
ipFamilies: [String!] = null
ipFamilyPolicy: String = null
nodePort: Int = null
}
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).
"""
scalar JSON @specifiedBy(url: "https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf")
"""Kubernetes-style label selector."""
input LabelSelectorInput {
matchLabels: JSON = null
matchExpressions: [LabelSelectorRequirementInput!] = null
}
enum LabelSelectorOperator {
IN
NOT_IN
EXISTS
DOES_NOT_EXIST
}
"""One ``matchExpressions`` entry on a label selector."""
input LabelSelectorRequirementInput {
key: String!
operator: LabelSelectorOperator!
values: [String!] = null
}
type LoginResult {
token: String!
user: User!
}
input ManagedResourceCountsInput {
networkPolicies: Int! = 0
secrets: Int! = 0
helmReleases: Int! = 0