Closed slallemand closed 1 year ago
Quick update : I tried on a 4.9 cluster without any issue so really shoulb be relative to 4.11
hi @slallemand, 4.11 of OpenShift uses 1.24 version of k8s where several changes where introduced, such as the deprecation of PSP, and several major changes that affects also to this demo. Works like a charm in versions below 4.11. We'll fix asap this repo in order to make the demo work in all the versions.
Thanks for open the issue!
@rcarrata Just tested on OCP 4.11 cluster provisioned by RHDP (Red Hat Demo Platform) and the install script fails at:
TASK [ocp4-post-acs : Get token in the secret for the sa pipeline and decode] *************************************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: list object has no element 0\n\nThe error appears to be in '/Users/username/test-devsecops/devsecops-demo/bootstrap/roles/ocp4-post-acs/tasks/post_ci.yaml': line 68, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Get token in the secret for the sa pipeline and decode\n ^ here\n"}
Any idea ? There is no token_sa_pipeline_secret in the cicd namespace but only pipeline-token-xxxx
Everything works on the current version of ARO... Thanks
Client Version: 4.12.1 Kustomize Version: v4.5.7 Server Version: 4.10.54 Kubernetes Version: v1.23.12+8a6bfe4
Any plans to fix this on OCP 4.11+?
I've tested in ARO 4.12 and also in OCP on-prem 4.13 and worked for me without issues. Can you please describe your problem @waynedovey?
fixed and tested with the latest 4.13. Grabbing the pipeline-token directly instead of the pipeline sa.
Closing this issue.
Hello,
I tried to deploy this demo on a 4.11 OCP cluster.
Pre-requisites are installed :
I have a first issue with the install.sh phase and the
ocp4-post-acs
task :Anyway, i did try to start the pipeline with the
./demo.sh start
but the pipeline is failing at the build-image task. I have those errors :Could that be relative to the install error ? Any idea on that ?