Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dns name #186

Merged
merged 1 commit into from
Sep 10, 2024
Merged
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: 9 additions & 1 deletion artifacts/openeo_k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
oidc_organisation: "{{ openeo_oidc_organisation | default('egi') }}"
oidc_roles: "{{ openeo_oidc_roles | default(['developer']) }}"
tasks:
- name: Set default DNS name (nip.io)
set_fact:
dns_name: "openeo.{{ public_ip_address }}.nip.io"
when: openeo_dns_name is not defined or openeo_dns_name == ""
- name: Set custom DNS name
set_fact:
dns_name: "{{ openeo_dns_name }}"
when: openeo_dns_name is defined and openeo_dns_name != ""
- name: Create OpenEO Helm values file
copy:
dest: /tmp/openeo_config.yaml
Expand Down Expand Up @@ -35,7 +43,7 @@
enabled: true
className: "nginx"
hosts:
- host: openeo.{{ public_ip_address }}.nip.io
- host: {{ dns_name }}
paths:
- path: /
pathType: ImplementationSpecific
Expand Down
5 changes: 5 additions & 0 deletions templates/openeo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ topology_template:
description: List of OpenEO OIDC Roles
default: [ developer ]
required: yes
openeo_dns_name:
type: string
description: OpenEO DNS name (leave empty to use openeo.<node_ip>.nip.io)
default: ""

node_templates:

Expand All @@ -62,6 +66,7 @@ topology_template:
openeo_oidc_url: { get_input: openeo_oidc_url }
openeo_oidc_organisation: { get_input: openeo_oidc_organisation }
openeo_oidc_roles: { get_input: openeo_oidc_roles }
openeo_dns_name: { get_input: openeo_dns_name }
requirements:
- host: front
- dependency: lrms_front_end
Expand Down
Loading