Skip to content

Commit

Permalink
add CreateCustomStackRun and UpdateCustomStackRun
Browse files Browse the repository at this point in the history
  • Loading branch information
zreigz committed Jun 5, 2024
1 parent 4beea0f commit e6f80a0
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 20 deletions.
115 changes: 100 additions & 15 deletions client.go

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

10 changes: 8 additions & 2 deletions graph/stack.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,14 @@ mutation UpdateStackRunStep($id: ID!, $attributes: RunStepAttributes!) {
}
}

mutation UpsertCustomStackRun($attributes: CustomStackRunAttributes!) {
upsertCustomStackRun(attributes: $attributes) {
mutation UpdateCustomStackRun($id: ID!, $attributes: CustomStackRunAttributes!) {
updateCustomStackRun(id: $id, attributes: $attributes) {
...CustomStackRunFragment
}
}

mutation CreateCustomStackRun($attributes: CustomStackRunAttributes!) {
createCustomStackRun(attributes: $attributes) {
...CustomStackRunFragment
}
}
Expand Down
6 changes: 4 additions & 2 deletions models_gen.go

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

6 changes: 5 additions & 1 deletion schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,9 @@ type RootMutationType {

restartStackRun(id: ID!): StackRun

upsertCustomStackRun(attributes: CustomStackRunAttributes!): CustomStackRun
createCustomStackRun(attributes: CustomStackRunAttributes!): CustomStackRun

updateCustomStackRun(id: ID!, attributes: CustomStackRunAttributes!): CustomStackRun

deleteCustomStackRun(id: ID!): CustomStackRun

Expand Down Expand Up @@ -842,6 +844,7 @@ type DeploymentSettings {

type StackSettings {
jobSpec: JobGateSpec
connectionId: ID
}

"the details of how to connect to a http service like prometheus"
Expand Down Expand Up @@ -898,6 +901,7 @@ input RbacAttributes {

input StackSettingsAttributes {
jobSpec: GateJobAttributes
connectionId: ID
}

enum ObservabilityProviderType {
Expand Down

0 comments on commit e6f80a0

Please sign in to comment.