Skip to content

Conversation

@The0mikkel
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings December 20, 2025 14:39
@The0mikkel The0mikkel self-assigned this Dec 20, 2025
Copy link
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 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.

@The0mikkel The0mikkel merged commit 38b0360 into main Dec 20, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants