Skip to content

Replatform on D2 Architecture#6

Open
stealthybox wants to merge 8 commits intocontrolplaneio:mainfrom
stealthybox:main
Open

Replatform on D2 Architecture#6
stealthybox wants to merge 8 commits intocontrolplaneio:mainfrom
stealthybox:main

Conversation

@stealthybox
Copy link

  • feat: structure k8s manifests w/ kustomize for flux d2 architecture
  • Add gh actions for signed Flux Artifacts (D2)
  • Add gh actions for signed multi-arch images
  • ci: fine-tune workflows
  • Pin tags in manifests
  • chore: temporarily disable path filters to trigger push latest
  • chore: reenable push path filters
  • Split out ns/secret creation in Makefile for bootstrap

@sublimino sublimino requested a review from Copilot July 18, 2025 12:21
Copy link

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 replatforms the project to use D2 architecture by implementing Kustomize-based Kubernetes manifest management with Flux and establishing CI/CD pipelines for signed container images and artifacts.

  • Restructures Kubernetes manifests using Kustomize for better organization and component-based deployment
  • Implements GitHub Actions workflows for building, signing, and publishing multi-architecture container images and Flux artifacts
  • Updates the Makefile to separate namespace/secret creation from infrastructure deployment for improved bootstrap process

Reviewed Changes

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

Show a summary per file
File Description
k8s/manifests/netpols/kustomization.yaml Adds Kustomize component configuration for network policies
k8s/manifests/kustomization.yaml Main Kustomization configuration defining resources, components, and image mappings
Makefile Splits namespace/secret creation into separate target from infrastructure deployment
.github/workflows/release-image.yaml CI workflow for releasing signed multi-arch container images on tag push
.github/workflows/release-artifact.yaml CI workflow for releasing signed Flux artifacts on tag push
.github/workflows/push-image.yaml CI workflow for pushing signed container images to latest on main branch
.github/workflows/push-artifact.yaml CI workflow for pushing Flux artifacts to latest on main branch

- 05-ctrl-prompt.yaml
- 06-pvcs.yaml
components:
# - ./netpols/
Copy link

Copilot AI Jul 18, 2025

Choose a reason for hiding this comment

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

The commented-out netpols component suggests incomplete implementation. Either enable the component or remove the commented line to avoid confusion.

Suggested change
# - ./netpols/

Copilot uses AI. Check for mistakes.
push: true
builder: ${{ steps.buildx.outputs.name }}
context: "./container/${{ steps.prep.outputs.COMPONENT }}"
platforms: linux/amd64,linux/arm/v7,linux/arm64
Copy link

Copilot AI Jul 18, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using linux/arm64/v8 instead of linux/arm64 for more explicit ARM64 architecture specification, as linux/arm64 is an alias that may be deprecated.

Suggested change
platforms: linux/amd64,linux/arm/v7,linux/arm64
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8

Copilot uses AI. Check for mistakes.
push: true
builder: ${{ steps.buildx.outputs.name }}
context: "./container/${{ matrix.component }}"
platforms: linux/amd64,linux/arm/v7,linux/arm64
Copy link

Copilot AI Jul 18, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider using linux/arm64/v8 instead of linux/arm64 for more explicit ARM64 architecture specification, as linux/arm64 is an alias that may be deprecated.

Suggested change
platforms: linux/amd64,linux/arm/v7,linux/arm64
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8

Copilot uses AI. Check for mistakes.
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