Skip to content

Add Helm chart scaffold for Kubernetes deployments - #81

Merged
chefgs merged 11 commits into
mainfrom
copilot/add-helm-deployment-template
Oct 6, 2026
Merged

chefgs merged 11 commits into
mainfrom
copilot/add-helm-deployment-template

Conversation

Copilot AI commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Adds a new devopsos scaffold helm command to generate production-ready Helm v3 charts. Users can now bootstrap Kubernetes deployments with templated Chart.yaml, values.yaml, and a complete set of Kubernetes manifests.

Changes

Core Implementation

  • New scaffold_helm.py module generating chart structure with deployment, service, configmap templates, and helpers
  • Validates chart names (lowercase alphanumeric + hyphens) and generates proper Helm v3 syntax
  • Supports optional metadata (author, email, repository URL) with conditional inclusion in Chart.yaml

CLI Integration

  • Added scaffold_helm_cmd() to devopsos.py with Typer decorators
  • Options for chart metadata (name, version, description, app version) and app config (image, replicas, port, namespace)
  • Environment variable support via DEVOPS_OS_HELM_* prefix

Testing & Quality

  • 6 new test cases validating chart generation, template syntax, and CLI integration
  • All 70 tests pass; CodeQL scan reports 0 alerts
  • Follows existing scaffold patterns; parse_arguments accepts optional argv for testability

Example Usage

# Minimal: generates chart with sensible defaults
devopsos scaffold helm --name my-app

# Full: with metadata
devopsos scaffold helm --name my-app \
  --author "DevOps Team" \
  --author-email "devops@example.com" \
  --repo-url "https://github.com/example/my-app" \
  --replicas 3 \
  --image "ghcr.io/example/my-app:v1.0"

# Output structure:
# chart/
#   Chart.yaml
#   values.yaml
#   README.md
#   .helmignore
#   templates/
#     deployment.yaml
#     service.yaml
#     configmap.yaml
#     _helpers.tpl
#     NOTES.txt

Generated charts are immediately usable: helm install my-app ./chart

Copilot AI linked an issue Oct 6, 2026 that may be closed by this pull request
Copilot AI and others added 7 commits October 6, 2026 03:10
Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
… metadata

Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
…ignore

Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
…n from helmignore

Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
…ent clarity

Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Helm chart template for Kubernetes deployment Add Helm chart scaffold for Kubernetes deployments Oct 6, 2026
Copilot AI requested a review from chefgs October 6, 2026 03:22
Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Copilot AI and others added 2 commits October 6, 2026 05:52
…anges

Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
@chefgs
chefgs marked this pull request as ready for review October 6, 2026 05:56

@chefgs chefgs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

@chefgs
chefgs merged commit 8325473 into main Oct 6, 2026
9 checks passed
@chefgs
chefgs deleted the copilot/add-helm-deployment-template branch October 6, 2026 05:58
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.

[Feature]: Add Helm Deployment Template

2 participants