Skip to content

Commit

Permalink
feat(apps/infra): migrates infra to accomodate operator changes to us…
Browse files Browse the repository at this point in the history
…ing `toolkit/reconciler` package
  • Loading branch information
nxtcoder17 committed Jan 2, 2025
1 parent 4b48dea commit 49edc3d
Show file tree
Hide file tree
Showing 32 changed files with 12,403 additions and 18,996 deletions.
3 changes: 1 addition & 2 deletions apps/infra/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ tasks:
--struct github.com/kloudlite/api/apps/infra/internal/entities.GlobalVPNDevice
--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
--struct github.com/kloudlite/api/apps/infra/internal/entities.PersistentVolumeClaim
--struct github.com/kloudlite/api/apps/infra/internal/entities.PersistentVolume
--struct github.com/kloudlite/api/apps/infra/internal/entities.Namespace
Expand All @@ -44,7 +43,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,BYOKCluster,Node,NodePool,GlobalVPN,GlobalVPNDevice,CloudProviderSecret,DomainEntry,PersistentVolumeClaim,HelmRelease,Namespace,VolumeAttachment,PersistentVolume
go run main.go --dev --out-dir ../graph/struct-to-graphql --with-pagination Cluster,BYOKCluster,Node,NodePool,GlobalVPN,GlobalVPNDevice,CloudProviderSecret,DomainEntry,PersistentVolumeClaim,Namespace,VolumeAttachment,PersistentVolume
popd
- rm -rf ./internal/app/_struct-to-graphql

Expand Down
1 change: 0 additions & 1 deletion apps/infra/internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ var Module = fx.Module(
repos.NewFxMongoRepo[*entities.NodePool]("node_pools", "npool", entities.NodePoolIndices),
repos.NewFxMongoRepo[*entities.Node]("node", "node", entities.NodePoolIndices),
repos.NewFxMongoRepo[*entities.CloudProviderSecret]("cloud_provider_secrets", "cps", entities.CloudProviderSecretIndices),
repos.NewFxMongoRepo[*entities.HelmRelease]("helm_releases", "hr", entities.HelmReleaseIndices),

// kubernetes native resources, not managed by kloudlite
repos.NewFxMongoRepo[*entities.PersistentVolumeClaim]("pvcs", "pvc", entities.PersistentVolumeClaimIndices),
Expand Down
4 changes: 2 additions & 2 deletions apps/infra/internal/app/gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ models:
model: github.com/kloudlite/api/apps/infra/internal/entities.CloudProviderName
Github__com___kloudlite___api___apps___infra___internal___entities__CloudProviderNameIn: *cloudprovider-name

Github__com___kloudlite___operator___pkg___operator__Status:
model: github.com/kloudlite/operator/pkg/operator.Status
Github__com___kloudlite___operator___toolkit___reconciler__Status:
model: github.com/kloudlite/operator/toolkit/reconciler.Status

Github__com___kloudlite___operator___pkg___operator__Check:
model: github.com/kloudlite/operator/pkg/operator.Check
Expand Down
25 changes: 0 additions & 25 deletions apps/infra/internal/app/graph/cloudprovidersecret.resolvers.go

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

6 changes: 6 additions & 0 deletions apps/infra/internal/app/graph/cluster.resolvers.go

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

46 changes: 15 additions & 31 deletions apps/infra/internal/app/graph/common-types.resolvers.go

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

Loading

0 comments on commit 49edc3d

Please sign in to comment.