Skip to content

feat: add Calico Helm values module and configuration files - #589

Open
hamzabouissi wants to merge 5 commits into
mainfrom
feat/add_calico_helm_values
Open

feat: add Calico Helm values module and configuration files#589
hamzabouissi wants to merge 5 commits into
mainfrom
feat/add_calico_helm_values

Conversation

@hamzabouissi

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 2, 2026 11:00
@github-actions github-actions Bot added the patch label Apr 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 introduces Terraform support for generating and publishing Calico Helm values into the per-environment “captain” repositories, similar to how Argo CD and platform values are generated today.

Changes:

  • Added a new modules/calico Terraform module that renders a Calico values YAML via templatefile().
  • Wired the new Calico values module into generate-helm-values.tf for each environment.
  • Included the generated calico.yaml in the set of files written to each captain repository.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
modules/calico/values.tpl Adds the Calico Helm values template intended to be rendered by Terraform.
modules/calico/main.tf Defines inputs/outputs to render values.tpl via templatefile().
generate-helm-values.tf Adds a per-environment module block to generate Calico Helm values.
captain-repo.tf Publishes generated calico.yaml into each captain repository.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread generate-helm-values.tf Outdated
Comment thread modules/calico/values.tpl Outdated
Comment thread modules/calico/values.tpl
Copilot AI review requested due to automatic review settings April 2, 2026 11:05
@hamzabouissi
hamzabouissi removed the request for review from Copilot April 2, 2026 11:05
Copilot AI review requested due to automatic review settings April 2, 2026 11:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread modules/calico/values.tpl
Comment thread modules/calico/values.tpl
calicoNetwork:
bgp: Disabled
ipPools:
- cidr: 172.16.0.0/16

Copilot AI Apr 2, 2026

Copy link

Choose a reason for hiding this comment

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

The IP pool CIDR is hard-coded (172.16.0.0/16). If different environments/VPCs require different pod CIDRs, this will force forks or manual edits in generated repos. Consider parameterizing this value (module variable, or deriving from environment inputs) to keep the module reusable.

Suggested change
- cidr: 172.16.0.0/16
- cidr: ${calico_ip_pool_cidr_placeholder}

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@venkatamutyala what do you think of moving this into tenant.tf ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@hamzabouissi that is what I was thinking as well. however how does gluekube handle it?

@hamzabouissi

Copy link
Copy Markdown
Contributor Author

@venkatamutyala venkatamutyala left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

see comment

@venkatamutyala

venkatamutyala commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

@allanice001 this is waiting on the metadata keyvalue pair solution we discussed with hamza before they left on vacation

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.

3 participants