diff --git a/README.md b/README.md index fafabf7d..00c255a5 100644 --- a/README.md +++ b/README.md @@ -276,6 +276,7 @@ The following variables are customizable when `ingress_type=ingress`. The `ingre | ingress_annotations | Ingress annotations | Empty string | | ingress_tls_secret | Secret that contains the TLS information | Empty string | | hostname | Define the FQDN | {{ meta.name }}.example.com | +| ingress_path | Define the ingress path to the service | / | ```yaml --- diff --git a/ansible/templates/crd.yml.j2 b/ansible/templates/crd.yml.j2 index a8c489be..5bc3f813 100644 --- a/ansible/templates/crd.yml.j2 +++ b/ansible/templates/crd.yml.j2 @@ -86,6 +86,9 @@ spec: - ingress - Route - route + ingress_path: + description: The ingress path used to reach the deployed service + type: string ingress_annotations: description: Annotations to add to the Ingress Controller type: string diff --git a/bundle.Dockerfile b/bundle.Dockerfile index 17fe97cd..f78084ba 100644 --- a/bundle.Dockerfile +++ b/bundle.Dockerfile @@ -6,9 +6,9 @@ LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/ LABEL operators.operatorframework.io.bundle.package.v1=awx-operator LABEL operators.operatorframework.io.bundle.channels.v1=alpha LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha -LABEL operators.operatorframework.io.metrics.project_layout=ansible LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1 LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v0.19.4 +LABEL operators.operatorframework.io.metrics.project_layout=ansible COPY deploy/olm-catalog/awx-operator/manifests /manifests/ COPY deploy/olm-catalog/awx-operator/metadata /metadata/ diff --git a/deploy/awx-operator.yaml b/deploy/awx-operator.yaml index 92f102ba..34fe4b9e 100644 --- a/deploy/awx-operator.yaml +++ b/deploy/awx-operator.yaml @@ -88,6 +88,9 @@ spec: - ingress - Route - route + ingress_path: + description: The ingress path used to reach the deployed service + type: string ingress_annotations: description: Annotations to add to the Ingress Controller type: string diff --git a/deploy/crds/awx_v1beta1_crd.yaml b/deploy/crds/awx_v1beta1_crd.yaml index a8c489be..5bc3f813 100644 --- a/deploy/crds/awx_v1beta1_crd.yaml +++ b/deploy/crds/awx_v1beta1_crd.yaml @@ -86,6 +86,9 @@ spec: - ingress - Route - route + ingress_path: + description: The ingress path used to reach the deployed service + type: string ingress_annotations: description: Annotations to add to the Ingress Controller type: string diff --git a/deploy/olm-catalog/awx-operator/manifests/awx.ansible.com_awxs_crd.yaml b/deploy/olm-catalog/awx-operator/manifests/awx.ansible.com_awxs_crd.yaml index 21476433..a09f3bce 100644 --- a/deploy/olm-catalog/awx-operator/manifests/awx.ansible.com_awxs_crd.yaml +++ b/deploy/olm-catalog/awx-operator/manifests/awx.ansible.com_awxs_crd.yaml @@ -36,7 +36,8 @@ spec: description: Secret where the broadcast websocket secret can be found type: string bundle_cacert_secret: - description: Secret where can be found the trusted Certificate Authority Bundle + description: Secret where can be found the trusted Certificate Authority + Bundle type: string ca_trust_bundle: description: Path where the trusted CA bundle is available @@ -140,6 +141,9 @@ spec: ingress_annotations: description: Annotations to add to the Ingress Controller type: string + ingress_path: + description: The ingress path used to reach the deployed service + type: string ingress_tls_secret: description: Secret where the Ingress TLS secret can be found type: string diff --git a/roles/installer/defaults/main.yml b/roles/installer/defaults/main.yml index a9944ced..3023fcd5 100644 --- a/roles/installer/defaults/main.yml +++ b/roles/installer/defaults/main.yml @@ -9,7 +9,7 @@ database_username: "{{ deployment_type }}" task_privileged: false service_type: ClusterIP ingress_type: none - +ingress_path: '/' # Add annotations to the service account. Specify as literal block. E.g.: # service_account_annotations: | # eks.amazonaws.com/role-arn: arn:aws:iam:::role/ diff --git a/roles/installer/templates/ingress.yaml.j2 b/roles/installer/templates/ingress.yaml.j2 index 6bd586c4..a93cd7b5 100644 --- a/roles/installer/templates/ingress.yaml.j2 +++ b/roles/installer/templates/ingress.yaml.j2 @@ -20,7 +20,7 @@ spec: - host: '{{ hostname }}' http: paths: - - path: / + - path: '{{ ingress_path }}' backend: serviceName: '{{ meta.name }}-service' servicePort: 80