-
Notifications
You must be signed in to change notification settings - Fork 4
fix(infra): enable workload profiles for staging and prod #2285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(infra): enable workload profiles for staging and prod #2285
Conversation
📝 WalkthroughWalkthroughThe changes remove the Changes
Possibly related PRs
Suggested reviewers
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
.azure/modules/containerApp/main.bicep (1)
191-191
: Unconditionally assign the workload profile
TheworkloadProfileName
property is now set directly from theworkloadProfileName
parameter, removing the old environment‐based conditional. This aligns with the goal of enabling workload profiles in staging and prod. Consider constrainingworkloadProfileName
with an@allowed()
decorator or parameter metadata if there’s a known set of valid profiles (e.g., 'Consumption', 'Premium') to catch typos early..azure/modules/containerAppJob/main.bicep (1)
78-78
: Simplify job workload profile configuration
The job resource now unconditionally uses the providedworkloadProfileName
. Verify that the default ('Consumption'
) makes sense for all deployment scenarios, and consider adding parameter validation (via@allowed()
or custom checks) to ensure only supported profiles are passed..azure/modules/containerAppEnv/main.bicep (1)
69-69
: Remove environment filter from workloadProfiles
By assigningworkloadProfiles
directly, all profiles provided will be applied regardless of environment. Confirm that callers supply the full list of desired profiles for staging and prod. You may also add schema validation for items in theworkloadProfiles
array to enforce required fields (name, workloadProfileType).
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (11)
.azure/applications/graphql/main.bicep
(0 hunks).azure/applications/service/main.bicep
(0 hunks).azure/applications/sync-resource-policy-information-job/main.bicep
(0 hunks).azure/applications/sync-subject-resource-mappings-job/main.bicep
(0 hunks).azure/applications/web-api-eu/main.bicep
(0 hunks).azure/applications/web-api-migration-job/main.bicep
(0 hunks).azure/applications/web-api-so/main.bicep
(0 hunks).azure/infrastructure/main.bicep
(0 hunks).azure/modules/containerApp/main.bicep
(1 hunks).azure/modules/containerAppEnv/main.bicep
(1 hunks).azure/modules/containerAppJob/main.bicep
(1 hunks)
💤 Files with no reviewable changes (8)
- .azure/applications/web-api-migration-job/main.bicep
- .azure/infrastructure/main.bicep
- .azure/applications/service/main.bicep
- .azure/applications/sync-subject-resource-mappings-job/main.bicep
- .azure/applications/web-api-eu/main.bicep
- .azure/applications/sync-resource-policy-information-job/main.bicep
- .azure/applications/graphql/main.bicep
- .azure/applications/web-api-so/main.bicep
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: Dry run deploy infrastructure / Deploy to test
- GitHub Check: build / build-and-test
Description
Removing the temporary code that enabled workload profiles for
test
andyt01
only. Need to recreate the CAE instaging
andprod
for this.Related Issue(s)
Verification
Documentation
docs
-directory, Altinnpedia or a separate linked PR in altinn-studio-docs., if applicable)