Skip to content

fix(services): exclude activity from default aggregate#605

Merged
kevwilliams merged 1 commit into
mainfrom
fix/activity-policies-opt-in
May 6, 2026
Merged

fix(services): exclude activity from default aggregate#605
kevwilliams merged 1 commit into
mainfrom
fix/activity-policies-opt-in

Conversation

@kevwilliams
Copy link
Copy Markdown
Contributor

Summary

Remove activity from the default config/services/kustomization.yaml aggregate so its ActivityPolicy resources aren't applied to clusters that don't have the activity.miloapis.com CRDs installed.

Why

PR #579 added 23 ActivityPolicy resources under config/services/activity/policies/... and wired activity into the top-level config/services/kustomization.yaml, but the ActivityPolicy CRD is not part of the milo control plane bootstrap. As a result, every PR's test-environment-validation job fails when task dev:deploy runs kubectl apply -k config/services/:

resource mapping not found for name: "..." namespace: "" from "config/services/":
  no matches for kind "ActivityPolicy" in version "activity.miloapis.com/v1alpha1"
ensure CRDs are installed first

config/services/activity/kustomization.yaml already explicitly documents that this component should be applied separately once the activity service is present:

# ActivityPolicy resources require the activity.miloapis.com CRDs to be installed.
# Those CRDs are provided by the activity service, which is not deployed in the
# milo test cluster. Deploy this directory separately once the activity service is present.

But the aggregate kept pulling it in regardless. This change makes the comment match the behavior.

Behavior change

  • kustomize build config/services/ no longer emits ActivityPolicy resources (verified: 0 emitted, was 23).
  • kustomize build config/services/activity/ still emits all 23 ActivityPolicy resources for environments that need them.
  • Test-environment bootstrap stops failing on missing ActivityPolicy CRD.

Test plan

  • kustomize build config/services/ | grep -c ActivityPolicy0
  • kustomize build config/services/activity/ | grep -c ActivityPolicy23
  • test-environment-validation job passes on this PR

ActivityPolicy resources require the activity.miloapis.com CRDs, which
are not installed by the milo control plane bootstrap. Including
config/services/activity in the default config/services aggregate caused
the test-environment-validation job to fail on every PR with:

  resource mapping not found ... no matches for kind "ActivityPolicy" in
  version "activity.miloapis.com/v1alpha1"
  ensure CRDs are installed first

config/services/activity/kustomization.yaml already documents that this
component should be applied separately once the activity service is
present, but the aggregate kept pulling it in regardless.

Anyone needing ActivityPolicies should apply config/services/activity/
explicitly after ensuring the activity CRDs are installed.
@joggrbot
Copy link
Copy Markdown
Contributor

joggrbot Bot commented May 6, 2026

📝 Documentation Analysis

All docs are up to date! 🎉


✅ Latest commit analyzed: 9c00baa | Powered by Joggr

@kevwilliams kevwilliams requested a review from scotwells May 6, 2026 21:06
Copy link
Copy Markdown
Contributor

@scotwells scotwells left a comment

Choose a reason for hiding this comment

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

You'll want a corresponding change on the infra side to enable this.

@kevwilliams kevwilliams merged commit 6eb3659 into main May 6, 2026
10 checks passed
@kevwilliams kevwilliams deleted the fix/activity-policies-opt-in branch May 6, 2026 22:01
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