Skip to content

Add new option to skip some networkpolicys#2652

Merged
qpdpQ merged 3 commits intoIBM:scripts-devfrom
qpdpQ:networkpolicy-script
Oct 21, 2025
Merged

Add new option to skip some networkpolicys#2652
qpdpQ merged 3 commits intoIBM:scripts-devfrom
qpdpQ:networkpolicy-script

Conversation

@qpdpQ
Copy link
Contributor

@qpdpQ qpdpQ commented Oct 15, 2025

What this PR does / why we need it:
Also add --skipIAM and --skipZen option to skip install networkpolicy for Zen or IAM
Which issue(s) this PR fixes:
Fixes # https://github.ibm.com/IBMPrivateCloud/roadmap/issues/67945

qpdpQ added 2 commits October 15, 2025 12:23
Signed-off-by: Allen Li <liyuchen223@gmail.com>
Signed-off-by: Allen Li <liyuchen223@gmail.com>
@qpdpQ
Copy link
Contributor Author

qpdpQ commented Oct 15, 2025

test log:

~/project/ibm-common-service-operator/cp3-networkpolicy# ./install_networkpolicy.sh -n cs1 --skipIAM --skipZen
# [0] Checking prerequisites ...
-----------------------------------------------------------------------
[✔] oc command available
[✔] oc command logged in as kube:admin
[✔] IBM Common Services found in namespace cs1
# [0] Installing IBM Common Services Network Policies ...
-----------------------------------------------------------------------
[INFO] Using IBM Common Services namespace: cs1
[INFO] Using operators namespace: cs1
[INFO] Using Zen namespace: cs1
[INFO] Using cert-manager namespace: 
[INFO] Using license-service namespace: 
[INFO] Using license-service-reporter namespace: 
[INFO] Using flink namespace: 
[INFO] Using opensearch namespace: 
[INFO] Skipping networkpolicies for IAM services
[INFO] Skipping networkpolicies for Zen services
[INFO] Installing access-to-common-web-ui.yaml ...
networkpolicy.networking.k8s.io/access-to-common-web-ui created
[INFO] Installing access-to-edb-postgres.yaml ...
networkpolicy.networking.k8s.io/access-to-edb-postgres created
[INFO] Installing access-to-icp-mongodb.yaml ...
networkpolicy.networking.k8s.io/access-to-icp-mongodb created
[INFO] Skipping access-to-platform-auth-service.yaml due to skip flags ...
[INFO] Skipping access-to-platform-identity-management.yaml due to skip flags ...
[INFO] Skipping access-to-platform-identity-provider.yaml due to skip flags ...
[INFO] Installing access-to-usage-metering-service.yaml ...
networkpolicy.networking.k8s.io/access-to-ibm-usage-metering-instance created
[INFO] Installing access-to-edb-postgres-webhooks.yaml ...
networkpolicy.networking.k8s.io/access-to-edb-postgres-webhooks created
[INFO] Installing access-to-ibm-common-service-operator.yaml ...
networkpolicy.networking.k8s.io/access-to-ibm-common-service-operator created
[INFO] Skipping access-to-zen-meta-api.yaml due to skip flags ...
[INFO] Installing olm-access-to-bedrock-catalog.yaml ...
networkpolicy.networking.k8s.io/allow-from-openshift-operator-lifecyele-manager created
[INFO] Skipping access-to-edb-postgres.yaml due to skip flags ...
[INFO] Skipping zen-access-to-audit-svc.yaml due to skip flags ...
[INFO] Skipping zen-access-to-nginx.yaml due to skip flags ...
[INFO] Skipping zen-access-to-usermgmt.yaml due to skip flags ...
[INFO] Skipping zen-access-to-zen-core-api.yaml due to skip flags ...
[INFO] Skipping zen-access-to-zen-core.yaml due to skip flags ...
[INFO] Skipping zen-access-to-zen-minio.yaml due to skip flags ...
[INFO] Skipping zen-access-to-zen-volumes.yaml due to skip flags ...
[INFO] Skipping zen-access-to-zen-watchdog.yaml due to skip flags ...
[INFO] Skipping zen-allow-iam-config-job.yaml due to skip flags ...
-----------------------------------------------------------------------
[✔] IBM Common Services NetworkPolicies installation or removal completed at Wed Oct 15 12:31:05 PM PDT 2025 .

Signed-off-by: Allen Li <liyuchen223@gmail.com>
Copy link
Contributor

@YCShen1010 YCShen1010 left a comment

Choose a reason for hiding this comment

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

/lgtm
Great job, thanks @qpdpQ

@ibm-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qpdpQ, YCShen1010

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

The pull request process is described here

Details 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

@qpdpQ qpdpQ merged commit bef7675 into IBM:scripts-dev Oct 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants