-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for generating shared challenges with shared deployment templates #7
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
Conversation
…atting in web service
…emplates (#6) This updates add shared deployment templates for both web and TCP `instanced_type` challenges.
There was a problem hiding this 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 support for generating shared challenges with shared deployment templates, extending the existing instanced challenge template generation functionality. Shared challenges differ from instanced challenges in that they run a single deployment accessible by all users, rather than creating per-user instances.
Key changes:
- Added Kubernetes deployment templates for shared web and TCP challenges
- Updated the generator logic to support both shared and instanced challenge types
- Fixed container naming and port mapping in the instanced TCP template
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| template/shared-web-k8s.yml | New Kubernetes deployment template for shared web challenges with Deployment, Service, and Ingress resources using Helm templating |
| template/shared-tcp-k8s.yml | New Kubernetes deployment template for shared TCP challenges with Deployment, Service, and IngressRouteTCP resources |
| template/instanced-tcp-k8s.yml | Fixed container name from "web" to "tcp" and added missing targetPort field to Service definition |
| src/library/generator.py | Added shared_template_file() method and conditional logic to generate appropriate template based on challenge type (shared vs instanced) |
| src/commands/challenge_creator.py | Extended prompt logic to request instanced_type for both "instanced" and "shared" challenge types, with improved handling of provided arguments |
| README.md | Updated documentation to reflect new shared template files and removed outdated note about shared templates not being supported |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.