-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Kubernetes - multiple problems in generated kubernetes.yml after merging #12826
Comments
/cc @geoand |
cc @iocanel |
Thanks for the detailed report. I will have a look asap. |
Thanks. Let me know if you want this split up in multiple reports. |
Problem1: The NPE, is due to the fact that the port doesn't have a name which is considered mandatory. I will address that asap. |
Problem 2: Is misconfiguration from the user side. The If configuration is moved under there, its expected to work. |
@iocanel Thanks for looking in this. |
It makes sense. I'll have a look at it! |
Probelm 5: Created #12884 |
It's not trivial to implement this feature and it needs to be addressed way up in the dependency chain, so I don't see it happening any time soon. |
Problem 4: Each resource in the document is serialized one by one. So the numbers reported by Jackson will always refer to the relative line of the current resource. The only way we could possibly deal with it is to catch Jackson exceptions and manually calucalate the line numbers. |
@iocanel re problem 4 there is an other solution: Add blank/comment dummy lines on top until the line numbers match. |
re closing this issue.: What about problem 3 and especially the missing version |
Love it! Will try it ASAP! |
I will close this, as I feel that we addressed all issues. |
OK, thanks |
I want to add a securityContext to the Deployment and leave all else unchanged. but I run into some snags with the generated kubernetes.yml.
Steps to reproduce -- Following this guide: https://quarkus.io/guides/deploying-to-kubernetes
Try kubernetes1.yml
PROBLEM 1:
Crashes with NPE, stack trace in kubernetes1-stacktrace.txt
Try kubernetes2.yml and check target/kubernetes/kubernetes.yml
PROBLEM 2:
This disappears completely: supplementalGroups: [5555]
Note: The surrounding RunAsUser/RunAsGroup dont disappear
Note: This is example code from https://docs.openshift.com/container-platform/3.11/install_config/persistent_storage/persistent_storage_nfs.html#nfs-supplemental-groups
PROBLEM 3:
I want only to add a securityContext under spec/template/spec/containers/ and keep
the quarkus generated data. But almost everything disappears
an extra wrinkle is metadata/labels/* where the version number is removed and must be maintained manually.
Hence, the selector of the 'Service' object does not point to the DeploymentConfig when the project
version number is modified.
Workaround:
In application.properties: define quarkus.openshift.version=999.999 so it wont modify
PROBLEM 4:
Uncomment # error to cause a syntax error.
The error message talks about line 13 not 20
This means line numbers are counted starting from the current resource at line 8
PROBLEM 5:
Our org is running openshift 3.11. It identifies applications based on the 'app' label which is not
defined by quarkus.
PROBLEM 6:
Minor problem - If I change the name of the Deployment, I get 2 deployments (correct) but the name
of the service account changes too (strange). Hence, the first Deployment now refers to a non-existant
service account
kubernetes1.yml.txt
kubernetes2.yml.txt
kubernetes1-stacktrace.txt
The text was updated successfully, but these errors were encountered: