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.22
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.23
Choose a head ref
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Oct 27, 2023

  1. update schema

    maciaszczykm committed Oct 27, 2023
    Copy the full SHA
    2351817 View commit details
Showing with 210 additions and 6 deletions.
  1. +12 −0 client.go
  2. +1 −0 graph/models.graphql
  3. +127 −6 models_gen.go
  4. +70 −0 schema/schema.graphql
12 changes: 12 additions & 0 deletions client.go

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

1 change: 1 addition & 0 deletions graph/models.graphql
Original file line number Diff line number Diff line change
@@ -86,6 +86,7 @@ fragment ClusterFragment on Cluster {
version
pingedAt
currentVersion
kasUrl
provider { ...ClusterProviderFragment }
nodePools { ...NodePoolFragment }
}
133 changes: 127 additions & 6 deletions models_gen.go

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

70 changes: 70 additions & 0 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
@@ -372,6 +372,12 @@ type RootMutationType {
"upserts a pipeline with a given name"
savePipeline(name: String!, attributes: PipelineAttributes!): Pipeline

"approves an approval pipeline gate"
approveGate(id: ID!): PipelineGate

"forces a pipeline gate to be in open state"
forceGate(id: ID!): PipelineGate

"a regular status ping to be sent by the deploy operator"
pingCluster(attributes: ClusterPing!): Cluster

@@ -452,6 +458,17 @@ input RbacAttributes {
writeBindings: [PolicyBindingAttributes]
}

enum GateState {
PENDING
OPEN
CLOSED
}

enum GateType {
APPROVAL
WINDOW
}

"the top level input object for creating\/deleting pipelines"
input PipelineAttributes {
stages: [PipelineStageAttributes]
@@ -477,6 +494,24 @@ input PipelineEdgeAttributes {

"the name of the pipeline stage this edge points to"
to: String

"any optional promotion gates you wish to configure"
gates: [PipelineGateAttributes]
}

"will configure a promotion gate for a pipeline"
input PipelineGateAttributes {
"the name of this gate"
name: String!

"the type of gate this is"
type: GateType!

"the handle of a cluster this gate will execute on"
cluster: String

"the id of the cluster this gate will execute on"
clusterId: String
}

"the attributes of a service w\/in a specific stage"
@@ -544,11 +579,42 @@ type PipelineStage {
updatedAt: DateTime
}

"an edge in the pipeline DAG"
type PipelineStageEdge {
id: ID!

"when the edge was last promoted, if greater than the promotion objects revised at, was successfully promoted"
promotedAt: DateTime

from: PipelineStage!

to: PipelineStage!

gates: [PipelineGate]

insertedAt: DateTime

updatedAt: DateTime
}

"A gate blocking promotion along a release pipeline"
type PipelineGate {
id: ID!

"the name of this gate as seen in the UI"
name: String!

"the type of gate this is"
type: GateType!

"the current state of this gate"
state: GateState!

"the last user to approve this gate"
approver: User

insertedAt: DateTime

updatedAt: DateTime
}

@@ -1151,6 +1217,9 @@ type Cluster {
"whether the deploy operator has been registered for this cluster"
installed: Boolean

"the url of the kas server you can access this cluster from"
kasUrl: String

"a auth token to be used by the deploy operator, only readable on create"
deployToken: String

@@ -1730,6 +1799,7 @@ enum AuditType {
GIT_REPOSITORY
DEPLOYMENT_SETTINGS
PROVIDER_CREDENTIAL
PIPELINE
}

enum AuditAction {