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.64
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.65
Choose a head ref
  • 1 commit
  • 6 files changed
  • 1 contributor

Commits on Dec 25, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d025141 View commit details
Showing with 198 additions and 4 deletions.
  1. +7 −0 Makefile
  2. +141 −0 client.go
  3. +18 −0 graph/deployment.graphql
  4. +14 −0 graph/models.graphql
  5. +8 −3 models_gen.go
  6. +10 −1 schema/schema.graphql
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -6,3 +6,10 @@ update-schema: ## download schema from plural

generate: update-schema
go run github.com/Yamashou/gqlgenc

release-vsn:
@read -p "Version: " tag; \
git checkout main; \
git pull --rebase; \
git tag -a $$tag -m "new release"; \
git push origin $$tag;
141 changes: 141 additions & 0 deletions client.go

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

18 changes: 18 additions & 0 deletions graph/deployment.graphql
Original file line number Diff line number Diff line change
@@ -96,4 +96,22 @@ query ListServiceDeploymentByHandle($after: String, $before: String, $last: Int,
...ServiceDeploymentEdgeFragment
}
}
}

mutation CreateGlobalService($attributes: GlobalServiceAttributes!) {
createGlobalService(attributes: $attributes) {
...GlobalServiceFragment
}
}

mutation UpdateGlobalService($id: ID!, $attributes: GlobalServiceAttributes!) {
updateGlobalService(id: $id, attributes: $attributes) {
...GlobalServiceFragment
}
}

mutation DeleteGlobalService($id: ID!) {
deleteGlobalService(id: $id) {
...GlobalServiceFragment
}
}
14 changes: 14 additions & 0 deletions graph/models.graphql
Original file line number Diff line number Diff line change
@@ -276,3 +276,17 @@ fragment PipelineFragment on Pipeline {
fragment PipelineEdgeFragment on PipelineEdge {
node { ...PipelineFragment }
}

fragment TagFragment on Tag {
name
value
}

fragment GlobalServiceFragment on GlobalService {
id
name
distro
provider { id }
service { id }
tags { ...TagFragment }
}
11 changes: 8 additions & 3 deletions models_gen.go

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

11 changes: 10 additions & 1 deletion schema/schema.graphql
Original file line number Diff line number Diff line change
@@ -425,6 +425,8 @@ type RootMutationType {
attributes: GlobalServiceAttributes!
): GlobalService

updateGlobalService(id: ID!, attributes: GlobalServiceAttributes!): GlobalService

deleteGlobalService(id: ID!): GlobalService

"upserts a pipeline with a given name"
@@ -1897,6 +1899,9 @@ input GitAttributes {

"similar to https_path, a manually supplied url format for custom git. Should be something like {url}\/tree\/{ref}\/{folder}"
urlFormat: String

"whether to run plural crypto on this repo"
decrypt: Boolean
}

"a git repository available for deployments"
@@ -1925,6 +1930,9 @@ type GitRepository {
"a format string to get the http url for a subfolder in a git repo"
urlFormat: String

"whether to run plural crypto unlock on this repo"
decrypt: Boolean

"named refs like branches\/tags for a repository"
refs: [String!]

@@ -2526,7 +2534,7 @@ type Canary {
primaryDeployment: Deployment
canaryDeployment: Deployment
ingress: Ingress
ingressPrimary: Ingress
ingressCanary: Ingress
raw: String!
events: [Event]
}
@@ -2810,6 +2818,7 @@ type Ingress {
}

type IngressSpec {
ingressClassName: String
rules: [IngressRule]
tls: [IngressTls]
}