Skip to content

Commit

Permalink
Ocp4 workload nginx (#5099)
Browse files Browse the repository at this point in the history
* initiall commit

* initial commit

* added variables to default/main.yml

* fixed jinja2 issue in podman push

* fixed misspelliing in defaults/main.yml

* added templates for ocp

* fixed issue with nginx-controller.j2

* remove unused files

* added nginx-operatorgroup.j2

* cleaned up some code

* updating main.yml

* adding nginxStatus section to nginx-controller

* updated nginx-controller.j2

* updated repo for nginxplus image to quay.io

* fixed repo

* updated workload.yml k8s_info module name

* fixed linting errors

* fixed linting errors

* fixed linting errors

* Update pre_workload.yml

* fixed tempaltes for ver1.0.0 of operator

* fixed tempaltes for ver1.0.0 of operator

* fixed tempaltes for ver1.0.0 of operator

* fixed tempaltes for ver1.0.0 of operator

* added until/retry to task in workload.yml

* added cluster role files

* added nginx-scc.j2

* reworked workload.yml to not use podman

* Update workload-old.yml

fixed extra spaces in worload-old.yml to fast linter

* Delete workload-old.yml

removed to clean up task dir.

* cleaned up workload.yml for lint

* fix trailing spaces

* fixed some minor naming issues and added some error logic to workload shell tasks

* updated variable names to include workload name

* fixed file name for rhpds_ci.html

* updated image ubi

* updated image ubi

* remove quay.io secret in post_workload.yml

* remove quay.io secret in post_workload.yml

* converted shell oc commands to templates

* created j2 files and for registry secret and imagestream

* added logic to test if pods are running

* increase timeouts and wait wating for pod to come up.

* added waits

* comment out test if pod is running

* commented delete secret task

* added task to restart pod

* added task to restart pod

* added task to restart pod

* removed code to add vscode.yml

* changed image tag to latest

* added links in ci html and fixed typo in workload.yml

Co-authored-by: George James <[email protected]>
Co-authored-by: Cameron Skidmore <[email protected]>
Co-authored-by: LoboTheFalcon <[email protected]>
  • Loading branch information
4 people authored Jul 14, 2022
1 parent d3f0a29 commit 3f0aead
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ocp4_workload_nginxplus_rebuild_k8s_venv: false
ocp4_workload_nginxplus_base_url: "quay.io"
ocp4_workload_nginxplus_private_registry_url: "quay.io/redhat-gpst"
ocp4_workload_nginxplus_image_name: "nginx-plus-ingress"
ocp4_workload_nginxplus_image_tag: "2.2.2-ubi"
ocp4_workload_nginxplus_image_tag: "latest"

ocp4_workload_nginxplus_namespace: nginx-ingress
ocp4_workload_nginxplus_secret_name: quay-login
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ <h2>Handling Cluster Traffic in OpenShift with the NGINX INgress Operator </h2>
<h3>Quick Links</h3>
<ul>
<li><a href="https://nginx-ingress-openshift-lab.readthedocs.io/en/latest/">NGINX Plus Workshops Exercises</a></li>
<li><a href="https://www.youtube.com/">NGINX Plus Workshop Demo Video</a></li>
<li><a href="https://www.youtube.com/watch?v=hF5GNT_EFeE">NGINX Plus Operator Video</a></li>
<li><a href="https://www.nginx.com/blog/getting-started-nginx-ingress-operator-red-hat-openshift">Getting Started with the NGINX Ingress Operator on Red Hat OpenShifteo</a></li>
<li><a href="https://www.nginx.com/products/nginx/">NGINX Plus website</a></li>
</ul>

Expand All @@ -31,7 +32,7 @@ <h3>Audience</h3>

<h3>Provisioning Time?</h3>
<p>
~60 min.
~60 min.
</p>
<p>
<b>IMPORTANT: This instance is shutdown and deleted after 48 hours.</b>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
name: "{{ ocp4_workload_nginxplus_secret_name }}"
state: absent

#- name: install vscode
# include_playbook: vscode_install.yml

# Leave these as the last tasks in the playbook
# ---------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ spec:
installPlanApproval: {{ ocp4_workload_nginxplus_ic_sub_spec_install_plan }}
name: {{ ocp4_workload_nginxplus_ic_sub_spec_name }}
source: {{ ocp4_workload_nginxplus_ic_sub_spec_source }}
sourceNamespace: {{ ocp4_workload_nginxplus_ic_sub_spec_source_namespace }}
startingCSV: {{ ocp4_workload_nginxplus_ic_sub_spec_starting_csv }}
sourceNamespace: {{ ocp4_workload_nginxplus_ic_sub_spec_source_namespace }}

0 comments on commit 3f0aead

Please sign in to comment.