Describe the bug
I created an application using three extensions:
quarkus-kubernetes
quarkus-container-image-jib
quarkus-smallrye-metrics
When trying to deploy it on a Kubernetes cluster, it returns this error:
unable to decode "target/kubernetes/kubernetes.yml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Annotations: ReadString: expects " or n, but found 8, error found in #10 byte of ...|io/port":8080,"prome|..., bigger context ...|metheus.io/path":"/metrics","prometheus.io/port":8080,"prometheus.io/scrape":"true"},"labels":{"app.|... unable to decode "target/kubernetes/kubernetes.yml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Annotations: ReadString: expects " or n, but found 8, error found in #10 byte of ...|io/port":8080,"prome|..., bigger context ...|metheus.io/path":"/metrics","prometheus.io/port":8080,"prometheus.io/scrape":"true"},"labels":{"app.|... unable to decode "target/kubernetes/kubernetes.yml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Annotations: ReadString: expects " or n, but found 8, error found in #10 byte of ...|io/port":8080,"prome|..., bigger context ...|metheus.io/path":"/metrics","prometheus.io/port":8080,"prometheus.io/scrape":"true"},"labels":{"app.|...
Expected behavior
It should deploy the Kubernetes objects described in the kubernetes.yml
Actual behavior
It returns the error described above.
To Reproduce
Steps to reproduce the behavior:
Create the application with the extensions:
quarkus-kubernetes
quarkus-container-image-jib
quarkus-smallrye-metrics
Package the application
mvn clean package -DskipTests -Dquarkus.container-image.push=true
Try to deploy it:
kubectl apply -f target/kubernetes/kubernetes.yml
Environment (please complete the following information):
Output of uname -a or ver: Darwin emoraes-mac 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
Output of java -version: OpenJDK 64-Bit Server VM GraalVM CE 20.0.0 (build 11.0.6+9-jvmci-20.0-b02, mixed mode, sharing)
GraalVM version (if different from Java):
Quarkus version or git rev: 1.6.1-FINAL
Build tool (ie. output of mvnw --version or gradlew --version): Apache Maven 3.6.3
Additional context
There are two options that are working fine:
Using the json file instead of yml file:
kubectl apply -f target/kubernetes/kubernetes.json
Deploying from the packaging step directly:
mvn clean package -DskipTests -Dquarkus.kubernetes.deploy=true
Describe the bug I created an application using three extensions:
When trying to deploy it on a Kubernetes cluster, it returns this error:
unable to decode "target/kubernetes/kubernetes.yml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Annotations: ReadString: expects " or n, but found 8, error found in #10 byte of ...|io/port":8080,"prome|..., bigger context ...|metheus.io/path":"/metrics","prometheus.io/port":8080,"prometheus.io/scrape":"true"},"labels":{"app.|... unable to decode "target/kubernetes/kubernetes.yml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Annotations: ReadString: expects " or n, but found 8, error found in #10 byte of ...|io/port":8080,"prome|..., bigger context ...|metheus.io/path":"/metrics","prometheus.io/port":8080,"prometheus.io/scrape":"true"},"labels":{"app.|... unable to decode "target/kubernetes/kubernetes.yml": resource.metadataOnlyObject.ObjectMeta: v1.ObjectMeta.Annotations: ReadString: expects " or n, but found 8, error found in #10 byte of ...|io/port":8080,"prome|..., bigger context ...|metheus.io/path":"/metrics","prometheus.io/port":8080,"prometheus.io/scrape":"true"},"labels":{"app.|...
Expected behavior It should deploy the Kubernetes objects described in the kubernetes.yml
Actual behavior It returns the error described above.
To Reproduce Steps to reproduce the behavior:
mvn clean package -DskipTests -Dquarkus.container-image.push=true
kubectl apply -f target/kubernetes/kubernetes.yml
Configuration
Environment (please complete the following information):
uname -a
orver
: Darwin emoraes-mac 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64java -version
: OpenJDK 64-Bit Server VM GraalVM CE 20.0.0 (build 11.0.6+9-jvmci-20.0-b02, mixed mode, sharing)mvnw --version
orgradlew --version
): Apache Maven 3.6.3Additional context There are two options that are working fine:
Using the json file instead of yml file:
kubectl apply -f target/kubernetes/kubernetes.json
Deploying from the packaging step directly:
mvn clean package -DskipTests -Dquarkus.kubernetes.deploy=true
https://github.com/quarkusio/quarkus/issues/11134
$upstream:11134$