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
35 changes: 13 additions & 22 deletions .tools/nvim/__http__/infra/clusters.graphql.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
---
global:
clusterName: sample-cluster3

# providerSecretName: "aws-283277"
# providerSecretNamespace: "kl-account-new-prod-team"

providerSecretName: "aws-creds2"
providerSecretNamespace: "kl-account-ab-641330"
---

label: Create Cluster
query: |+
query: |+ #graphql
mutation Infra_createCluster($cluster: ClusterIn!) {
infra_createCluster(cluster: $cluster) {
metadata {
Expand All @@ -34,15 +25,15 @@ variables:
namespace: "{{.providerSecretNamespace}}"
cloudProvider: aws
aws:
region: ap-south-1
region: eu-north-1
k3sMasters:
instanceType: c6a.large
instanceType: c5a.large
nvidiaGpuEnabled: false

---

label: List Clusters
query: |+
query: |+ #graphql
query Infra_listClusters($search: SearchCluster, $pagination: CursorPaginationIn) {
infra_listClusters(search: $search, pagination: $pagination) {
edges {
Expand Down Expand Up @@ -70,10 +61,10 @@ query: |+
syncScheduledAt
recordVersion
}
adminKubeconfig {
value
encoding
}
# adminKubeconfig {
# value
# encoding
# }
}
}
}
Expand All @@ -89,7 +80,7 @@ variables:
---

label: Get Cluster
query: |+
query: |+ #graphql
query Query($name: String!) {
infra_getCluster(name: $name) {
kind
Expand All @@ -113,7 +104,7 @@ variables:
---

label: Update Cluster
query: |+
query: |+ #graphql
mutation Infra_updateCluster($cluster: ClusterIn!) {
infra_updateCluster(cluster: $cluster) {
metadata {
Expand All @@ -140,16 +131,16 @@ variables:
region: ap-south-1
k3sMasters:
instanceType: c6a.large
iamInstanceProfileRole: "EC2StorageAccess"
iamInstanceProfileRole: ""

---
label: Upgrade Helm Kloudlite Agent
query: |+
query: |+ #graphql
mutation Infra_upgradeHelmKloudliteAgent($clusterName: String!) {
infra_upgradeHelmKloudliteAgent(clusterName: $clusterName)
}
variables:
clusterName: "ab-cluster-3"
clusterName: "{{.clusterName}}"
---

label: Delete Cluster
Expand Down
19 changes: 5 additions & 14 deletions .tools/nvim/__http__/infra/nodepools.graphql.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
---
global:
accountName: kloudlite-dev
providerName: sample
providerNamespace: s1
providerSecretName: provider-sample

clusterName: sample-cluster3
# clusterName: teshdhr-797053
---

label: Create Nodepool
query: |+
mutation Infra_createNodePool($clusterName: String!, $pool: NodePoolIn!) {
Expand Down Expand Up @@ -39,10 +29,11 @@ variables:
# targetCount: 1
cloudProvider: "aws"
aws:
availabilityZone: ap-south-1a
availabilityZone: eu-north-1a
poolType: "ec2"
ec2Pool:
instanceType: c6a.large
# instanceType: c6a.large
instanceType: c5.large
nvidiaGpuEnabled: false

---
Expand Down Expand Up @@ -131,7 +122,7 @@ variables:
---

label: Update Nodepool
query: |+
query: |+ #graphql
mutation Infra_updateNodePool($clusterName: String!, $pool: NodePoolIn!) {
infra_updateNodePool(clusterName: $clusterName, pool: $pool) {
id
Expand Down Expand Up @@ -240,6 +231,6 @@ query: |+ #graphql
}
variables:
clusterName: "{{.clusterName}}"
poolName: first
poolName: np

---
1 change: 1 addition & 0 deletions apps/infra/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ tasks:

build:
cmds:
- go generate ./internal/entities/field-constants/gen.go
- task: go:build
vars:
Out: ./bin/{{.app}}
Expand Down
2 changes: 2 additions & 0 deletions apps/infra/internal/app/gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ models:
Github__com___kloudlite___api___pkg___types__SyncState:
model: github.com/kloudlite/api/pkg/types.SyncState

# Github__com___kloudlite___operator___apis___clusters___v1__AwsRegion:
# model: github.com/kloudlite/operator/apis/clusters/v1.AwsRegion

# CheckAwsAccessOutput:
# model: github.com/kloudlite/api/apps/infra/internal/domain.AWSAccessValidationOutput
Loading