-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add k8s manifests for 4 missing services and update CI pipeline #528
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -95,6 +95,9 @@ jobs: | |||||
| - tenant-service | ||||||
| - enrollment-import-service | ||||||
| - trading-partner-service | ||||||
| - premium-billing-service | ||||||
| - appeals-service | ||||||
| - rfai-service | ||||||
| include: | ||||||
| # Most .NET services need repo root as context to reach | ||||||
| # src/services/shared/CloudHealthOffice.Infrastructure/ and/or src/engines/. | ||||||
|
|
@@ -125,6 +128,12 @@ jobs: | |||||
| build_context: '.' | ||||||
| - service: reference-data-service | ||||||
| build_context: '.' | ||||||
| - service: premium-billing-service | ||||||
| build_context: '.' | ||||||
| - service: appeals-service | ||||||
| build_context: '.' | ||||||
| - service: rfai-service | ||||||
| build_context: '.' | ||||||
|
|
||||||
| steps: | ||||||
| - uses: actions/checkout@v4 | ||||||
|
|
@@ -363,6 +372,19 @@ jobs: | |||||
| src/portal/CloudHealthOffice.Portal/k8s/portal-deployment.yaml \ | ||||||
| | kubectl apply -f - | ||||||
|
|
||||||
| - name: Apply backend service manifests | ||||||
| run: | | ||||||
| ACR="${{ env.REGISTRY }}" | ||||||
| SHA="sha-${{ github.sha }}" | ||||||
| for manifest in src/services/*/k8s/*.yaml; do | ||||||
| echo "Applying ${manifest}..." | ||||||
| sed \ | ||||||
| -e "s|choacrhy6h2vdulfru6.azurecr.io/cloudhealthoffice-|${ACR}/cloudhealthoffice-|g" \ | ||||||
| -e "s|:latest|:${SHA}|g" \ | ||||||
|
||||||
| -e "s|:latest|:${SHA}|g" \ | |
| -e "s|\(${ACR}/cloudhealthoffice-[^:]*\):latest|\1:${SHA}|g" \ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,6 +52,10 @@ SERVICES=( | |
| eligibility-service | ||
| coverage-service | ||
| enrollment-import-service | ||
| premium-billing-service | ||
| appeals-service | ||
| rfai-service | ||
| claims-scrubbing-service | ||
|
Comment on lines
+55
to
+58
|
||
| ) | ||
|
|
||
| info() { echo "▸ $*"; } | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,112 @@ | ||||||||||||||||||||||||||||||||
| apiVersion: v1 | ||||||||||||||||||||||||||||||||
| kind: ConfigMap | ||||||||||||||||||||||||||||||||
| metadata: | ||||||||||||||||||||||||||||||||
| name: appeals-service-config | ||||||||||||||||||||||||||||||||
| namespace: cloudhealthoffice | ||||||||||||||||||||||||||||||||
| data: | ||||||||||||||||||||||||||||||||
| ASPNETCORE_ENVIRONMENT: "Production" | ||||||||||||||||||||||||||||||||
| CosmosDb__DatabaseName: "CloudHealthOffice" | ||||||||||||||||||||||||||||||||
| AzureStorage__ContainerName: "appeal-attachments" | ||||||||||||||||||||||||||||||||
| ClaimsService__BaseUrl: "http://claims-service.cloudhealthoffice" | ||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||
| apiVersion: apps/v1 | ||||||||||||||||||||||||||||||||
| kind: Deployment | ||||||||||||||||||||||||||||||||
| metadata: | ||||||||||||||||||||||||||||||||
| name: appeals-service | ||||||||||||||||||||||||||||||||
| namespace: cloudhealthoffice | ||||||||||||||||||||||||||||||||
| labels: | ||||||||||||||||||||||||||||||||
| app: appeals-service | ||||||||||||||||||||||||||||||||
| tier: backend | ||||||||||||||||||||||||||||||||
| spec: | ||||||||||||||||||||||||||||||||
| replicas: 1 | ||||||||||||||||||||||||||||||||
| selector: | ||||||||||||||||||||||||||||||||
|
Comment on lines
+20
to
+22
|
||||||||||||||||||||||||||||||||
| matchLabels: | ||||||||||||||||||||||||||||||||
| app: appeals-service | ||||||||||||||||||||||||||||||||
| template: | ||||||||||||||||||||||||||||||||
| metadata: | ||||||||||||||||||||||||||||||||
| labels: | ||||||||||||||||||||||||||||||||
| app: appeals-service | ||||||||||||||||||||||||||||||||
| tier: backend | ||||||||||||||||||||||||||||||||
| spec: | ||||||||||||||||||||||||||||||||
| containers: | ||||||||||||||||||||||||||||||||
| - name: appeals-service | ||||||||||||||||||||||||||||||||
| image: choacrhy6h2vdulfru6.azurecr.io/cloudhealthoffice-appeals-service:latest | ||||||||||||||||||||||||||||||||
| imagePullPolicy: Always | ||||||||||||||||||||||||||||||||
| ports: | ||||||||||||||||||||||||||||||||
| - containerPort: 8080 | ||||||||||||||||||||||||||||||||
| name: http | ||||||||||||||||||||||||||||||||
| protocol: TCP | ||||||||||||||||||||||||||||||||
| env: | ||||||||||||||||||||||||||||||||
| - name: ASPNETCORE_ENVIRONMENT | ||||||||||||||||||||||||||||||||
| valueFrom: | ||||||||||||||||||||||||||||||||
| configMapKeyRef: | ||||||||||||||||||||||||||||||||
| name: appeals-service-config | ||||||||||||||||||||||||||||||||
| key: ASPNETCORE_ENVIRONMENT | ||||||||||||||||||||||||||||||||
| - name: CosmosDb__AccountEndpoint | ||||||||||||||||||||||||||||||||
| valueFrom: | ||||||||||||||||||||||||||||||||
| secretKeyRef: | ||||||||||||||||||||||||||||||||
| name: cosmos-db-secret | ||||||||||||||||||||||||||||||||
| key: endpoint | ||||||||||||||||||||||||||||||||
| - name: CosmosDb__AccountKey | ||||||||||||||||||||||||||||||||
|
Comment on lines
+45
to
+50
|
||||||||||||||||||||||||||||||||
| - name: CosmosDb__AccountEndpoint | |
| valueFrom: | |
| secretKeyRef: | |
| name: cosmos-db-secret | |
| key: endpoint | |
| - name: CosmosDb__AccountKey | |
| - name: CosmosDb__Endpoint | |
| valueFrom: | |
| secretKeyRef: | |
| name: cosmos-db-secret | |
| key: endpoint | |
| - name: CosmosDb__Key |
Copilot
AI
Mar 20, 2026
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.
This Deployment references secret "cosmos-db-secret" (keys "endpoint"/"key"), but the AKS deploy workflow currently creates "cosmosdb-secret" with only a "connectionString" key. As-is, the referenced secret/keys will be missing and the pod will fail to start. Align the secret name/keys between the workflow and manifests.
| - name: CosmosDb__AccountEndpoint | |
| valueFrom: | |
| secretKeyRef: | |
| name: cosmos-db-secret | |
| key: endpoint | |
| - name: CosmosDb__AccountKey | |
| valueFrom: | |
| secretKeyRef: | |
| name: cosmos-db-secret | |
| key: key | |
| - name: CosmosDb__ConnectionString | |
| valueFrom: | |
| secretKeyRef: | |
| name: cosmosdb-secret | |
| key: connectionString |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,122 @@ | ||||||||||
| apiVersion: v1 | ||||||||||
| kind: ConfigMap | ||||||||||
| metadata: | ||||||||||
| name: claims-scrubbing-service-config | ||||||||||
| namespace: cloudhealthoffice | ||||||||||
| data: | ||||||||||
| NODE_ENV: "production" | ||||||||||
| KAFKA_BOOTSTRAP_SERVERS: "kafka.cloudhealthoffice:9092" | ||||||||||
| KAFKA_CLIENT_ID: "claims-scrubbing-service" | ||||||||||
| KAFKA_CONSUMER_GROUP: "claims-scrubbers" | ||||||||||
| INBOUND_CLAIMS_TOPIC: "claims.inbound" | ||||||||||
| CLEAN_CLAIMS_TOPIC: "claims.clean" | ||||||||||
| FLAGGED_CLAIMS_TOPIC: "claims.flagged" | ||||||||||
| REJECTED_CLAIMS_TOPIC: "claims.rejected" | ||||||||||
| COSMOS_DATABASE: "CloudHealthOffice" | ||||||||||
| COSMOS_RULES_CONTAINER: "ScrubRules" | ||||||||||
| COSMOS_AUDIT_CONTAINER: "ScrubAudit" | ||||||||||
| CLAIMS_CONTAINER: "claims-archive" | ||||||||||
| PARALLEL_RULES: "true" | ||||||||||
| MAX_RULE_CONCURRENCY: "10" | ||||||||||
| RULE_TIMEOUT_MS: "5000" | ||||||||||
| CACHE_RULES: "true" | ||||||||||
| RULE_CACHE_TTL: "300" | ||||||||||
| MAX_ERRORS_FOR_REJECTION: "3" | ||||||||||
| MAX_WARNINGS_FOR_FLAGGING: "5" | ||||||||||
| ENABLE_DUPLICATE_DETECTION: "true" | ||||||||||
| ENABLE_MEDICAL_NECESSITY: "true" | ||||||||||
| ENABLE_NCCI_EDITS: "true" | ||||||||||
| ENABLE_AUTO_CORRECTION: "false" | ||||||||||
| ENABLE_REALTIME_NPI: "false" | ||||||||||
| --- | ||||||||||
| apiVersion: apps/v1 | ||||||||||
| kind: Deployment | ||||||||||
| metadata: | ||||||||||
| name: claims-scrubbing-service | ||||||||||
| namespace: cloudhealthoffice | ||||||||||
| labels: | ||||||||||
| app: claims-scrubbing-service | ||||||||||
| tier: backend | ||||||||||
| spec: | ||||||||||
| replicas: 1 | ||||||||||
| selector: | ||||||||||
|
Comment on lines
+40
to
+42
|
||||||||||
| matchLabels: | ||||||||||
| app: claims-scrubbing-service | ||||||||||
| template: | ||||||||||
| metadata: | ||||||||||
| labels: | ||||||||||
| app: claims-scrubbing-service | ||||||||||
| tier: backend | ||||||||||
| spec: | ||||||||||
| containers: | ||||||||||
| - name: claims-scrubbing-service | ||||||||||
| image: choacrhy6h2vdulfru6.azurecr.io/cloudhealthoffice-claims-scrubbing-service:latest | ||||||||||
| imagePullPolicy: Always | ||||||||||
| ports: | ||||||||||
| - containerPort: 3000 | ||||||||||
| name: http | ||||||||||
| protocol: TCP | ||||||||||
| envFrom: | ||||||||||
| - configMapRef: | ||||||||||
| name: claims-scrubbing-service-config | ||||||||||
| env: | ||||||||||
| - name: KAFKA_SASL_USERNAME | ||||||||||
| valueFrom: | ||||||||||
| secretKeyRef: | ||||||||||
| name: kafka-secret | ||||||||||
| key: saslUsername | ||||||||||
| optional: true | ||||||||||
| - name: KAFKA_SASL_PASSWORD | ||||||||||
| valueFrom: | ||||||||||
| secretKeyRef: | ||||||||||
| name: kafka-secret | ||||||||||
| key: saslPassword | ||||||||||
| optional: true | ||||||||||
| - name: COSMOS_ENDPOINT | ||||||||||
| valueFrom: | ||||||||||
| secretKeyRef: | ||||||||||
| name: cosmos-db-secret | ||||||||||
| key: endpoint | ||||||||||
|
Comment on lines
+78
to
+79
|
||||||||||
| name: cosmos-db-secret | |
| key: endpoint | |
| name: cosmosdb-secret | |
| key: connectionString |
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.
The manifests expect a secret named "cosmos-db-secret" with "endpoint"/"key" keys, but this workflow creates "cosmosdb-secret" with only a "connectionString" key (earlier in the job). With this new apply loop, deployments will fail due to missing secrets/keys unless the secret name/shape is aligned between the workflow and manifests.