-
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
Doublon of StatefulSet generated by Kubernetes extension #25162
Labels
Milestone
Comments
@Sgitario you might be interested in this as well |
Sgitario
added a commit
to Sgitario/quarkus
that referenced
this issue
Apr 27, 2022
When users add a StatefulSet resource and the deployment-target is set to `StatefulSet`, we need to read the StatefulSet resource from the user and populate it accordingly. Before these changes, we were including the StatefulSet resource, but adding a new one (with the same name), so in the end, two StatefulSet resources were included in the final kubernetes.yml. Fix quarkusio#25162
Sgitario
added a commit
to Sgitario/quarkus
that referenced
this issue
Apr 27, 2022
When users add a StatefulSet resource and the deployment-target is set to `StatefulSet`, we need to read the StatefulSet resource from the user and populate it accordingly. Before these changes, we were including the StatefulSet resource, but adding a new one (with the same name), so in the end, two StatefulSet resources were included in the final kubernetes.yml. Fix quarkusio#25162
Sgitario
added a commit
to Sgitario/quarkus
that referenced
this issue
Apr 27, 2022
When users add a StatefulSet resource and the deployment-target is set to `StatefulSet`, we need to read the StatefulSet resource from the user and populate it accordingly. Before these changes, we were including the StatefulSet resource, but adding a new one (with the same name), so in the end, two StatefulSet resources were included in the final kubernetes.yml. Fix quarkusio#25162
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
May 3, 2022
When users add a StatefulSet resource and the deployment-target is set to `StatefulSet`, we need to read the StatefulSet resource from the user and populate it accordingly. Before these changes, we were including the StatefulSet resource, but adding a new one (with the same name), so in the end, two StatefulSet resources were included in the final kubernetes.yml. Fix quarkusio#25162 (cherry picked from commit a892847)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
May 5, 2022
When users add a StatefulSet resource and the deployment-target is set to `StatefulSet`, we need to read the StatefulSet resource from the user and populate it accordingly. Before these changes, we were including the StatefulSet resource, but adding a new one (with the same name), so in the end, two StatefulSet resources were included in the final kubernetes.yml. Fix quarkusio#25162 (cherry picked from commit a892847)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
May 5, 2022
When users add a StatefulSet resource and the deployment-target is set to `StatefulSet`, we need to read the StatefulSet resource from the user and populate it accordingly. Before these changes, we were including the StatefulSet resource, but adding a new one (with the same name), so in the end, two StatefulSet resources were included in the final kubernetes.yml. Fix quarkusio#25162 (cherry picked from commit a892847)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I want to define a
volumeClaimTemplates
for my Quarkus app which is meant to be aStatefulSet
.I follow the documentation here: https://quarkus.io/guides/deploying-to-kubernetes#using-existing-resources
So it should be possible to have a "base template" provided I am using the expected name and container-name, which I do here: https://github.com/tarilabs/hello-pvdf/blob/8fa82c58a3d9889c75d86bd0317a4443440c2ca2/src/main/kubernetes/kubernetes.yml#L2-L18
Please notice I configured the Quarkus app as StatefulSet as described in the guide, I do so here: https://github.com/tarilabs/hello-pvdf/blob/8fa82c58a3d9889c75d86bd0317a4443440c2ca2/src/main/resources/application.properties#L11
However despite using the expected name and container-name, I end up with the file inside of
target/kubernetes/kubernetes.yml
to contain 2 duplicated entries of the StatefulSet.It should be noted if I did a classic
Deployment
, so reflecting the change by omitting the line in theapplication.properties
and changing the line: https://github.com/tarilabs/hello-pvdf/blob/8fa82c58a3d9889c75d86bd0317a4443440c2ca2/src/main/kubernetes/kubernetes.yml#L2to read
kind: Deployment
the duplication in the generatedtarget/kubernetes/kubernetes.yml
file does not happenExpected behavior
Only single "StatefulSet" inside of
target/kubernetes/kubernetes.yml
Actual behavior
There are two
StatefulSet
generated inside thetarget/kubernetes/kubernetes.yml
file, with the same "name".Fortunately the correct one comes first, so it still "works" but using
kubectl apply -f <file>
will give you error on the command line for the second definition, since trying to modify a StatefulSet which was already applied.How to Reproduce?
Output of
uname -a
orver
Darwin mmortari1-mac 20.6.0 Darwin Kernel Version 20.6.0: Tue Feb 22 21:10:41 PST 2022; root:xnu-7195.141.26~1/RELEASE_X86_64 x86_64
Output of
java -version
openjdk version "18.0.1" 2022-04-19
GraalVM version (if different from Java)
No response
Quarkus version or git rev
quarkus.platform.version>2.8.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0)
Additional information
No response
The text was updated successfully, but these errors were encountered: