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.

Using its own BuildConfig when using f-m-p

See original GitHub issue

Is it a way to define its own BuildConfig when using f-m-p (like adding a bc.yml file in src/main/fabric8) ?

Description

Got my BuildConfig always overridden by fabric8 plugin and would really like to tune it and use it

Info

  • f-m-p version : v3.5.31
  • Maven version (mvn -v) : 3.3.9
  • Kubernetes / OpenShift setup and version : openshift v1.5.1 kubernetes v1.5.2+43a9be4
  • If it’s a bug, how to reproduce : having this kind of file in src/main/fabric8:
apiVersion: v1
kind: BuildConfig
metadata:
  name: mybuildconfig
  namespace: projectname
spec:
  source:
    binary: {}
    type: Binary
  output:
    pushSecret:
      name: artifactory
    to:
      kind: ImageStream
      name: myimagestream
  strategy:
    dockerStrategy: {}
    type: Docker
  triggers:
  - generic:
      secret: dummysecret
    type: Generic
  nodeSelector:
    kubernetes.io/hostname: hostname

It gets overridden when executing mvn fabric8:build with especially annoying removal of pushSecret because of this: https://github.com/fabric8io/fabric8-maven-plugin/blob/9102af60e232c1ac6e2cc29d81ffd8f13f562bab/core/src/main/java/io/fabric8/maven/core/service/openshift/OpenshiftBuildService.java#L179-L182

Thank you in advance for your kind help

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rhusscommented, Oct 23, 2018

@zonArt no, not yet. But we are currently reworking the whole build part to allow for a more flexible way of building images. This also affects the s2i build part, and when redoing this we should add the corresponding s2i config hooks.

What’s your actual use case or better, what do you want to be configurable in the build config / imagestream ?

0reactions
stale[bot]commented, Aug 21, 2019

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle : how to use BuildConfig in an android-library with a ...
As a workaround, you can use this method, which uses reflection to get the field value from the app (not the library): /**...
Read more >
Build and Deployment of Java Applications on OpenShift ...
These commands create two OpenShift services, each running MySQL in its own container. In each case, a MySQL user is created with the...
Read more >
Stop generating the BuildConfig on your Android modules
BuildConfig presence stimulates developers to use BuildConfig.DEBUG and have debug code mixed with release code. The last reason is very important, so I...
Read more >
fabric8io/fabric8-maven-plugin
With this model you can use every Kubernetes / OpenShift resource object with all their flexibility, but still get the benefit of adding...
Read more >
OpenShift Maven Plugin - JKube - Eclipse
This allows expert users to use a plain configuration file with all their ... or it's name is equal to default fmp generated...
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