Skip to content

Commit e9a0fb7

Browse files
update schema
1 parent e6cedb6 commit e9a0fb7

File tree

2 files changed

+58
-2
lines changed

2 files changed

+58
-2
lines changed

models_gen.go

Lines changed: 27 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/schema.graphql

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,9 @@ input GlobalServiceAttributes {
12621262
reparent: Boolean
12631263

12641264
template: ServiceTemplateAttributes
1265+
1266+
"behavior for all owned resources when this global service is deleted"
1267+
cascade: CascadeAttributes
12651268
}
12661269

12671270
"Attributes for configuring a managed namespace"
@@ -1284,6 +1287,9 @@ input ManagedNamespaceAttributes {
12841287
service: ServiceTemplateAttributes
12851288

12861289
target: ClusterTargetAttributes
1290+
1291+
"behavior for all owned resources when this global service is deleted"
1292+
cascade: CascadeAttributes
12871293
}
12881294

12891295
"Attributes for configuring a service in something like a managed namespace"
@@ -1330,6 +1336,12 @@ input ClusterTargetAttributes {
13301336
distro: ClusterDistro
13311337
}
13321338

1339+
"Whether you want to delete or detach owned resources"
1340+
input CascadeAttributes {
1341+
delete: Boolean
1342+
detach: Boolean
1343+
}
1344+
13331345
"a rules based mechanism to redeploy a service across a fleet of clusters"
13341346
type GlobalService {
13351347
"internal id of this global service"
@@ -1347,6 +1359,9 @@ type GlobalService {
13471359
"whether you want to reparent existing plural services under this global service"
13481360
reparent: Boolean
13491361

1362+
"behavior for all owned resources when this global service is deleted"
1363+
cascade: Cascade
1364+
13501365
"the service template used to spawn services"
13511366
template: ServiceTemplate
13521367

@@ -1388,6 +1403,9 @@ type ManagedNamespace {
13881403
"the timestamp this namespace was deleted at, indicating it's currently draining"
13891404
deletedAt: DateTime
13901405

1406+
"behavior for all owned resources when this global service is deleted"
1407+
cascade: Cascade
1408+
13911409
"A template for creating the core service for this namespace"
13921410
service: ServiceTemplate
13931411

@@ -1443,6 +1461,15 @@ type ClusterTarget {
14431461
distro: ClusterDistro
14441462
}
14451463

1464+
"A spec for specifying cascade behavior on an owning resource"
1465+
type Cascade {
1466+
"whether to perform a drain-delete for all owned resources"
1467+
delete: Boolean
1468+
1469+
"whether to perform a detach-delete for all owned resources"
1470+
detach: Boolean
1471+
}
1472+
14461473
type GlobalServiceConnection {
14471474
pageInfo: PageInfo!
14481475
edges: [GlobalServiceEdge]
@@ -2373,6 +2400,7 @@ input ServiceCloneAttributes {
23732400
input GitRefAttributes {
23742401
ref: String!
23752402
folder: String!
2403+
files: [String!]
23762404
}
23772405

23782406
input ConfigAttributes {
@@ -2571,6 +2599,9 @@ type GitRef {
25712599

25722600
"the folder manifests live under"
25732601
folder: String!
2602+
2603+
"a list of individual files to include as well"
2604+
files: [String!]
25742605
}
25752606

25762607
type ObjectReference {

0 commit comments

Comments
 (0)