Skip to content

feat: Add webhook-gateway charm#4

Merged
cbartz merged 39 commits intomainfrom
feat/charm
Oct 2, 2025
Merged

feat: Add webhook-gateway charm#4
cbartz merged 39 commits intomainfrom
feat/charm

Conversation

@cbartz
Copy link
Copy Markdown
Collaborator

@cbartz cbartz commented Sep 25, 2025

Overview

Add the charm using 12 F.

Add a simple charm integration test that integrates with rabbitmq.

Rationale

In order to deploy the webhook gateway application, we build a charm.

Checklist

  • The PR is tagged with appropriate label (urgent, trivial, senior-review-required, documentation).

Copy link
Copy Markdown
Collaborator Author

@cbartz cbartz left a comment

Choose a reason for hiding this comment

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

self-review

Comment thread webhook-gateway/charm/src/charm.py
Comment thread webhook-gateway/main.go
Comment thread build-webhook-gateway-rock.sh
Comment thread .github/workflows/webhook_gateway_publish_charm.yaml
Comment thread webhook-gateway/charm/tests/integration/test_rabbitmq.py
@cbartz cbartz requested a review from Copilot September 30, 2025 20:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds the webhook-gateway charm to the repository, introducing a complete charm implementation for deploying a webhook gateway application using the 12 Factor framework. The implementation includes the charm code, test configuration, and library dependencies.

Key Changes:

  • Created a complete charm structure with Go application integration
  • Added comprehensive integration test setup with RabbitMQ
  • Migrated from hardcoded strings to environment variable constants for better maintainability

Reviewed Changes

Copilot reviewed 31 out of 33 changed files in this pull request and generated 1 comment.

File Description
webhook-gateway/main.go Refactored to use environment variable constants instead of hardcoded strings
webhook-gateway/webhook_test.go Updated test functions to use new environment variable constants
webhook-gateway/charm/ Complete charm implementation with source code, configuration, libraries, and tests

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread webhook-gateway/main.go
@cbartz cbartz marked this pull request as ready for review October 1, 2025 10:50
Comment thread ci-webhook-gateway-pre-run.sh Outdated
Copy link
Copy Markdown
Collaborator

@javierdelapuente javierdelapuente left a comment

Choose a reason for hiding this comment

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

Looks good, a few minor comments

Comment thread webhook-gateway/charm/tests/integration/test_rabbitmq.py Outdated
Comment thread webhook-gateway/charm/charmcraft.yaml Outdated
Comment thread webhook-gateway/charm/tests/integration/conftest.py Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
@cbartz cbartz merged commit 8fe6b0a into main Oct 2, 2025
9 checks passed
@cbartz cbartz deleted the feat/charm branch October 2, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants