Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingress Firewall Operator Automation #100

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Yashansh-Sharma15
Copy link
Contributor

This is the Playbook for automation of ingress firewall operator.

@ppc64le-cloud-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Yashansh-Sharma15
Once this PR has been reviewed and has the lgtm label, please assign sajauddin for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ppc64le-cloud-bot ppc64le-cloud-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 30, 2025
@aman4433
Copy link

Please squash the multiple commits and add your Signed-off-by to the commit.

@Yashansh-Sharma15 Yashansh-Sharma15 force-pushed the ingress branch 2 times, most recently from 00b56de to 40e69ba Compare January 30, 2025 09:18
seconds: 30

- name: Verify creation of Catsrc
shell: " oc get catsrc -A | grep qe-app-registry"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we using the variable ingress_catalogsource_name instead to hardcoded value - qe-app-registry

failed_when: catsrc.rc != 0

- name: Verify creation of pods
shell: "oc get pods -n openshift-marketplace | grep qe-app-registry | grep Running"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here - shouldn't we using the variable ingress_catalogsource_name instead to hardcoded value - qe-app-registry

spec:
name: ingress-node-firewall
channel: stable
source: qe-app-registry

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here - shouldn't we using the variable ingress_catalogsource_name instead to hardcoded value - qe-app-registry

- eth0
nodeSelector:
matchLabels:
<ingress_firewall_label_name>: <label_value>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These placeholders should either be defined as variables or explicitly documented in README.

- eth1
nodeSelector:
matchLabels:
<ingress_firewall_label_name>: <label_value> # Replace with actual label selectors

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here - These placeholders should either be defined as variables or explicitly documented in README.


# Delete the Dual operator group
- name: Delete Ingress Node Firewall OperatorGroup
shell: "oc delete og ingress-node-firewall-operators -n openshift-ingress-node-firewall"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do the cleanup in the same way we create the OperatorGroup, by using kubernetes.core.k8s with state: absent? It would make the process more declarative and consistent.

Signed-off-by: Yashansh-Sharma15 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants