Skip to content

Commit

Permalink
✨ kai-api route passed to the Hub. (#376)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <jortel@redhat.com>
  • Loading branch information
jortel authored Sep 13, 2024
1 parent 80db9e2 commit ff6e6f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion roles/tackle/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@ rhsso_url: "{{ rhsso_proto }}://keycloak.{{ app_namespace }}.svc:{{ rhsso_port }
# Kai-related variables
experimental_deploy_kai: false

kai_component_name: "kai-api"
kai_service_name: "{{ kai_component_name }}"
kai_url: "http://{{ kai_service_name }}.{{ app_namespace }}.svc:8080"
kai_fqin: "{{ lookup('env', 'RELATED_IMAGE_KAI') }}"

kai_api_key_secret_name: kai-api-keys
kai_jwt_secret_name: kai-jwt-secret
kai_bam_secret_key: genai_key
Expand Down
2 changes: 2 additions & 0 deletions roles/tackle/templates/deployment-hub.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ spec:
- name: DISCOVERY_ENABLED
value: "false"
{% endif %}
- name: KAI_URL
value: "{{ kai_url }}"
ports:
- containerPort: {{ hub_port }}
protocol: TCP
Expand Down
2 changes: 1 addition & 1 deletion roles/tackle/templates/kai/kai-api-service.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v1
kind: Service
metadata:
name: kai-api
name: "{{ kai_service_name }}"
namespace: "{{ app_namespace }}"
spec:
selector:
Expand Down

0 comments on commit ff6e6f3

Please sign in to comment.