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

Commits on Dec 12, 2023

  1. Copy the full SHA
    e0906cc View commit details
Showing with 140 additions and 9 deletions.
  1. +25 −0 client.go
  2. +3 −0 graph/models.graphql
  3. +48 −6 models_gen.go
  4. +64 −3 schema/schema.graphql
25 changes: 25 additions & 0 deletions client.go

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

3 changes: 3 additions & 0 deletions graph/models.graphql
Original file line number Diff line number Diff line change
@@ -78,6 +78,7 @@ fragment GitRepositoryFragment on GitRepository {
health
authMethod
url

}

fragment GitRefFragment on GitRef {
@@ -114,6 +115,7 @@ fragment ClusterFragment on Cluster {
protect
currentVersion
kasUrl
deletedAt
tags { ...ClusterTags }
credential { ...ProviderCredentialFragment }
provider { ...ClusterProviderFragment }
@@ -160,6 +162,7 @@ fragment ClusterProviderFragment on ClusterProvider {
namespace
cloud
editable
deletedAt
repository {
...GitRepositoryFragment
}
54 changes: 48 additions & 6 deletions models_gen.go

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

67 changes: 64 additions & 3 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
@@ -15,6 +15,10 @@ type RootQueryType {

buildInfo: BuildInfo

user(email: String!): User

group(name: String!): Group

users(after: String, first: Int, before: String, last: Int, q: String): UserConnection

loginInfo(redirect: String): LoginInfo
@@ -43,9 +47,9 @@ type RootQueryType {

dashboard(repo: String!, name: String!, step: String, offset: Int, labels: [LabelInput]): Dashboard

metric(query: String!, offset: Int, step: String): [MetricResponse]
metric(query: String!, offset: Int, step: String, clusterId: ID): [MetricResponse]

logs(query: String!, start: Long, end: Long, limit: Int!): [LogStream]
logs(query: String!, start: Long, end: Long, limit: Int!, clusterId: ID): [LogStream]

scalingRecommendation(kind: AutoscalingTarget!, namespace: String!, name: String!): VerticalPodAutoscaler

@@ -164,7 +168,7 @@ type RootQueryType {
cluster(id: ID, handle: String): Cluster

"fetches an individual cluster provider"
clusterProvider(id: ID!): ClusterProvider
clusterProvider(id: ID, cloud: String, name: String): ClusterProvider

"list all addons currently resident in the artifacts repo"
clusterAddOns: [ClusterAddOn]
@@ -323,6 +327,8 @@ type RootMutationType {

installAddOn(name: String!, configuration: [ConfigAttributes], clusterId: ID!, global: GlobalServiceAttributes): ServiceDeployment

createAgentMigration(attributes: AgentMigrationAttributes!): AgentMigration

createServiceDeployment(
clusterId: ID

@@ -449,6 +455,12 @@ type DeploymentSettings {
"whether the byok cluster has been brought under self-management"
selfManaged: Boolean

"the way we can connect to your loki instance"
lokiConnection: HttpConnection

"the way we can connect to your prometheus instance"
prometheusConnection: HttpConnection

"the repo to fetch CAPI manifests from, for both providers and clusters"
artifactRepository: GitRepository

@@ -472,15 +484,47 @@ type DeploymentSettings {
updatedAt: DateTime
}

"the details of how to connect to a http service like prometheus"
type HttpConnection {
host: String!

"user to connect w\/ for basic auth"
user: String

"password to connect w\/ for basic auth"
password: String
}

input DeploymentSettingsAttributes {
artifactRepositoryId: ID

deployerRepositoryId: ID

"connection details for a prometheus instance to use"
prometheusConnection: HttpConnectionAttributes

"connection details for a loki instance to use"
lokiConnection: HttpConnectionAttributes

readBindings: [PolicyBindingAttributes]

writeBindings: [PolicyBindingAttributes]

gitBindings: [PolicyBindingAttributes]

createBindings: [PolicyBindingAttributes]
}

input HttpConnectionAttributes {
host: String!

"user to connect w\/ for basic auth"
user: String

"password to connect w\/ for basic auth"
password: String
}

input RbacAttributes {
readBindings: [PolicyBindingAttributes]
writeBindings: [PolicyBindingAttributes]
@@ -1350,6 +1394,12 @@ input RuntimeServiceAttributes {
version: String!
}

input AgentMigrationAttributes {
name: String
ref: String
configuration: Json
}

"a CAPI provider for a cluster, cloud is inferred from name if not provided manually"
type ClusterProvider {
"the id of this provider"
@@ -1697,6 +1747,17 @@ type VersionReference {
version: String!
}

"a representation of a bulk operation to be performed on all agent services"
type AgentMigration {
id: ID!
name: String
ref: String
configuration: Map
completed: Boolean
insertedAt: DateTime
updatedAt: DateTime
}

type Tag {
name: String!
value: String!