Open snowdrop-bot opened 3 years ago
I have quarkus 2.3.1.Final, openshift extension and config application.properties:
quarkus.native.container-build=true quarkus.container-image.build=true quarkus.container-image.push=false quarkus.container-image.builder=docker quarkus.container-image.group=test-group quarkus.container-image.name=test-name quarkus.container-image.tag=latest quarkus.kubernetes.deployment-target=openshift quarkus.openshift.mounts.main-volume1.path=/main-container/mount1 quarkus.openshift.mounts.main-volume2.path=/main-container/mount2 quarkus.openshift.sidecars.sidecar1.image=sidecar1-image quarkus.openshift.sidecars.sidecar1.mounts.sidecar1-volume1.path=/sidecar1/mount1 quarkus.openshift.sidecars.sidecar1.mounts.sidecar1-volume2.path=/sidecar1/mount2 quarkus.openshift.sidecars.sidecar2.image=sidecar2-image quarkus.openshift.sidecars.sidecar2.mounts.sidecar2-volume1.path=/sidecar2/mount1 quarkus.openshift.sidecars.sidecar2.mounts.sidecar2-volume2.path=/sidecar2/mount2
After mvnw -Pnative package generated openshift.yml contains mounts of main container in the all sidecars.
mvnw -Pnative package
openshift.yml
- image: sidecar1-image imagePullPolicy: IfNotPresent name: sidecar1 volumeMounts: - mountPath: /sidecar1/mount1 name: sidecar1-volume1 readOnly: false - mountPath: /sidecar1/mount2 name: sidecar1-volume2 readOnly: false - image: sidecar2-image imagePullPolicy: IfNotPresent name: sidecar2 volumeMounts: - mountPath: /sidecar2/mount1 name: sidecar2-volume1 readOnly: false - mountPath: /sidecar2/mount2 name: sidecar2-volume2 readOnly: false
- image: sidecar1-image imagePullPolicy: IfNotPresent name: sidecar1 volumeMounts: - mountPath: /sidecar1/mount1 name: sidecar1-volume1 readOnly: false - mountPath: /sidecar1/mount2 name: sidecar1-volume2 readOnly: false - mountPath: /main-container/mount1 name: main-volume1 readOnly: false - mountPath: /main-container/mount2 name: main-volume2 readOnly: false - image: sidecar2-image imagePullPolicy: IfNotPresent name: sidecar2 volumeMounts: - mountPath: /sidecar2/mount1 name: sidecar2-volume1 readOnly: false - mountPath: /sidecar2/mount2 name: sidecar2-volume2 readOnly: false - mountPath: /main-container/mount1 name: main-volume1 readOnly: false - mountPath: /main-container/mount2 name: main-volume2 readOnly: false
Just add any mounts by quarkus.openshift.mounts."mounts".path and add config for sidecar by quarkus.openshift.sidecars."sidecar".image.
quarkus.openshift.mounts."mounts".path
quarkus.openshift.sidecars."sidecar".image
uname -a
ver
No response
java -version
mvnw --version
gradlew --version
https://github.com/quarkusio/quarkus/issues/20987
$upstream:20987$
Describe the bug
I have quarkus 2.3.1.Final, openshift extension and config application.properties:
After
mvnw -Pnative package
generatedopenshift.yml
contains mounts of main container in the all sidecars.Expected behavior
Actual behavior
How to Reproduce?
Just add any mounts by
quarkus.openshift.mounts."mounts".path
and add config for sidecar byquarkus.openshift.sidecars."sidecar".image
.Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
https://github.com/quarkusio/quarkus/issues/20987
$upstream:20987$