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

feat: adds graphql API to upgrade kloudite agent helm on tenant cluster#271

Merged
nxtcoder17 merged 2 commits into
release-v1.0.3from
feat/upgrade-kloudlite-helm-agent-on-target
Feb 14, 2024
Merged

feat: adds graphql API to upgrade kloudite agent helm on tenant cluster#271
nxtcoder17 merged 2 commits into
release-v1.0.3from
feat/upgrade-kloudlite-helm-agent-on-target

Conversation

@nxtcoder17
Copy link
Copy Markdown
Member

No description provided.

@nxtcoder17 nxtcoder17 self-assigned this Feb 14, 2024
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.

PR Type: Enhancement

PR Summary: This pull request introduces functionality to upgrade the Kloudlite agent helm on tenant clusters via a new GraphQL API. It adds new message types for getting cluster tokens and implements the upgrade logic within the domain layer. Additionally, it exposes this functionality through a new GraphQL mutation, allowing clients to trigger the upgrade process.

Decision: Comment

📝 Type: 'Enhancement' - not supported yet.
  • Sourcery currently only approves 'Typo fix' PRs.
✅ Issue addressed: this change correctly addresses the issue or implements the desired feature.
No details provided.
📝 Complexity: the changes are too large or complex for Sourcery to approve.
  • Unsupported files: the diff contains files that Sourcery does not currently support during reviews.
  • Big diff: the diff is too large to approve with confidence.

General suggestions:

  • Ensure the upgrade process is idempotent to avoid unintended changes or errors when the same version is applied.
  • Implement thorough error handling and input validation in the GetClusterToken method to maintain service integrity.
  • Document the expected behavior and limitations of the InfraUpgradeHelmKloudliteAgent mutation to guide API consumers.

Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨

Share Sourcery

Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

return nil
}

func (d *domain) UpgradeHelmKloudliteAgent(ctx InfraContext, clusterName 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.

suggestion (llm): The introduction of UpgradeHelmKloudliteAgent is a significant addition. It's crucial to ensure that the upgrade process is idempotent. Given the nature of Helm upgrades, if the same version is applied, it should not result in changes or errors. This is important for maintaining stability in automated environments.

}

func newInternalMsgServer(d domain.Domain) *internalMsgServer {
func (s *internalMsgServer) GetClusterToken(ctx context.Context, in *message_office_internal.GetClusterTokenIn) (*message_office_internal.GetClusterTokenOut, 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.

suggestion (llm): Implementing the GetClusterToken method is crucial for the functionality of the MessageOfficeInternal service. It's important to ensure proper error handling and validation of input parameters to maintain the integrity of the service.

Comment thread apps/infra/internal/app/graph/schema.resolvers.go
@nxtcoder17 nxtcoder17 merged commit 38ed15f into release-v1.0.3 Feb 14, 2024
@nxtcoder17 nxtcoder17 deleted the feat/upgrade-kloudlite-helm-agent-on-target branch February 14, 2024 18:35
abdheshnayak pushed a commit that referenced this pull request Nov 5, 2024
…ent-on-target

feat: adds graphql API to upgrade kloudite agent helm on tenant cluster
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.

1 participant