-
Notifications
You must be signed in to change notification settings - Fork 197
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
Tekton Operator SCC / UID CreateContainerError #1772
Comments
/assign |
I think we need to update the base image from |
I don't seem to have an issue with ubi9-minimal /w KO /w OpenShift: KO: https://github.com/ArthurVardevanyan/openshift-monitoring-cr-controller/blob/production/Makefile#L8 |
The issue appears to be due to the elevated SCCs assigned to the operator pods, it is picking up the AnyUID SCC when it doesn't need it, and OpenShift is no longer injecting the random ID. Forcing the Deployment to use |
@ArthurVardevanyan from ArthurVardevanyan/HomeLab@f6a0c23, the previous state was Just tried on a brand new cluster,
All just work. Looking at openshift-operators, it does have it:
But this is not set by openshift-pipelines, it's probably the default label and is not required for OpenShift Pipelines operator. Also, from your repo, you are deploying it in @Elyytscha which operator from the hub did you install ? If it is https://operatorhub.io/operator/tektoncd-operator it is "tailored" for Kubernetes (e.g. it doesn't remove the specified user if the operand payload such as pipeline, …) and will not work properly on OpenShift (or OKD). |
@vdemeester, Generally I avoid installing anything into the |
why its like this? the operator should check if he runs on openshift or not and do the appropriate stuff the tekton operator is only available via the link you posted, there is no tekton operator in the openshift repos so its the only option to install tekton |
this is not the case today at least. Today there is one build for vanilla k8s and one for openshift (and the latter is supported by red hat). But yeah ideally, we could have one build that adapts, but it would/will require a lot of work/refactoring 😇.
For openshift it is called openshift-pipelines, but it is only available from red hat catalog. I think it is available for OKD but I am not 100% sure of that 😅 |
For OKD, it is indeed available if you installed OKD with a "RH pull secret". This will setup the "redhat operators" CatalogSources and so the "Red Hat OpenShift Pipelines" operator can be installed BUT... OKD is going through a major revamping (the next GA version of OKD will use SCOS instead of FCOS as base images) So the only way to use tekton operator in OKD will be to use this operator... And there is another problem with the upcoming OKD v4.16/v4.17. All the projects now include such annotations that limit the UID that can be used in a namespace and so is in conflict with the SCC:
|
Expected Behavior
Deployments:
Actual Behavior
Steps to Reproduce the Problem
Additional Info
Tekton Pipeline version:
The text was updated successfully, but these errors were encountered: