Skip to content

Commit

Permalink
Rename property to better suited values on CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
andykrohg authored and jharmison-redhat committed Feb 17, 2021
1 parent 1bcf6f4 commit ff3e3c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/crd/bases/redhatgov.io_giteas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ spec:
description: Defines SSL/TLS state, if your IngressController/Router supports it
type: boolean
default: True
externalIp:
loadBalancer:
description: |
Defines whether the gitea service should request an external IP address.
Required for external SSH.
Defines whether the gitea service should create an exernal load-balancer
in supported cloud providers. Required for external SSH.
type: boolean
default: False
image:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/gitea-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
_gitea_expose_method: "{{ gitea.expose.kind | default('Route') }}"
_gitea_expose_uri: "{{ gitea.expose.uri | default('') }}"
_gitea_ssl: "{{ gitea.expose.ssl | default(True) }}"
_gitea_external_ip: "{{ gitea.expose.external_ip | default(False) }}"
_gitea_load_balancer: "{{ gitea.expose.load_balancer | default(False) }}"

_gitea_image: "{{ gitea.image.src | default('quay.io/redhatgov/gitea') }}"
_gitea_image_tag: "{{ gitea.image.tag | default('latest') }}"
Expand Down
4 changes: 2 additions & 2 deletions roles/gitea-ocp/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
set_fact:
_gitea_actual_route: "{{ r_route.resources[0].spec.host }}"

- name: Get External IP for SSH
- name: Get external hostname from Service if external SSH is needed
k8s_info:
api_version: v1
kind: Service
name: "{{ _gitea_name }}"
namespace: "{{ _gitea_namespace }}"
register: gitea_service
when: _gitea_external_ip
when: _gitea_load_balancer

- name: Set Route dependant OpenShift Objects for Gitea to {{ _gitea_state }}
k8s:
Expand Down

0 comments on commit ff3e3c3

Please sign in to comment.