Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implemented cloud agent #104

Merged
merged 19 commits into from
Jan 29, 2025

Conversation

r2dedios
Copy link
Collaborator

closes #98

@r2dedios r2dedios added the enhancement New feature or request label Jan 20, 2025
@r2dedios r2dedios added this to the 0.3 milestone Jan 20, 2025
@r2dedios r2dedios self-assigned this Jan 20, 2025
@r2dedios r2dedios linked an issue Jan 23, 2025 that may be closed by this pull request
11 tasks
Signed-off-by: Alejandro Villegas <[email protected]>
…tServer and clients objects for better coding

Signed-off-by: Alejandro Villegas <[email protected]>
Signed-off-by: Alejandro Villegas <[email protected]>
…TP responses causing errors on the Console

Signed-off-by: Alejandro Villegas <[email protected]>
Signed-off-by: Alejandro Villegas <[email protected]>
Signed-off-by: Alejandro Villegas <[email protected]>
…ests for better performance

Signed-off-by: Alejandro Villegas <[email protected]>
…r check; Vars renaming to prevent name collision; fixed comments typos

Signed-off-by: Alejandro Villegas <[email protected]>
Signed-off-by: Alejandro Villegas <[email protected]>
@r2dedios r2dedios marked this pull request as ready for review January 28, 2025 15:13
@r2dedios r2dedios linked an issue Jan 28, 2025 that may be closed by this pull request
@r2dedios r2dedios mentioned this pull request Jan 29, 2025
@vbelouso vbelouso self-requested a review January 29, 2025 14:02
cmd/api/grpc_client.go Outdated Show resolved Hide resolved
@r2dedios r2dedios merged commit 842aebe into RHEcosystemAppEng:release-0.3 Jan 29, 2025
}

// PowerOff
logger.Warn("Powering On Cluster",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo, must be Powering Off Cluster


// PowerOn
logger.Warn("Powering On Cluster",
zap.String("accound_id", req.AccountName),
Copy link
Collaborator

@vbelouso vbelouso Jan 30, 2025

Choose a reason for hiding this comment

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

Typo for the entire file. Must be account_name


// Serving gRPC
if err := grpcServer.Serve(lis); err != nil {
log.Fatalf("Error al servir: %v", err)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Spanish

grpcServer := grpc.NewServer(grpc.UnaryInterceptor(LoggingInterceptor))
reflection.Register(grpcServer)
if grpcServer == nil {
fmt.Println("la jodimos")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Spanish

}

// PowerOn
logger.Warn("Powering On Cluster",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mixing the logger for the entire file

If we are using a service logger it should be a.logger.warn instead of logger.warn

@vbelouso vbelouso changed the title Cloud agent feat: implemented cloud agent Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create error response object for the API Cloud Agent
2 participants