Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankilevitch committed Aug 8, 2023
1 parent 3936447 commit f9dc605
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ resource "azurerm_container_app" "ocean-container-app" {
secret {
name = local.port_credentials_secret_name
value = jsonencode({
client_secret : var.port.client_secret,
client_id : var.port.client_id,
for key, value in var.port : key => value if value != null
})
}
dynamic "secret" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ variable "port" {
type = object({
client_id = string
client_secret = string
base_url = optional(string)
})
}

Expand Down
1 change: 1 addition & 0 deletions deployment/terraform/azure/containerapp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ variable "port" {
type = object({
client_id = string
client_secret = string
base_url = optional(string)
})
}

Expand Down
11 changes: 1 addition & 10 deletions integrations/azure/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,9 @@ port:
clientId: "{{ from env PORT_CLIENT_ID }}" # Can be loaded via environment variable: PORT_CLIENT_ID, if both are set, the environment variable will be used.
clientSecret: "{{ from env PORT_CLIENT_SECRET }}" # Can be loaded via environment variable: PORT_CLIENT_SECRET, if both are set, the environment variable will be used.
baseUrl: "{{ from env PORT_BASE_URL }}"
# baseUrl: http://localhost:3000 # Can be loaded via environment variable: PORT_BASE_URL, if both are set, the environment variable will be used.
# The event listener to use for the integration service.
eventListener:
# type: SAMPLE
type: POLLING
# brokers: {{ from env EVENT_LISTENER_BROKERS }}
# username: {{ from env EVENT_LISTENER_USERNAME }}
# password: {{ from env EVENT_LISTENER_PASSWORD }}
# consumerGroup: {{ from env EVENT_LISTENER_CONSUMER_GROUP }}
# authenticationMechanism: {{ from env EVENT_LISTENER_AUTHENTICATION_MECHANISM }}
# kafkaSecurityEnabled: true
# brokers: "localhost:9092"
type: POLLING
integration:
# The identifier of this integration instance.
identifier: "{{ from env INTEGRATION_IDENTIFIER }}"
Expand Down

0 comments on commit f9dc605

Please sign in to comment.