Skip to content
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

Add appsettings to de configmap in chart #5720

Merged
merged 5 commits into from
Jun 14, 2023
Merged

Conversation

youngbupark
Copy link

@youngbupark youngbupark commented Jun 14, 2023

Description

This is to add appsettings.Production.json to configmap to enable user to configure appsettings for DE.

Issue reference

Fixes: radius-project/core-team#1209

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Adds necessary unit tests for change
  • Adds necessary E2E tests for change
  • Unit tests passing
  • Extended the documentation / Created issue for it

Auto-generated summary

🤖 Generated by Copilot at d635aee

Summary

📝🛠️🚀

This pull request introduces a ConfigMap-based configuration for the bicep-de service. It modifies the deploy/Chart/templates/de/deployment.yaml and deploy/Chart/templates/de/configmaps.yaml files to use the ConfigMap as the source of the appsettings.Production.json file.

Oh we're the bicep-de crew and we know what to do
We use a ConfigMap to keep our settings true
Heave away, haul away, on the count of three
We'll deploy our service to the Kubernetes sea

Walkthrough

  • Add a new ConfigMap resource bicep-de-config to store the appsettings.Production.json file for the bicep-de service (link)
  • Mount the ConfigMap as a volume appsettings-vol in the bicep-de deployment spec and set the ASPNETCORE_ENVIRONMENT variable to Production (link, link)
  • Remove the redundant environment variable ASPNETCORE_Logging__LogLevel__Default from the bicep-de container spec (link)

@youngbupark youngbupark requested a review from a team as a code owner June 14, 2023 19:26
@youngbupark youngbupark changed the title Add appsettings to de configmap Add appsettings to de configmap in chart Jun 14, 2023
@github-actions
Copy link

github-actions bot commented Jun 14, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository project-radius/radius
Commit ref d635aee
Unique ID ce820777c1
Image tag pr-ce820777c1
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.18.0
  • Dapr: 1.10.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.0.0
  • recipe location radiusdev.azurecr.io/test/functional/corerp/recipes/<name>:pr-ce820777c1
  • appcore-rp test image location: radiusdev.azurecr.io/appcore-rp:pr-ce820777c1
  • ucp test image location: radiusdev.azurecr.io/ucpd:pr-ce820777c1

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting ucp functional tests...
⌛ Starting corerp functional tests...
⌛ Starting samples functional tests...
✅ samples functional tests succeeded
✅ ucp functional tests succeeded
✅ corerp functional tests succeeded

@github-actions
Copy link

github-actions bot commented Jun 14, 2023

Test Results

2 699 tests  ±0   2 692 ✔️ ±0   1m 57s ⏱️ -6s
   239 suites ±0          7 💤 ±0 
       1 files   ±0          0 ±0 

Results for commit 38dbe72. ± Comparison against base commit b6214b1.

This pull request removes 2 and adds 2 tests. Note that renamed tests count towards both.
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/c76e603b-856f-4668-b0d8-558231b58bec
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/c76e603b-856f-4668-b0d8-558231b58bec#01
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/6ce44282-2280-4abf-8cc2-7997205e34da
github.com/project-radius/radius/pkg/armrpc/frontend/controller ‑ TestValidateEtag_IfMatch/6ce44282-2280-4abf-8cc2-7997205e34da#01

♻️ This comment has been updated with latest results.

@github-actions
Copy link

63.8

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 63.8 %
  • main branch coverage: 63.8 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@github-actions
Copy link

github-actions bot commented Jun 14, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository project-radius/radius
Commit ref 4c34825
Unique ID 59aefea106
Image tag pr-59aefea106
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.18.0
  • Dapr: 1.10.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.0.0
  • recipe location radiusdev.azurecr.io/test/functional/corerp/recipes/<name>:pr-59aefea106
  • appcore-rp test image location: radiusdev.azurecr.io/appcore-rp:pr-59aefea106
  • ucp test image location: radiusdev.azurecr.io/ucpd:pr-59aefea106

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting samples functional tests...
⌛ Starting corerp functional tests...
⌛ Starting ucp functional tests...
✅ samples functional tests succeeded
✅ ucp functional tests succeeded
✅ corerp functional tests succeeded

@github-actions
Copy link

github-actions bot commented Jun 14, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository project-radius/radius
Commit ref 3390eee
Unique ID 73ee73a6ce
Image tag pr-73ee73a6ce
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.18.0
  • Dapr: 1.10.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.0.0
  • recipe location radiusdev.azurecr.io/test/functional/corerp/recipes/<name>:pr-73ee73a6ce
  • appcore-rp test image location: radiusdev.azurecr.io/appcore-rp:pr-73ee73a6ce
  • ucp test image location: radiusdev.azurecr.io/ucpd:pr-73ee73a6ce

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting samples functional tests...
⌛ Starting corerp functional tests...
⌛ Starting ucp functional tests...
✅ samples functional tests succeeded
✅ ucp functional tests succeeded
✅ corerp functional tests succeeded

@github-actions
Copy link

github-actions bot commented Jun 14, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository project-radius/radius
Commit ref db5f973
Unique ID 02a12eae9d
Image tag pr-02a12eae9d
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.18.0
  • Dapr: 1.10.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.0.0
  • recipe location radiusdev.azurecr.io/test/functional/corerp/recipes/<name>:pr-02a12eae9d
  • appcore-rp test image location: radiusdev.azurecr.io/appcore-rp:pr-02a12eae9d
  • ucp test image location: radiusdev.azurecr.io/ucpd:pr-02a12eae9d

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting ucp functional tests...
⌛ Starting samples functional tests...
⌛ Starting corerp functional tests...
✅ samples functional tests succeeded
✅ ucp functional tests succeeded
✅ corerp functional tests succeeded

