Skip to content

Commit

Permalink
feat: add support for creating installations (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino authored Nov 5, 2023
1 parent fc894c5 commit 2d5f162
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 7 deletions.
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.

4 changes: 4 additions & 0 deletions graph/installations.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ mutation ResetInstallations(){
resetInstallations
}

mutation CreateInstallation($id: ID!) {
createInstallation(repositoryId: $id) { id }
}

mutation DeleteInstallation($id: ID!) {
deleteInstallation(id: $id) { id }
}
Expand Down
17 changes: 17 additions & 0 deletions models_gen.go

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

34 changes: 27 additions & 7 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ type PlanFeatures {
userManagement: Boolean
audit: Boolean
databaseManagement: Boolean
cd: Boolean
}

type PlatformSubscriptionLineItems {
Expand Down Expand Up @@ -1582,6 +1583,15 @@ type Cluster {
"pending upgrades for each installed app"
upgradeInfo: [UpgradeInfo]

"whether all installations in the cluster have been synced"
synced: Boolean

"whether any installation in the cluster has been locked"
locked: Boolean

"CPU\/Memory history for this cluster"
usageHistory(begin: DateTime!): [ClusterUsageHistory]

"the dependencies a cluster has"
dependency: ClusterDependency

Expand Down Expand Up @@ -2159,6 +2169,16 @@ type Stack {
updatedAt: DateTime
}

"A record of the utilization in a given cluster"
type ClusterUsageHistory {
cpu: Int
memory: Int
cluster: Cluster
account: Account
insertedAt: DateTime
updatedAt: DateTime
}

type Community {
discord: String
slack: String
Expand Down Expand Up @@ -2425,19 +2445,19 @@ type UpgradePath {
type: ValueType!
}

type RoleBinding {
type VersionTag {
id: ID!
user: User
group: Group
tag: String!
version: Version
chart: Chart
insertedAt: DateTime
updatedAt: DateTime
}

type VersionTag {
type RoleBinding {
id: ID!
tag: String!
version: Version
chart: Chart
user: User
group: Group
insertedAt: DateTime
updatedAt: DateTime
}
Expand Down

0 comments on commit 2d5f162

Please sign in to comment.