Skip to content

Setup Submariner and Karmada integration#89

Open
ProjectInitiative wants to merge 5 commits intomainfrom
setup-submariner-karmada-3015386288140939478
Open

Setup Submariner and Karmada integration#89
ProjectInitiative wants to merge 5 commits intomainfrom
setup-submariner-karmada-3015386288140939478

Conversation

@ProjectInitiative
Copy link
Owner

This PR addresses the user request to setup Submariner and add Karmada as an ArgoCD endpoint.

Changes:

  1. Helper Script (scripts/sync-secrets.py):

    • Extracts Submariner broker secret from the broker cluster (cc) and writes it to Vault path submariner/broker-info.
    • Extracts Karmada admin kubeconfig from cc, formats it as an ArgoCD cluster config (JSON), and writes it to Vault path karmada/config.
    • This bridges the gap between cluster installation and GitOps secret distribution.
  2. ArgoCD Karmada Endpoint (apps/base/argocd-karmada-endpoint):

    • New application configuration created to inject the Karmada cluster secret into the argocd namespace.
    • Uses vaultSecrets to pull the config from Vault.
  3. Pulumi Update (pulumi/__main__.py):

    • Enhanced vaultSecrets handling to support labels and annotations on the destination secret.
    • This allows applying argocd.argoproj.io/secret-type: cluster label automatically via VSO.
  4. Cluster Configuration (clusters/cc.yaml):

    • Enabled argocd-karmada-endpoint on the Control Cluster (cc).

Verification:

  • Verified code logic and syntax.
  • Confirmed pulumi/__main__.py changes correctly map config labels to the generated manifest structure.

PR created automatically by Jules for task 3015386288140939478 started by @ProjectInitiative

- Added `argocd-karmada-endpoint` app to `apps.yaml` to register Karmada as an ArgoCD cluster.
- Enabled `argocd-karmada-endpoint` in `clusters/cc.yaml` (Control Cluster).
- Created helper script `scripts/sync-secrets.py` to sync Submariner broker info and Karmada admin config from clusters to Vault.
- Updated `pulumi/__main__.py` to support `labels` and `annotations` in `vaultSecrets` destination configuration, enabling correct labeling of the ArgoCD cluster secret.

Co-authored-by: ProjectInitiative <6314611+ProjectInitiative@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules bot and others added 4 commits February 26, 2026 16:51
- Updated `.github/workflows/manifest-diff.yaml`, `.github/workflows/build-push-nixos-remote-builder.yaml`, and `.github/workflows/build-push-pulumi-cmp.yaml` to use `DeterminateSystems/nix-installer-action@v16`.
- This resolves the "TypeError: Invalid URL" error caused by deprecated Node.js versions in the older v10 action.

Co-authored-by: ProjectInitiative <6314611+ProjectInitiative@users.noreply.github.com>
- Updated `nix/scripts/generate-manifests.nix` to include `${pkgs.pulumi}/bin` in `PATH`.
- This ensures the Nix-bundled `pulumi-language-python` is used instead of the incompatible pre-installed version on GitHub Actions runners, resolving the "flag provided but not defined: -root" error.

Co-authored-by: ProjectInitiative <6314611+ProjectInitiative@users.noreply.github.com>
- Updated `nix/scripts/generate-manifests.nix` to include `${pkgs.pulumi}/bin` in `PATH`.
- This ensures the Nix-bundled `pulumi-language-python` is used instead of the incompatible pre-installed version on GitHub Actions runners, resolving the "flag provided but not defined: -root" error.

Co-authored-by: ProjectInitiative <6314611+ProjectInitiative@users.noreply.github.com>
@github-actions
Copy link

Manifest Changes Detected

Click to expand diff
Only in manifests-pr/1-manifest: argoproj.io_v1alpha1-application-argocd-cc-argocd-karmada-endpoint.yaml

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.

1 participant