-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
Future Sustainability
-
False
-
-
False
-
-
-
Rox Sprint 4.8B - Global
-
0
After https://issues.redhat.com/browse/ROX-20811 the deploy script `USE_LOCAL_ROXCTL=true .deploy/k8s/deploy.sh` dumps the zip file created by `roxctl central generate k8s pvc` into STDOUT. Similar issue in the scanner v4 install tests.
First, revert `roxctl central generate k8s pvc` generating a zip file in those cases and then look at where `roxctl central generate k8s pvc` is being used. Pipe the output of those commands and re-enable the behavior from ROX-20811.
Ugly output below:
INFO: Generating deployment bundle... INFO: Deployment bundle does not include PodSecurityPolicies (PSPs). INFO: This is incompatible with pre-v1.25 Kubernetes installations having the PodSecurityPolicy Admission Controller plugin enabled. INFO: Use --enable-pod-security-policies if PodSecurityPolicies are required for your Kubernetes environment. PK^C^D^T^@^H^@^@^@<B1>]ZZ^@^@^@^@^@^@^@^@^@^@^@^@^]^@ ^@helm/chart/templates/_psp.tplUT^E^@^A<CE><F0<F0><BE>g{{/* srox.autoSensePodSecurityPolicies $ */}} {{ define "srox.autoSensePodSecurityPolicies" }} {{ $ := index . 0 }} {{ $system := $._rox.system }} {{ if kindIs "invalid" $system.enablePodSecurityPolicies }} {{ $_ := set $system "enablePodSecurityPolicies" (has "policy/v1beta1" $._rox._apiServer.apiResources) }} {{ if $system.enablePodSecurityPolicies }} [...]