Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Feat/service binding dns#351

Merged
nxtcoder17 merged 6 commits into
release-v1.0.7from
feat/service-binding-dns
Jul 18, 2024
Merged

Feat/service binding dns#351
nxtcoder17 merged 6 commits into
release-v1.0.7from
feat/service-binding-dns

Conversation

@nxtcoder17
Copy link
Copy Markdown
Member

@nxtcoder17 nxtcoder17 commented Jul 18, 2024

  • integrates kloudlite DNS with apps, managed services, and installation helm chart
  • (fix) pagination hasPrevPage fix
  • archives managed resources when cluster is deleted

Summary by Sourcery

This pull request integrates Kloudlite DNS with various components, fixes a pagination issue, and refactors the GraphQL schema and resolvers for better maintainability. Additionally, it archives managed resources upon cluster deletion and removes obsolete VPN device-related code.

  • New Features:
    • Integrated Kloudlite DNS with apps, managed services, and installation helm chart.
    • Added a new resolver for fetching the service host in the console app.
    • Introduced a new resolver for removing device intercepts in the console app.
  • Bug Fixes:
    • Fixed the pagination issue by renaming 'hasPreviousPage' to 'hasPrevPage' in various files.
  • Enhancements:
    • Refactored the GraphQL schema and resolvers to use a generic JSON conversion function for paginated records.
    • Updated the GraphQL schema to include new directives and scalar types.
    • Archived managed resources when a cluster is deleted.
  • Chores:
    • Removed VPN device-related code and resolvers from the console app.

@nxtcoder17 nxtcoder17 requested a review from karthik1729 as a code owner July 18, 2024 07:14
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Jul 18, 2024

Reviewer's Guide by Sourcery

This pull request integrates Kloudlite DNS with apps, managed services, and the installation helm chart. It also fixes a pagination issue and archives managed resources when a cluster is deleted. The changes include updates to GraphQL schema and resolvers, as well as the addition of DNS server configuration.

File-Level Changes

Files Changes
apps/iot-console/internal/app/graph/generated/generated.go
apps/infra/internal/app/graph/schema.resolvers.go
apps/console/internal/app/graph/schema.resolvers.go
Updated GraphQL schema and resolvers to support new DNS integration and fixed pagination issue.
apps/console/internal/app/process-resource-updates.go
apps/console/internal/framework/framework.go
Added DNS server configuration and updated resource update processing to handle new service bindings and cluster managed services.
apps/console/internal/domain/vpn-device.go
apps/console/internal/app/graph/consolevpndevice.resolvers.go
Removed VPN device-related code.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @nxtcoder17 - I've reviewed your changes and they look great!

Here's what I looked at during the review
  • 🟡 General issues: 5 issues found
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.


// Deprecated: Use ArchiveEnvironmentsForClusterIn.ProtoReflect.Descriptor instead.
func (*ArchiveEnvironmentsForClusterIn) Descriptor() ([]byte, []int) {
// Deprecated: Use ArchiveResourcesForClusterIn.ProtoReflect.Descriptor instead.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Consider removing deprecated comment.

Since the function name has been updated, the deprecation comment might no longer be necessary. Please verify if this comment is still relevant.

Suggested change
// Deprecated: Use ArchiveResourcesForClusterIn.ProtoReflect.Descriptor instead.
func (*ArchiveResourcesForClusterIn) Descriptor() ([]byte, []int) {
return file_console_proto_rawDescGZIP(), []int{0}
}

ctx,
repos.Filter{

func (d *domain) deleteAllManagedResources(ctx ConsoleContext, msvcName string) error {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (performance): Check for potential performance issues.

Ensure that the method deleteAllManagedResources is optimized for performance, especially when dealing with a large number of resources.

Comment on lines +50 to +52
{{- /* {{- if .DNS }} */}}
{{- /* DNS = {{.DNS}} */}}
{{- /* {{- end }} */}}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: Remove commented-out code.

Consider removing the commented-out DNS configuration code if it is no longer needed to keep the codebase clean.

vars:
Out: ./bin/{{.app}}-{{.GOARCH}}
GOARCH: '{{.GOARCH}}'
out: ./bin/{{.app}}-{{.GOARCH}}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Variable naming consistency.

Ensure that the variable out is consistently named across all tasks and scripts. Consider using Out to match the previous convention.

managedResource:
resolver: true

ClusterManagedService: &custer-managed-service-model
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (typo): Typo in model reference.

There is a typo in the model reference custer-managed-service-model. It should be cluster-managed-service-model.

@nxtcoder17 nxtcoder17 force-pushed the feat/service-binding-dns branch from 822a762 to 01e6d14 Compare July 18, 2024 07:32
@nxtcoder17 nxtcoder17 merged commit 8518b67 into release-v1.0.7 Jul 18, 2024
@nxtcoder17 nxtcoder17 deleted the feat/service-binding-dns branch July 18, 2024 07:39
abdheshnayak pushed a commit that referenced this pull request Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants