trendmicro / cloudone-container-security-helm

Helm chart for Trend Micro Cloud One Container Security
Other
18 stars 16 forks source link

Collect Logs Script Updating for Openshift Environments #6

Open XeniaP opened 1 week ago

XeniaP commented 1 week ago

Title: Update script to switch from kubectl to oc if kubectl is not found

Description:

This update enhances the script by adding a fallback mechanism in case the kubectl command is not found. The changes are as follows:

Why this change?

This improvement is aimed at making the script more versatile in environments where oc is used instead of kubectl (e.g., OpenShift). This allows for better compatibility across different Kubernetes and OpenShift clusters, reducing the need for manual intervention when switching between kubectl and oc.