Invalid classes/META-INF/fabric8/kubernetes yml files generated.
See original GitHub issueDescription
We use both fabric8:helm for the charts generation with the parameters, defined in the template.yml, as well as the plain old fabric8:resource for non-helmcharts kubernetes yml I.e. template.yml: `kind: Template parameters:
- name: limits.memory value: “1000Mi”
- name: requests.memory value: “1000Mi”
- name: requests.cpu
value: "200m"
deployment.yml:
resources: limits: memory: ${limits.memory} requests: cpu: ${requests.cpu} memory: ${requests.memory}This would become a helm template:
resources: limits: memory: {{ .Values.limits.memory | default “1000Mi” }} requests: cpu: {{ .Values.requests.cpu | default “200m” }} memory: {{ .Values.requests.memory | default “1000Mi” }}` This functionality was broken in the FMP version 4.3.0, so recently we updated the plugin version to the latest 4.3.1. However this introduced a new problem. Previously target/classes/META-INF/fabric8/kubernetes/*-deployment.yml would be generated as just normal kubernetes yml files with ${limits.memory} expanded as “1000Mi” in the example above.
Now, with 4.3.1 these yml’s are generated with ${limits.memory} still in place - making them invalid.
Info
- f-m-p version : 4.3.1
- Maven version (
mvn -v
) : 3.6.3
- Kubernetes / OpenShift setup and version : Kubernetes 1.14.0
- If it’s a bug, how to reproduce : Per the above code snippets
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
fabric8io/fabric8-maven-plugin
Kubernetes and OpenShift resource descriptors can be created or generated from fabric8:resource. These files are packaged within the Maven ...
Read more >Spring Cloud Kubernetes Config
Let's register the Spring Cloud Kubernetes Config dependency in the build tool: ... Then let's create a Java class that reads Spring Boot...
Read more >Spring Cloud Kubernetes application does not detect when it ...
As I understand it you can turn off kubernetes features (e.g. spring.cloud.kubernetes.config.enabled=false ) in your main YAML, but not the ...
Read more >Chapter 2. Using Dekorate in a Spring Boot application
Navigate to the target/classes/META-INF/dekorate view the manifests generated by Dekorate. The number of replicas in the deployment configuration YAML ...
Read more >Kubernetes Maven Plugin - JKube - Eclipse
Kubernetes & OpenShift resource fragments are user provided YAML files ... Generated resources are in target/classes/META-INF/jkube/kubernetes directory.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fforloff: poilte ping, were you able to find time to try your bug out on Eclipse JKube?
I just checked with 4.3.1, those placeholders are replaced for me in classes/META-INF/fabric8/kubernetes.yml (and thats the file used in fabric8:deploy for example). @fforloff what is your use case exactly?