Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed May 4, 2024
1 parent e6cedb6 commit e9a0fb7
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
29 changes: 27 additions & 2 deletions models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,9 @@ input GlobalServiceAttributes {
reparent: Boolean

template: ServiceTemplateAttributes

"behavior for all owned resources when this global service is deleted"
cascade: CascadeAttributes
}

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

target: ClusterTargetAttributes

"behavior for all owned resources when this global service is deleted"
cascade: CascadeAttributes
}

"Attributes for configuring a service in something like a managed namespace"
Expand Down Expand Up @@ -1330,6 +1336,12 @@ input ClusterTargetAttributes {
distro: ClusterDistro
}

"Whether you want to delete or detach owned resources"
input CascadeAttributes {
delete: Boolean
detach: Boolean
}

"a rules based mechanism to redeploy a service across a fleet of clusters"
type GlobalService {
"internal id of this global service"
Expand All @@ -1347,6 +1359,9 @@ type GlobalService {
"whether you want to reparent existing plural services under this global service"
reparent: Boolean

"behavior for all owned resources when this global service is deleted"
cascade: Cascade

"the service template used to spawn services"
template: ServiceTemplate

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

"behavior for all owned resources when this global service is deleted"
cascade: Cascade

"A template for creating the core service for this namespace"
service: ServiceTemplate

Expand Down Expand Up @@ -1443,6 +1461,15 @@ type ClusterTarget {
distro: ClusterDistro
}

"A spec for specifying cascade behavior on an owning resource"
type Cascade {
"whether to perform a drain-delete for all owned resources"
delete: Boolean

"whether to perform a detach-delete for all owned resources"
detach: Boolean
}

type GlobalServiceConnection {
pageInfo: PageInfo!
edges: [GlobalServiceEdge]
Expand Down Expand Up @@ -2373,6 +2400,7 @@ input ServiceCloneAttributes {
input GitRefAttributes {
ref: String!
folder: String!
files: [String!]
}

input ConfigAttributes {
Expand Down Expand Up @@ -2571,6 +2599,9 @@ type GitRef {

"the folder manifests live under"
folder: String!

"a list of individual files to include as well"
files: [String!]
}

type ObjectReference {
Expand Down

0 comments on commit e9a0fb7

Please sign in to comment.