Skip to content
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

Dekorate does not resolve well the properties that uses expressions in application yaml files #1057

Open
Sgitario opened this issue Sep 9, 2022 · 0 comments

Comments

@Sgitario
Copy link
Collaborator

Sgitario commented Sep 9, 2022

When having the following property:

application.yaml:

server.port: ${greeting-service.port}

The generated resource is always setting the port to 8080:

name: spring-boot-istio-distributed-tracing-greeting-service
ports:
  - containerPort: 8080
    name: http
    protocol: TCP

However, when having the same properties in a application.properties file, everything works fine:

application.properties:

server.port=${greeting-service.port}

Note that we're using the resources Maven plugin to filter these resources:

<build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant