Skip to content

Commit

Permalink
Hotfix - MSI RP endpoint env var (#3881)
Browse files Browse the repository at this point in the history
* Add missing RP-Config param to RP deploy ARM template

* Plumb msiRpEndpoint ARM parameter through to RP environment variable

* Regenerate RP ARM template

* Remove duplicated MSI_RP_ENDPOINT envvar in RP env

* Add env var to aro-rp.service startup

* Regenerate RP ARM template

---------

Co-authored-by: Tanmay Satam <[email protected]>
  • Loading branch information
kimorris27 and tsatam authored Oct 4, 2024
1 parent a024907 commit 3ba0b23
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/deploy/assets/gateway-production.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions pkg/deploy/assets/rp-production-parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
"mdsdEnvironment": {
"value": ""
},
"msiRpEndpoint": {
"value": ""
},
"nonZonalRegions": {
"value": [
"eastasia",
Expand Down
5 changes: 4 additions & 1 deletion pkg/deploy/assets/rp-production.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pkg/deploy/generator/resources_rp.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ func (g *generator) rpVMSS() *arm.Resource {
"keyvaultPrefix",
"mdmFrontendUrl",
"mdsdEnvironment",
"msiRpEndpoint",
"portalAccessGroupIds",
"portalClientId",
"portalElevatedGroupIds",
Expand Down
1 change: 1 addition & 0 deletions pkg/deploy/generator/scripts/util-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ ExecStart=/usr/bin/podman run \
-e ARO_ADOPT_BY_HIVE \
-e OIDC_AFD_ENDPOINT \
-e OIDC_STORAGE_ACCOUNT_NAME \
-e MSI_RP_ENDPOINT \
-m 2g \
-p 443:8443 \
-v /etc/aro-rp:/etc/aro-rp \
Expand Down
1 change: 1 addition & 0 deletions pkg/deploy/generator/templates_rp.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (g *generator) rpTemplate() *arm.Template {
"vmssCleanupEnabled",
"vmssName",
"oidcStorageAccountName",
"msiRpEndpoint",

// TODO: Replace with Live Service Configuration in KeyVault
"clustersInstallViaHive",
Expand Down

0 comments on commit 3ba0b23

Please sign in to comment.