question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid classes/META-INF/fabric8/kubernetes yml files generated.

See original GitHub issue

Description

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:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rohanKanojiacommented, Jul 13, 2020

@fforloff: poilte ping, were you able to find time to try your bug out on Eclipse JKube?

1reaction
djotanovcommented, Jan 14, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found