Re: Create admission controller to add annotation in a route

2019-03-14 Thread lmi
Hi You would be able to do that without yourself writing such an admission controller. Take a look at this recent blog post: https://blog.openshift.com/fine-grained-policy-enforcement-in-openshift-with-open-policy-agent/ especially the sample that is mutating pods to keep them from

Re: pod won't terminate

2018-11-26 Thread lmi
Hi One trick that have worked for us is to patch the pod - setting its list of finalizers to nothing: oc patch pod -n -p '{"metadata":{"finalizers":null}}' Best regards Lars Milland Tim Dudgeon wrote the 2018-11-26 16:14: > I've got a pod that just fails to terminate. > > `oc

Trusting certificate in oc import-image on own Docker registry

2017-05-05 Thread lmi
Hi We have been struggling with getting oc import-image commands to work against our own external Docker registry to work as the certificate that we are using on our Docker registry is not trusted. So the commands we are issuing look like this: oc import-image --all=true --confirm=true