You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(azure): lexicon no longer generates Microsoft.Authorization/roleAssignments — breaks k8s-aks-microservice #223
The Azure lexicon's generated output (lexicons/azure/src/generated/index.ts, what the package re-exports) no longer includes a resource for Microsoft.Authorization/roleAssignments. It has policyAssignments / policyEnrollments / policyExemptions under Microsoft.Authorization/, but the standalone roleAssignments resource (previously exported as RoleAssignment) is gone.
A stale lexicons/azure/src/generated/chunk-001.ts still contains export const RoleAssignment = createResource("Microsoft.Authorization/roleAssignments", ...), but nothing re-exports the chunk, so it's dead. Regenerating (npm run --prefix lexicons/azure prepack) does not restore roleAssignments to index.ts.
Impact
examples/k8s-aks-microservice/src/infra/cluster.ts imports RoleAssignment (3 uses: appAcrPull, dnsContributor, monitorMetrics). The build fails at discovery:
DiscoveryError: The requested module '@intentius/chant-lexicon-azure'
does not provide an export named 'RoleAssignment'
This went undetected because the example-tier vitest tests weren't running in CI (Bun-legacy import.meta.dir, fixed separately in #216 PR-A). With those tests revived, the k8s-aks-microservice suite fails (5 tests). It is quarantined (describe.skip) with a pointer to this issue until the lexicon is fixed.
Likely cause
The Azure ARM schema source or the generation filter changed and dropped Microsoft.Authorization/roleAssignments. Needs investigation:
Is roleAssignments present in the upstream ARM schema the generator pulls?
Did a naming/dedup collision drop it?
Is the stale chunk-001.ts a symptom of an older chunked output scheme not cleaned up?
Acceptance
Microsoft.Authorization/roleAssignments is generated and exported from the Azure lexicon package (runtime const), or a documented replacement exists.
examples/k8s-aks-microservice builds again; remove the describe.skip quarantine.
Stale generated/chunk-001.ts cleaned up if it's an orphan.
Activity
test: revive example-tier tests — port off Bun, run in CI (#216) (#224)
fix(azure): pin Microsoft.Authorization so roleAssignments generates (#…
fix(azure): pin the resource-manager-schemas source — codegen stops d…