-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix issue: Port was ignored when building the ingress for a non-http endpoint. Leaving the exposedPort as 0. This change takes the port as the `exposedPort` for non-http endpoints * assign anyway
- Loading branch information
Showing
6 changed files
with
73 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
cli/azd/pkg/apphost/testdata/TestAspireContainerGeneration-kafka.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
api-version: 2024-02-02-preview | ||
location: {{ .Env.AZURE_LOCATION }} | ||
identity: | ||
type: UserAssigned | ||
userAssignedIdentities: | ||
? "{{ .Env.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID }}" | ||
: {} | ||
properties: | ||
environmentId: {{ .Env.AZURE_CONTAINER_APPS_ENVIRONMENT_ID }} | ||
configuration: | ||
activeRevisionsMode: single | ||
runtime: | ||
dotnet: | ||
autoConfigureDataProtection: true | ||
ingress: | ||
external: false | ||
targetPort: {{ targetPortOrDefault 9092 }} | ||
exposedPort: 6000 | ||
transport: tcp | ||
allowInsecure: false | ||
registries: | ||
- server: {{ .Env.AZURE_CONTAINER_REGISTRY_ENDPOINT }} | ||
identity: {{ .Env.AZURE_CONTAINER_REGISTRY_MANAGED_IDENTITY_ID }} | ||
template: | ||
containers: | ||
- image: {{ .Image }} | ||
name: kafka | ||
env: | ||
- name: AZURE_CLIENT_ID | ||
value: {{ .Env.MANAGED_IDENTITY_CLIENT_ID }} | ||
- name: KAFKA_ADVERTISED_LISTENERS | ||
value: PLAINTEXT://localhost:29092,PLAINTEXT_HOST://localhost:9092 | ||
scale: | ||
minReplicas: 1 | ||
tags: | ||
azd-service-name: kafka | ||
aspire-resource-name: kafka | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters