Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions .tools/nvim/__http__/infra/cloud-provider-secrets.graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ variables:
authMechanism: "secret_keys"
---

label: Create GCP Cloud Provider Secret
query: |+
mutation Infra_createProviderSecret($secret: CloudProviderSecretIn!) {
infra_createProviderSecret(secret: $secret) {
id
}
}
variables:
secret:
displayName: "this has aws credentials"
metadata:
name: "{{.gcpCloudproviderName}}"
cloudProviderName: gcp
gcp:
serviceAccountJSON: ""

---
label: Update Cloud Provider Secret
query: |+
mutation Infra_updateProviderSecret($secret: CloudProviderSecretIn!) {
Expand Down Expand Up @@ -54,18 +71,6 @@ query: |+
name
namespace
}
# aws {
# awsAccountId

# cfParamTrustedARN
# cfParamStackName
# cfParamRoleName
# cfParamInstanceProfileName
# cfParamExternalID

# secretKey
# accessKey
# }
}
}
}
Expand All @@ -74,7 +79,7 @@ variables:
search:
cloudProviderName:
matchType: 'regex'
regex: '^aws$'
regex: '^gcp$'

---

Expand Down
34 changes: 32 additions & 2 deletions .tools/nvim/__http__/infra/clusters.graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,34 @@ variables:

---

label: Create GCP Cluster
query: |+ #graphql
mutation Infra_createCluster($cluster: ClusterIn!) {
infra_createCluster(cluster: $cluster) {
metadata {
name
}
spec {
accountName
}
}
}
variables:
cluster:
displayName: "Sample Cluster 2"
metadata:
name: "{{.gcpClusterName}}"
spec:
cloudflareEnabled: true
availabilityMode: dev
cloudProvider: gcp
gcp:
credentialsRef:
name: "{{.gcpCloudproviderName}}"
region: asia-south1
gcpProjectID: "rich-wavelet-412321"
---

label: List Clusters
query: |+ #graphql
# query Infra_listClusters($search: SearchCluster, $pagination: CursorPaginationIn) {
Expand Down Expand Up @@ -249,7 +277,8 @@ query: |+ #graphql
infra_upgradeHelmKloudliteAgent(clusterName: $clusterName)
}
variables:
clusterName: "{{.clusterName}}"
# clusterName: "{{.clusterName}}"
clusterName: "{{.gcpClusterName}}"
---

label: Delete Cluster
Expand All @@ -258,7 +287,8 @@ query: |+ #graphql
infra_deleteCluster(name: $name)
}
variables:
name: "{{.clusterName}}"
# name: "{{.clusterName}}"
name: "{{.gcpClusterName}}"

---

48 changes: 44 additions & 4 deletions .tools/nvim/__http__/infra/nodepools.graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,43 @@ variables:

---

label: Create GCP Nodepool
query: |+
mutation Infra_createNodePool($clusterName: String!, $pool: NodePoolIn!) {
infra_createNodePool(clusterName: $clusterName, pool: $pool) {
id
kind
metadata {
name
namespace
annotations
}
recordVersion
spec {
minCount
maxCount
}
}
}
variables:
clusterName: "{{.gcpClusterName}}"
pool:
displayName: sample
# stateful: false
metadata:
name: first
spec:
minCount: 1
maxCount: 2
# targetCount: 1
cloudProvider: "gcp"
gcp:
availabilityZone: asia-south1-a
poolType: "SPOT"
machineType: e2-custom-2-4096

---

label: Create Spot EC2 Nodepool
query: |+
mutation Infra_createNodePool($clusterName: String!, $pool: NodePoolIn!) {
Expand Down Expand Up @@ -142,15 +179,16 @@ query: |+ #graphql
}
}
variables:
clusterName: "{{.clusterName}}"
# clusterName: "{{.clusterName}}"
clusterName: "{{.gcpClusterName}}"
pool:
displayName: "sample nodepool"
displayName: "First GCP Nodepool"
metadata:
name: first
spec:
minCount: 1
maxCount: 1
cloudProvider: "aws"
cloudProvider: "gcp"

---

Expand Down Expand Up @@ -196,7 +234,8 @@ query: |+ #graphql
}
}
variables:
clusterName: "{{.clusterName}}"
# clusterName: "{{.clusterName}}"
clusterName: "{{.gcpClusterName}}"

---
label: Get Nodepool
Expand Down Expand Up @@ -233,6 +272,7 @@ query: |+ #graphql
}
variables:
clusterName: "{{.clusterName}}"
# clusterName: "{{.gcpClusterName}}"
poolName: first

---
2 changes: 1 addition & 1 deletion apps/gateway/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
schemas
prod-schema.graphql
*.graphqls
Loading