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

Commits on Dec 21, 2023

  1. Copy the full SHA
    a48be5b View commit details
Showing with 320 additions and 4 deletions.
  1. +168 −0 client.go
  2. +7 −0 graph/cluster.graphql
  3. +89 −4 models_gen.go
  4. +56 −0 schema/schema.graphql
168 changes: 168 additions & 0 deletions client.go

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

7 changes: 7 additions & 0 deletions graph/cluster.graphql
Original file line number Diff line number Diff line change
@@ -64,6 +64,13 @@ query GetCluster($id: ID) {
}
}

query GetClusterWithToken($id: ID, $handle: String) {
cluster(id: $id, handle: $handle) {
...ClusterFragment
deployToken
}
}

query GetClusterByHandle($handle: String) {
cluster(handle: $handle) {
...ClusterFragment
93 changes: 89 additions & 4 deletions models_gen.go

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

56 changes: 56 additions & 0 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
@@ -71,6 +71,8 @@ type RootQueryType {

statefulSet(namespace: String!, name: String!, serviceId: ID): StatefulSet

daemonSet(namespace: String!, name: String!, serviceId: ID): DaemonSet

ingress(namespace: String!, name: String!, serviceId: ID): Ingress

nodes: [Node]
@@ -105,6 +107,8 @@ type RootQueryType {

canary(namespace: String!, name: String!, serviceId: ID): Canary

upgradePlan(namespace: String!, name: String!, serviceId: ID): UpgradePlan

configurationOverlays(namespace: String!): [ConfigurationOverlay]

audits(after: String, first: Int, before: String, last: Int, repo: String): AuditConnection
@@ -398,6 +402,8 @@ type RootMutationType {
cluster: String

name: String

promotion: ServicePromotion
): ServiceDeployment

createGlobalService(
@@ -898,6 +904,12 @@ enum ServiceDeploymentStatus {
PAUSED
}

enum ServicePromotion {
IGNORE
PROCEED
ROLLBACK
}

input ServiceDeploymentAttributes {
name: String!
namespace: String!
@@ -1005,6 +1017,9 @@ type ServiceDeployment {
"description of how helm charts should be applied"
helm: HelmSpec

"how you'd like to perform a canary promotion"
promotion: ServicePromotion

"if true, deletion of this service is not allowed"
protect: Boolean

@@ -1307,11 +1322,14 @@ input ClusterUpdateAttributes {
"if you optionally want to reconfigure the git repository for the cluster service"
service: ClusterServiceAttributes

"pass a kubeconfig for this cluster (DEPRECATED)"
kubeconfig: KubeconfigAttributes

protect: Boolean

nodePools: [NodePoolAttributes]

tags: [TagAttributes]
}

input ClusterServiceAttributes {
@@ -2416,6 +2434,44 @@ type ApplicationDelta {
payload: Application
}

type DaemonSet {
metadata: Metadata!
status: DaemonSetStatus!
spec: DaemonSetSpec!
pods: [Pod]
raw: String!
events: [Event]
}

type DaemonSetStatus {
currentNumberScheduled: Int
desiredNumberScheduled: Int
numberReady: Int
}

type DaemonSetSpec {
strategy: DeploymentStrategy
}

type UpgradePlan {
metadata: Metadata!
status: UpgradePlanStatus!
spec: UpgradePlanSpec!
pods: [Pod]
raw: String!
events: [Event]
}

type UpgradePlanStatus {
conditions: [StatusCondition]
}

type UpgradePlanSpec {
version: String
cordon: Boolean
concurrency: Int
}

type Canary {
metadata: Metadata!
status: CanaryStatus!