Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions k8s/base/driver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ spec:
fieldPath: metadata.namespace
- name: SIGNADOT_BASELINE_NAME
value: "driver"
# service dependencies (<NAMESPACE> get replaced at runtime by the app)
# service dependencies
- name: SIGNADOT_ROUTESERVER
value: routeserver.signadot.svc:7777
- name: ROUTE_ADDR
value: route.<NAMESPACE>:8083
value: route.$(SIGNADOT_BASELINE_NAMESPACE):8083
- name: REDIS_ADDR
value: redis.<NAMESPACE>:6379
value: redis.$(SIGNADOT_BASELINE_NAMESPACE):6379
- name: KAFKA_BROKER_ADDR
value: kafka-headless.<NAMESPACE>:9092
value: kafka-headless.$(SIGNADOT_BASELINE_NAMESPACE):9092
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://jaeger.<NAMESPACE>:4318
value: http://jaeger.$(SIGNADOT_BASELINE_NAMESPACE):4318
image: signadot/hotrod:latest
imagePullPolicy: Always
readinessProbe:
Expand Down
10 changes: 5 additions & 5 deletions k8s/base/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ spec:
fieldPath: metadata.namespace
- name: SIGNADOT_BASELINE_NAME
value: "frontend"
# service dependencies (<NAMESPACE> get replaced at runtime by the app)
# service dependencies
- name: LOCATION_ADDR
value: location.<NAMESPACE>:8081
value: location.$(SIGNADOT_BASELINE_NAMESPACE):8081
- name: REDIS_ADDR
value: redis.<NAMESPACE>:6379
value: redis.$(SIGNADOT_BASELINE_NAMESPACE):6379
- name: KAFKA_BROKER_ADDR
value: kafka-headless.<NAMESPACE>:9092
value: kafka-headless.$(SIGNADOT_BASELINE_NAMESPACE):9092
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://jaeger.<NAMESPACE>:4318
value: http://jaeger.$(SIGNADOT_BASELINE_NAMESPACE):4318
image: signadot/hotrod:latest
imagePullPolicy: Always
ports:
Expand Down
8 changes: 4 additions & 4 deletions k8s/base/location.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ spec:
fieldPath: metadata.namespace
- name: SIGNADOT_BASELINE_NAME
value: location
# service dependencies (<NAMESPACE> get replaced at runtime by the app)
# service dependencies
- name: MYSQL_ADDR
value: mysql.<NAMESPACE>:3306
value: mysql.$(SIGNADOT_BASELINE_NAMESPACE):3306
- name: MYSQL_PASS
value: abc
- name: REDIS_ADDR
value: redis.<NAMESPACE>:6379
value: redis.$(SIGNADOT_BASELINE_NAMESPACE):6379
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://jaeger.<NAMESPACE>:4318
value: http://jaeger.$(SIGNADOT_BASELINE_NAMESPACE):4318
image: signadot/hotrod:latest
imagePullPolicy: Always
ports:
Expand Down
4 changes: 2 additions & 2 deletions k8s/base/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ spec:
value: "route"
# service dependencies
- name: REDIS_ADDR
value: redis.<NAMESPACE>:6379
value: redis.$(SIGNADOT_BASELINE_NAMESPACE):6379
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://jaeger.<NAMESPACE>:4318
value: http://jaeger.$(SIGNADOT_BASELINE_NAMESPACE):4318
image: signadot/hotrod:latest
imagePullPolicy: Always
ports:
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/kafka.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

func GetKafkaBrokerAddr() string {
return ExpandNamespace(EnvDefault("KAFKA_BROKER_ADDR", "kafka-headless:9092"))
return EnvDefault("KAFKA_BROKER_ADDR", "kafka-headless:9092")
}

func GetKafkaBrokers() []string {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/location.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ func GetLocationBindPort() string {
}

func GetLocationAddr() string {
return ExpandNamespace(EnvDefault("LOCATION_ADDR", "location:8081"))
return EnvDefault("LOCATION_ADDR", "location:8081")
}
2 changes: 1 addition & 1 deletion pkg/config/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func GetMySQLAddr() string {
return ExpandNamespace(EnvDefault("MYSQL_ADDR", "mysql:3306"))
return EnvDefault("MYSQL_ADDR", "mysql:3306")
}

func GetMySQLUser() string {
Expand Down
13 changes: 0 additions & 13 deletions pkg/config/namespace.go

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/config/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ func InitOtelExporter() {
if addr == "" {
return
}
os.Setenv("OTEL_EXPORTER_OTLP_ENDPOINT", ExpandNamespace(addr))
os.Setenv("OTEL_EXPORTER_OTLP_ENDPOINT", addr)
}
2 changes: 1 addition & 1 deletion pkg/config/redis.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

func GetRedisAddr() string {
return ExpandNamespace(EnvDefault("REDIS_ADDR", "redis:6379"))
return EnvDefault("REDIS_ADDR", "redis:6379")
}

func GetRedisPassword() string {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func GetRouteAddr() string {
return ExpandNamespace(EnvDefault("ROUTE_ADDR", "route:8083"))
return EnvDefault("ROUTE_ADDR", "route:8083")
}

func GetRouteBindPort() string {
Expand Down
Loading