@github-actions
Copy link

63.8

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 63.8 %
  • main branch coverage: 63.8 %
  • diff coverage: 0 %

The coverage result does not include the functional test coverage.

@github-actions
Copy link

github-actions bot commented Jun 14, 2023

Radius functional test overview

🔍 Go to test action run

Name Value
Repository project-radius/radius
Commit ref 38dbe72
Unique ID 0fcb816f7c
Image tag pr-0fcb816f7c
Click here to see the list of tools in the current test run
  • gotestsum 1.10.0
  • KinD: v0.18.0
  • Dapr: 1.10.0
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.0.0
  • recipe location radiusdev.azurecr.io/test/functional/corerp/recipes/<name>:pr-0fcb816f7c
  • appcore-rp test image location: radiusdev.azurecr.io/appcore-rp:pr-0fcb816f7c
  • ucp test image location: radiusdev.azurecr.io/ucpd:pr-0fcb816f7c

Test Status

⌛ Building Radius and pushing container images for functional tests...
✅ Container images build succeeded
⌛ Publishing Bicep Recipes for functional tests...
✅ Recipe publishing succeeded
⌛ Starting corerp functional tests...
⌛ Starting samples functional tests...
⌛ Starting ucp functional tests...
✅ samples functional tests succeeded
✅ ucp functional tests succeeded
✅ corerp functional tests succeeded

@github-actions
Copy link

63.9

For the detailed report, please go to Checks tab, click Build and Test, and then download unit_test_coverage artifact at the bottom of build page.

  • Your PR branch coverage: 63.9 %
  • main branch coverage: 63.8 %
  • diff coverage: .1 %

The coverage result does not include the functional test coverage.

@youngbupark youngbupark merged commit b776b03 into main Jun 14, 2023
@youngbupark youngbupark deleted the youngp/use-configmap-de branch June 14, 2023 21:54
nithyatsu pushed a commit that referenced this pull request Jun 21, 2023
# Description

This is to add appsettings.Production.json to configmap to enable user
to configure appsettings for DE.

## Issue reference

<!--
We strive to have all PR being opened based on an issue, where the
problem or feature have been discussed prior to implementation.
-->

Fixes: #5694 

## Checklist

Please make sure you've completed the relevant tasks for this PR, out of
the following list:

* [ ] Code compiles correctly
* [ ] Adds necessary unit tests for change
* [ ] Adds necessary E2E tests for change
* [ ] Unit tests passing
* [ ] Extended the documentation / Created issue for it

## Auto-generated summary

<!--
GitHub Copilot for docs will auto-generate a summary of the PR
-->

<!--
copilot:all
-->
### <samp>🤖 Generated by Copilot at d635aee</samp>

### Summary
📝🛠️🚀

<!--
1. 📝 - This emoji represents the addition of a new ConfigMap resource,
which is a text-based file that contains key-value pairs for
configuration settings. The emoji can also imply documentation or
writing.
2. 🛠️ - This emoji represents the update of the bicep-de deployment to
use the ConfigMap as the configuration source, which is a technical or
engineering change that involves fixing or improving something. The
emoji can also imply tools or construction.
3. 🚀 - This emoji represents the enhancement of the bicep-de service by
externalizing the configuration and making it easier to manage and
update, which is a positive or exciting change that involves launching
or deploying something. The emoji can also imply speed or performance.
-->
This pull request introduces a ConfigMap-based configuration for the
`bicep-de` service. It modifies the
`deploy/Chart/templates/de/deployment.yaml` and
`deploy/Chart/templates/de/configmaps.yaml` files to use the ConfigMap
as the source of the appsettings.Production.json file.

> _Oh we're the bicep-de crew and we know what to do_
> _We use a ConfigMap to keep our settings true_
> _Heave away, haul away, on the count of three_
> _We'll deploy our service to the Kubernetes sea_

### Walkthrough
* Add a new ConfigMap resource `bicep-de-config` to store the
appsettings.Production.json file for the bicep-de service
([link](https://github.com/project-radius/radius/pull/5720/files?diff=unified&w=0#diff-abdbdf0bf9bc402fbc09f6a4d1cd8bf66e6a3af2566a717caf8e60ddb467316eR1-R29))
* Mount the ConfigMap as a volume `appsettings-vol` in the bicep-de
deployment spec and set the `ASPNETCORE_ENVIRONMENT` variable to
`Production`
([link](https://github.com/project-radius/radius/pull/5720/files?diff=unified&w=0#diff-aa649ac3a27b3a57cd4da52d741118f2870fd721886d603f5091a90fc825e025R30-R33),
[link](https://github.com/project-radius/radius/pull/5720/files?diff=unified&w=0#diff-aa649ac3a27b3a57cd4da52d741118f2870fd721886d603f5091a90fc825e025L35-R45))
* Remove the redundant environment variable
`ASPNETCORE_Logging__LogLevel__Default` from the bicep-de container spec
([link](https://github.com/project-radius/radius/pull/5720/files?diff=unified&w=0#diff-aa649ac3a27b3a57cd4da52d741118f2870fd721886d603f5091a90fc825e025L46-L47))
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