Skip to content

Commit c7cdad6

Browse files
committed
setup seperate CNAME for database DNS records
1 parent be640b5 commit c7cdad6

5 files changed

Lines changed: 5 additions & 1 deletion

File tree

chart/templates/controller.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ data:
9595
VELA_CLOUDFLARE__API_TOKEN: {{ .Values.controller.env.VELA_CLOUDFLARE_API_TOKEN | quote }}
9696
VELA_CLOUDFLARE__ZONE_ID: {{ .Values.controller.env.VELA_CLOUDFLARE_ZONE_ID | quote }}
9797
VELA_CLOUDFLARE__BRANCH_REF_CNAME: {{ .Values.controller.env.VELA_BRANCH_REF_CNAME | quote }}
98+
VELA_CLOUDFLARE__BRANCH_DB_REF_CNAME: {{ .Values.controller.env.VELA_BRANCH_DB_REF_CNAME | quote }}
9899
VELA_CLOUDFLARE__DOMAIN_SUFFIX: {{ .Values.domain | quote }}
99100
VELA_DEPLOYMENT_NAMESPACE_PREFIX: {{ .Values.controller.env.VELA_DEPLOYMENT_NAMESPACE_PREFIX | quote }}
100101
VELA_DEPLOYMENT_SERVICE_PORT: {{ .Values.port | quote }}

chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ controller:
3535
VELA_CLOUDFLARE_ZONE_ID: 'your_cloudflare_zone_id'
3636
VELA_DEPLOYMENT_NAMESPACE_PREFIX: 'vela'
3737
VELA_BRANCH_REF_CNAME: 'demo-ref.vela.run'
38+
VELA_BRANCH_DB_REF_CNAME: 'demo-dbref.vela.run'
3839
VELA_KEYCLOAK_URL: 'http://vela-auth-service:8080/auth/'
3940
VELA_JWT_SECRET: 'http://vela-auth-service:8080/auth/realms/vela/protocol/openid-connect/certs'
4041
VELA_GRAFANA_URL: 'http://vela-grafana:3000'

containers/compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ services:
3333
VELA_CLOUDFLARE__API_TOKEN: 'your_cloudflare_api_token'
3434
VELA_CLOUDFLARE__ZONE_ID: 'your_cloudflare_zone_id'
3535
VELA_CLOUDFLARE__BRANCH_REF_CNAME: 'branch-ref.staging.vela.run'
36+
VELA_CLOUDFLARE__BRANCH_DB_REF_CNAME: 'branch-db-ref.staging.vela.run'
3637
VELA_CLOUDFLARE__DOMAIN_SUFFIX: 'example.com'
3738
VELA_DEPLOYMENT_NAMESPACE_PREFIX: 'vela'
3839
VELA_GRAFANA_URL: 'http://grafana:3000'

src/deployment/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ async def provision_branch_endpoints(
11951195
cf_cfg,
11961196
domain=db_domain,
11971197
record_type=DATABASE_DNS_RECORD_TYPE,
1198-
content=cf_cfg.branch_ref_cname,
1198+
content=cf_cfg.branch_db_ref_cname,
11991199
proxied=False,
12001200
)
12011201
)

src/deployment/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class CloudflareSettings(BaseModel):
99
api_token: str
1010
zone_id: str
1111
branch_ref_cname: str
12+
branch_db_ref_cname: str
1213
domain_suffix: str
1314

1415

0 commit comments

Comments
 (0)