Skip to content

Commit

Permalink
Merge branch 'testing'
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhill committed Jul 12, 2024
2 parents 20b055c + 289e4ec commit 61ac52b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/jarvice-bird.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ spec:
env:
- name: JARVICE_SERVER_PROXY
{{- if empty .Values.jarvice.JARVICE_SYSTEM_NAMESPACE }}
value: "http://jarvice-bird-server.{{ .Release.Namespace }}.svc.cluster.local:9090/"
value: "http://jarvice-bird-server.{{ .Release.Namespace }}.svc.{{ .Values.jarvice.JARVICE_K8S_CLUSTER_DOMAIN }}:9090/"
{{- else }}
value: "http://jarvice-bird-server.{{ .Values.jarvice.JARVICE_SYSTEM_NAMESPACE }}.svc.cluster.local:9090/"
value: "http://jarvice-bird-server.{{ .Values.jarvice.JARVICE_SYSTEM_NAMESPACE }}.svc.{{ .Values.jarvice.JARVICE_K8S_CLUSTER_DOMAIN }}:9090/"
{{- end }}
- name: KEYCLOAK_URL
{{- if (not (empty .Values.jarvice_bird.env.KEYCLOAK_URL)) }}
Expand Down
3 changes: 3 additions & 0 deletions terraform/modules/common/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ locals {
}

locals {
dns_domain = lookup(var.cluster.helm.jarvice, "dns_domain", null) != null ? lookup(var.cluster.helm.jarvice, "dns_domain", null) : lookup(var.global.helm.jarvice, "dns_domain", "cluster.local")
cluster_values_yaml = <<EOF
# common cluster override values
jarvice:
JARVICE_K8S_CLUSTER_DOMAIN: ${local.dns_domain}
tolerations: '[{"key": "node-role.jarvice.io/jarvice-system", "effect": "NoSchedule", "operator": "Exists"}]'
nodeAffinity: '{"requiredDuringSchedulingIgnoredDuringExecution": {"nodeSelectorTerms": [{"matchExpressions": [{"key": "node-role.jarvice.io/jarvice-system", "operator": "Exists"}]}, {"matchExpressions": [{"key": "node-role.kubernetes.io/jarvice-system", "operator": "Exists"}]}] }}'
Expand Down
2 changes: 1 addition & 1 deletion values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jarvice:
JARVICE_HTTP_PROXY: # "http://proxy.my-domain.com:8080"
JARVICE_HTTPS_PROXY: # "https://proxy.my-domain.com:8080"
JARVICE_NO_PROXY: # "my-other-domain.com,192.168.1.10,domain.com:8080"
JARVICE_K8S_CLUSTER_DOMAIN: # "cluster.local"
JARVICE_K8S_CLUSTER_DOMAIN: "cluster.local"

JARVICE_MAIL_SERVER: jarvice-smtpd:25
JARVICE_MAIL_USERNAME: # "mail-username"
Expand Down

0 comments on commit 61ac52b

Please sign in to comment.