-
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
Ability to Configure Update Behavior for Kubernetes/OpenShift Resources #26789
Comments
Also cc @manusa |
We do have a flag like this on JKube.
I like this idea, having a well set defined creation/deployment strategies and then performing the appropriate operation in the deployment phase sound like a great solution and would add flexibility for the users. There's now the option to perform server-side apply replacements too (#3334).
|
@nexus-Six would the proposal from @manusa to also include |
Yes, this looks like good solution
Am 26. Juli 2022 06:57:30 UTC schrieb Georgios Andrianakis ***@***.***>:
***@***.*** would the proposal from @manusa work for you?
…
--
Reply to this email directly or view it on GitHub:
#26789 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Was closed due to my erroneous linkage to a PR |
…esent Closes: quarkusio#26789 (cherry picked from commit 3f0ec53)
Description
The current implementation of the Kubernetes/OpenShift extensions use createOrReplace to apply the resources generated in target/kubernetes/openshift.yml to OpenShift. This leads to the replacement of all these Openshift resources on every redeploy, including the ServiceAccount. This new ServiceAccount in turn triggers the creation of three Openshift Secrets. Over time, this leads to a vast amount of stale Secrets in the namespace.
There should be a way to control this update behavior such as choosing between Replace (
oc replace ...
) and Update (oc apply ...
).Reproducer:
-
oc login
and create an OCP projectmvn package -Dquarkus.kubernetes.deploy=true -Dquarkus.profile=kube -DskipTests -Dquarkus.openshift.route.expose=true
Implementation ideas
Perhaps a new configuration such as
quarkus.openshift.resources.creation-strategy=replace|update
could be a solution
The text was updated successfully, but these errors were encountered: