Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pluralsh/console-client-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.33
Choose a base ref
...
head repository: pluralsh/console-client-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.0.34
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 11, 2023

  1. feat: Add service clone apis

    Will be used for pr based deployments
    michaeljguarino committed Nov 11, 2023
    Copy the full SHA
    1c088d1 View commit details
  2. Merge pull request #14 from pluralsh/service-clone

    feat: Add service clone apis
    michaeljguarino authored Nov 11, 2023
    Copy the full SHA
    24d842a View commit details
Showing with 192 additions and 3 deletions.
  1. +137 −0 client.go
  2. +13 −1 graph/deployment.graphql
  3. +19 −2 models_gen.go
  4. +23 −0 schema/schema.graphql
137 changes: 137 additions & 0 deletions client.go

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

14 changes: 13 additions & 1 deletion graph/deployment.graphql
Original file line number Diff line number Diff line change
@@ -22,12 +22,24 @@ mutation UpdateServiceDeployment($id: ID!, $attributes: ServiceUpdateAttributes!
}
}

mutation UpdateServiceDeploymentWithHandle($cluster: String!,$name: String!, $attributes: ServiceUpdateAttributes!) {
mutation UpdateServiceDeploymentWithHandle($cluster: String!, $name: String!, $attributes: ServiceUpdateAttributes!) {
updateServiceDeployment(cluster: $cluster,name: $name, attributes: $attributes) {
...ServiceDeploymentFragment
}
}

mutation CloneServiceDeployment($clusterId: ID!, $id: ID!, $attributes: ServiceCloneAttributes!) {
cloneService(clusterId: $clusterId, serviceId: $id, attributes: $attributes) {
...ServiceDeploymentFragment
}
}

mutation CloneServiceDeploymentWithHandle($clusterId: ID!, $cluster: String!, $name: String!, $attributes: ServiceCloneAttributes!) {
cloneService(clusterId: $clusterId, cluster: $cluster, name: $name, attributes: $attributes) {
...ServiceDeploymentFragment
}
}

mutation RollbackService($id: ID!, $revisionId: ID!) {
rollbackService(id: $id, revisionId: $revisionId) {
...ServiceDeploymentFragment
21 changes: 19 additions & 2 deletions models_gen.go

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

23 changes: 23 additions & 0 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
@@ -1416,9 +1416,31 @@ type ClusterAddOn {

"Input configuration for an add-on you can install"
type AddOnConfiguration {
"name for this configuration"
name: String

"a docstring explaining this configuration"
documentation: String

"a type for the configuration (should eventually be coerced back to string)"
type: String

"the values for ENUM type conditions"
values: [String]

condition: AddOnConfigCondition
}

"a condition that determines whether its configuration is viewable"
type AddOnConfigCondition {
"the operation for this condition, eg EQ, LT, GT"
operation: String

"the field this condition applies to"
field: String

"the value to apply the codition with, for binary operators like LT\/GT"
value: String
}

type Tag {
@@ -2793,6 +2815,7 @@ type GitStatus {
type AvailableFeatures {
vpn: Boolean
audits: Boolean
cd: Boolean
userManagement: Boolean
databaseManagement: Boolean
}