microsoft / planetary-computer-apis

Planetary Computer APIs
MIT License
105 stars 28 forks source link

Change the CI helm chart to reference pcccr #199

Closed joshimai closed 7 months ago

joshimai commented 7 months ago

Description

Change the CI helm chart to reference the new image name https://pcccr.azurecr.io/private/planetary-computer-apis/stac and tiler

Fixes # (issue)

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

Please delete options that are not relevant.

mmcfarland commented 7 months ago

Looks good! I realized that since we are pulling from a new ACR, we'll need to update the permissions on the cluster. Previously, we were granting pull permissions for a test ACR, but we have been actually pulling from MCR. In that case, I think we can just switch the unused ACR to pcccr and apply the role to it:

diff --git a/deployment/terraform/staging/main.tf b/deployment/terraform/staging/main.tf
index 3351718..a2f8f79 100644
--- a/deployment/terraform/staging/main.tf
+++ b/deployment/terraform/staging/main.tf
@@ -9,6 +9,8 @@ module "resources" {
   cluster_cert_issuer = "letsencrypt"
   cluster_cert_server = "https://acme-v02.api.letsencrypt.org/directory"

+  pc_test_resources_acr = "pcccr"
+
   aks_node_count      = 2
   stac_replica_count  = 2
   tiler_replica_count = 2

(see acr.tf)