From 9434287c9f80e582ef17074ad4070c11409da5a0 Mon Sep 17 00:00:00 2001 From: Rashmi Gottipati Date: Thu, 9 Nov 2023 14:13:52 -0500 Subject: [PATCH] Address review feedback #1 Signed-off-by: Rashmi Gottipati --- config/nginx-ingress/resources/nginx_ingress.yaml | 2 +- docs/fetching-catalog-contents.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/nginx-ingress/resources/nginx_ingress.yaml b/config/nginx-ingress/resources/nginx_ingress.yaml index 2154bc1a..79e1bc0d 100644 --- a/config/nginx-ingress/resources/nginx_ingress.yaml +++ b/config/nginx-ingress/resources/nginx_ingress.yaml @@ -1,7 +1,7 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: catalogd-nginx-ingress + name: catalogd-ingress namespace: catalogd-system spec: ingressClassName: nginx diff --git a/docs/fetching-catalog-contents.md b/docs/fetching-catalog-contents.md index 8fd008e1..62aba18f 100644 --- a/docs/fetching-catalog-contents.md +++ b/docs/fetching-catalog-contents.md @@ -68,9 +68,11 @@ This section outlines a way of exposing the `Catalogd` Service's endpoints outsi - Assuming `kind` is installed, create a `kind` cluster with `extraPortMappings` and `node-labels` as shown in the [kind documentation](https://kind.sigs.k8s.io/docs/user/ingress/) - Install latest version of `Catalogd` by navigating to the [releases page](https://github.com/operator-framework/catalogd/releases) and following the install instructions included in the release you want to install. - Install the `Ingress NGINX` Controller by running the below command: + ```sh $ kubectl apply -k https://github.com/operator-framework/catalogd/tree/main/config/nginx-ingress ``` + By running tha above command, the `Ingress` Controller is installed. Along with it, the `Ingress` Resource will be applied automatically as well, thereby creating an `Ingress` Object on the cluster. 1. Once the prerequisites are satisfied, create a `Catalog` object that points to the OperatorHub Community catalog by running the following command: @@ -118,7 +120,7 @@ This section outlines a way of exposing the `Catalogd` Service's endpoints outsi Let's verify that the `Ingress` object got created successfully from the sample by running the following command: ```sh - $ kubectl describe ingress/catalogd-nginx-ingress -n catalogd-system + $ kubectl describe ingress/catalogd-ingress -n catalogd-system ``` 1. Run the below example `curl` request to retrieve all of the catalog contents: