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.43
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.44
Choose a head ref
  • 2 commits
  • 4 files changed
  • 1 contributor

Commits on Nov 29, 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
    683d94c View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    98d29d7 View commit details
Showing with 200 additions and 17 deletions.
  1. +1 −1 Makefile
  2. +7 −4 client.go
  3. +88 −9 models_gen.go
  4. +104 −3 schema/schema.graphql
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ generate-in-container: ## resync client with current graph endpoint
hack/gen-api-client.sh

update-schema: ## download schema from plural
curl -L https://raw.githubusercontent.com/pluralsh/console/compatibilities/schema/schema.graphql --output schema/schema.graphql
curl -L https://raw.githubusercontent.com/pluralsh/console/master/schema/schema.graphql --output schema/schema.graphql

generate: update-schema
go run github.com/Yamashou/gqlgenc
11 changes: 7 additions & 4 deletions client.go

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

97 changes: 88 additions & 9 deletions models_gen.go

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

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

gitRepositories(after: String, first: Int, before: String, last: Int): GitRepositoryConnection

helmRepositories: [HelmRepository]

helmRepository(name: String!, namespace: String!): HelmRepository

"exchanges a kubeconfig token for user info"
tokenExchange(token: String!): User

@@ -368,6 +372,8 @@ type RootMutationType {
attributes: ServiceCloneAttributes!
): ServiceDeployment

selfManage(values: String!): ServiceDeployment

createGlobalService(
serviceId: ID

@@ -438,6 +444,9 @@ type DeploymentSettings {

name: String!

"whether the byok cluster has been brought under self-management"
selfManaged: Boolean

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

@@ -831,7 +840,8 @@ input ServiceDeploymentAttributes {
syncConfig: SyncConfigAttributes
protect: Boolean
repositoryId: ID!
git: GitRefAttributes!
git: GitRefAttributes
helm: HelmConfigAttributes
kustomize: KustomizeAttributes
configuration: [ConfigAttributes]
readBindings: [PolicyBindingAttributes]
@@ -843,6 +853,14 @@ input SyncConfigAttributes {
diffNormalizer: DiffNormalizerAttributes
}

input HelmConfigAttributes {
values: String
valuesFiles: [String]
chart: String
version: String
repository: NamespacedName
}

input MetadataAttributes {
labels: Map
annotations: Map
@@ -860,6 +878,7 @@ input ServiceUpdateAttributes {
version: String
protect: Boolean
git: GitRefAttributes
helm: HelmConfigAttributes
configuration: [ConfigAttributes]
kustomize: KustomizeAttributes
}
@@ -924,7 +943,10 @@ type ServiceDeployment {
version: String!

"description on where in git the service's manifests should be fetched"
git: GitRef!
git: GitRef

"description of how helm charts should be applied"
helm: HelmSpec

"if true, deletion of this service is not allowed"
protect: Boolean
@@ -956,6 +978,8 @@ type ServiceDeployment {
"the git repo of this service"
repository: GitRepository

helmRepository: HelmRepository

"read policy for this service"
readBindings: [PolicyBinding]

@@ -1003,7 +1027,10 @@ type Revision {
version: String!

"git spec of the prior revision"
git: GitRef!
git: GitRef

"description of how helm charts should be applied"
helm: HelmSpec

"the sha this service was pulled from"
sha: String
@@ -1025,6 +1052,28 @@ type GitRef {
folder: String!
}

type ObjectReference {
name: String
namespace: String
}

type HelmSpec {
"the name of the chart this service is using"
chart: String

"a helm values file to use with this service, requires auth and so is heavy to query"
values: String

"pointer to the flux helm repository resource used for this chart"
repository: ObjectReference

"the chart version in use currently"
version: String

"a list of relative paths to values files to use for helm applies"
valuesFiles: [String]
}

"a configuration item k\/v pair"
type ServiceConfiguration {
name: String!
@@ -1699,6 +1748,58 @@ type GitRepository {
updatedAt: DateTime
}

"a crd representation of a helm repository"
type HelmRepository {
metadata: Metadata!

spec: HelmRepositorySpec!

"the charts found in this repository (heavy operation, don't do in list endpoints)"
charts: [HelmChartEntry]

"can fetch the status of a given helm repository"
status: HelmRepositoryStatus
}

"a specification of how a helm repository is fetched"
type HelmRepositorySpec {
provider: String
url: String!
type: String
}

"the state of this helm repository"
type HelmRepositoryStatus {
ready: Boolean
message: String
}

"a chart manifest entry, including all versions"
type HelmChartEntry {
"the name of the chart"
name: String

"all found versions of the chart"
versions: [HelmChartVersion]
}

"a chart version contained within a helm repository manifest"
type HelmChartVersion {
"the version of the app contained w\/in this chart"
appVersion: String

"the version of the chart itself"
version: String

"the name of the chart"
name: String

type: String

"sha digest of this chart's contents"
digest: String
}

type GitRepositoryConnection {
pageInfo: PageInfo!
edges: [GitRepositoryEdge]