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
3 changes: 2 additions & 1 deletion apps/infra/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ tasks:
--struct github.com/kloudlite/api/apps/infra/internal/entities.MsvcTemplate
--struct github.com/kloudlite/api/apps/infra/internal/entities.Node
--struct github.com/kloudlite/api/apps/infra/internal/entities.NodePool
--struct github.com/kloudlite/api/apps/infra/internal/entities.ClusterGroup
--struct github.com/kloudlite/api/apps/infra/internal/entities.CloudProviderSecret
--struct github.com/kloudlite/api/apps/infra/internal/entities.DomainEntry
--struct github.com/kloudlite/api/apps/infra/internal/entities.HelmRelease
Expand All @@ -35,7 +36,7 @@ tasks:
> ./internal/app/_struct-to-graphql/main.go
- |+
pushd ./internal/app/_struct-to-graphql
go run main.go --dev --out-dir ../graph/struct-to-graphql --with-pagination Cluster,Node,NodePool,CloudProviderSecret,DomainEntry,PersistentVolumeClaim,ClusterManagedService,HelmRelease,Namespace,VolumeAttachment,PersistentVolume
go run main.go --dev --out-dir ../graph/struct-to-graphql --with-pagination Cluster,Node,NodePool,ClusterGroup,CloudProviderSecret,DomainEntry,PersistentVolumeClaim,ClusterManagedService,HelmRelease,Namespace,VolumeAttachment,PersistentVolume
popd
- rm -rf ./internal/app/_struct-to-graphql

Expand Down
7 changes: 7 additions & 0 deletions apps/infra/internal/app/gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ models:
resolver: true
ClusterIn: *cluster-model

ClusterGroup: &cluster-group-model
model: github.com/kloudlite/api/apps/infra/internal/entities.ClusterGroup
fields:
adminKubeconfig:
resolver: true
ClusterGroupIn: *cluster-group-model

BYOKCluster: &byok-cluster-model
model: github.com/kloudlite/api/apps/infra/internal/entities.BYOKCluster
BYOKClusterIn: *byok-cluster-model
Expand Down
47 changes: 47 additions & 0 deletions apps/infra/internal/app/graph/clustergroup.resolvers.go

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

Loading