This repository was archived by the owner on May 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
pkg/controller/nginxingresscontroller Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,13 @@ generate-metadata: generate-crds
2727 echo " Metadata generated, please make sure you add/update fields in nginx-ingress-operator.v$( TAG) .clisterserviceversion.yaml"
2828
2929generate-bundle :
30- rm -rf bundle/*
30+ -rm -rf bundle
31+ mkdir bundle
3132 cp deploy/crds/* bundle/
3233 cp deploy/olm-catalog/nginx-ingress-operator/nginx-ingress-operator.package.yaml bundle/
3334 cp deploy/olm-catalog/nginx-ingress-operator/$(TAG ) /* bundle/
3435 cp deploy/olm-catalog/nginx-ingress-operator/$(OLD_TAG ) /nginx-ingress-operator.v$(OLD_TAG ) .clusterserviceversion.yaml bundle/
35- rm bundle.zip || true
36+ - rm bundle.zip
3637 zip -j bundle.zip bundle/* .yaml
3738
3839.PHONY : build
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ COPY build/_output/bin/nginx-ingress-operator ${OPERATOR}
1010COPY build/bin /usr/local/bin
1111RUN /usr/local/bin/user_setup
1212
13- RUN mkdir licenses
14- COPY LICENSE /licenses
13+ COPY LICENSE /licenses/
1514
1615ENTRYPOINT ["/usr/local/bin/entrypoint" ]
1716
Original file line number Diff line number Diff line change 11# Installation
22
33We currently support 2 methods of installation:
4- 1 . [ Installation in an Openshift cluster] ( ./openshift-installation.md ) using the [ OLM] ( https://docs.openshift. com/container-platform/4.2/operators/understanding_olm/olm-understanding-olm.html ) .
4+ 1 . [ Installation in an Openshift cluster] ( ./openshift-installation.md ) using the [ OLM] ( https://github. com/operator-framework/operator-lifecycle-manager ) .
551 . [ Manual installation] ( ./manual-installation.md ) in a Kubernetes or Openshift cluster by manually deploying the operator manifests.
66
77After the installation, check the [ examples] ( ../examples ) to deploy the NGINX Ingress Controller using the operator.
Original file line number Diff line number Diff line change 1- # Openshift Installation
1+ # nstallation in an Openshift cluster the OLM
22
33This installation method is the recommended way for Openshift users. ** Note** : Openshift version must be 4.2 or higher.
44
55The NGINX Ingress Operator is a [ RedHat certified Operator] ( https://connect.redhat.com/en/partner-with-us/red-hat-openshift-operator-certification ) .
66
7- 1 . In the Openshift dashboard, click in ` Operators ` > ` Operator Hub ` in the left menu and use the search box to type ` nginx ingress ` :
7+ 1 . In the Openshift dashboard, click ` Operators ` > ` Operator Hub ` in the left menu and use the search box to type ` nginx ingress ` :
88![ alt text] ( ./images/openshift1.png " Operators ")
9- 1 . Click in the NGINX Ingress Operator and click Install:
9+ 1 . Click the ` NGINX Ingress Operator ` and click ` Install ` :
1010![ alt text] ( ./images/openshift2.png " NGINX Ingress Operator ")
11- 1 . Click in Subscribe ( ** Note: ** We recommend to mark Specific Namespace for the Operator) :
11+ 1 . Click ` Subscribe ` :
1212![ alt text] ( ./images/openshift3.png " NGINX Ingress Operator Install ")
1313
1414Openshift will install the NGINX Ingress Operator:
1515
1616![ alt text] ( ./images/openshift4.png " NGINX Ingress Operator Subscribe ")
1717
18- You can now deploy the NGINX Ingress Controller instances manually following the [ examples] ( ../examples ) or using the Openshift Dashboard .
18+ You can now deploy the NGINX Ingress Controller instances following the [ examples] ( ../examples ) .
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ func generatePodArgs(instance *k8sv1alpha1.NginxIngressController) []string {
6666 if instance .Spec .NginxStatus != nil && instance .Spec .NginxStatus .Enable {
6767 args = append (args , "-nginx-status" )
6868
69- if instance .Spec .NginxStatus .Port != nil && * instance . Spec . NginxStatus . Port != 0 {
69+ if instance .Spec .NginxStatus .Port != nil {
7070 args = append (args , fmt .Sprintf ("-nginx-status-port=%v" , * instance .Spec .NginxStatus .Port ))
7171 }
7272
@@ -96,7 +96,7 @@ func generatePodArgs(instance *k8sv1alpha1.NginxIngressController) []string {
9696 if instance .Spec .Prometheus != nil && instance .Spec .Prometheus .Enable {
9797 args = append (args , "-enable-prometheus-metrics" )
9898
99- if instance .Spec .Prometheus .Port != nil && * instance . Spec . Prometheus . Port != 0 {
99+ if instance .Spec .Prometheus .Port != nil {
100100 args = append (args , fmt .Sprintf ("-prometheus-metrics-listen-port=%v" , * instance .Spec .Prometheus .Port ))
101101 }
102102 }
You can’t perform that action at this time.
0 commit comments