-
Notifications
You must be signed in to change notification settings - Fork 202
autotls feature doesn't work with OpenShift 3.9 (Kubernetes 1.8+) due to InitContainer annotation deprecation #1299
Comments
@rohanKanojia Any chance you can assign this to somebody? |
Sorry for responding late, will take a look soon. |
@mojsha feel free to contribute 👍 :) |
…(Kubernetes 1.8+) due to InitContainer annotation deprecation
@hrishin When will it be released, and will it have solved the autotls issue? |
@rohanKanojia @hrishin Any comments/updates (either about the new version for 3.9 or the patch)? |
@mojsha Its WIP, we need to first reflect in the client. Model work has been done and released fabric8io/kubernetes-client#1103. |
@mojsha: Sorry for the delay, I have a work in progress local branch which updates deprecated annotation. I have to test it |
Thanks guys, if the 3.9-compatible release will take its time, we should perhaps have @rohanKanojia make a maintenance release in the interim period until it's done. |
…(Kubernetes 1.8+) due to InitContainer annotation deprecation
…(Kubernetes 1.8+) due to InitContainer annotation deprecation
Fix #1299 : autotls feature doesn't work with OpenShift 3.9 (Kubernetes 1.8+) due to InitContainer annotation deprecation
@mojsha : We released fabric8-maven-plugin |
@rohanKanojia I just tested it and it looks like the spring-boot-health-check enricher is broken because it is trying to apply the readiness/liveness healthchecks on the InitContainer:
|
@rohanKanojia Essentially, you just need to add the enricher to your F-M-P pom.xml like so:
|
@rohanKanojia Do you have initContainers in your DeploymentConfig resource fragment? |
ah, no. let me check with this |
@mojsha : Hi, I looked into it and looks like it is a case of #1283 . A pull request is already there(see #1202 ) to handle this health check enrichment in such a way that only main container is enriched, or something else depending upon what configuration you provide. I tested and it seemed to be working for me. Hopefully it would get in before next release :-) |
@rohanKanojia Cool. Thanks for your efforts! |
The autotls feature uses initContainer alpha annotations (https://github.com/fabric8io/fabric8-maven-plugin/blob/bd414f1ad94fdf48e8de05f25e3e09998b3f7508/enricher/api/src/main/java/io/fabric8/maven/enricher/api/util/InitContainerHandler.java) but this has been deprecated as of Kubernetes 1.8.0 (https://kubernetes.io/docs/concepts/workloads/pods/init-containers/#support-and-compatibility).
We need to replace the annotation with the spec.initContainers field.
f-m-p version : 3.5.38
Maven version (
mvn -v
) : 3.3.9Kubernetes / OpenShift setup and version :
openshift v3.9.0+191fece
kubernetes v1.9.1+a0ce1bc657
If it's a bug, how to reproduce :
Enable and use autotls feature. Initcontainer will not be created.
The text was updated successfully, but these errors were encountered: